Skip to content

Commit

Permalink
[IMP] website_sale: add warning when editing billing and shipping add…
Browse files Browse the repository at this point in the history
…ress

In case you edit your shipping address (that is the same for billing) you don't always
undersantad that you are editing at the same time the billing address.

opw-1914185
  • Loading branch information
JKE-be authored and nim-odoo committed Dec 13, 2018
1 parent 651a115 commit a814871
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addons/website_sale/i18n/website_sale.pot
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ msgstr ""
msgid "Bank Name"
msgstr ""

#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.address
msgid "Be aware!"
msgstr ""

#. module: website_sale
#: model:res.country.group,name:website_sale.benelux
msgid "BeNeLux"
Expand Down Expand Up @@ -2377,6 +2382,12 @@ msgstr ""
msgid "With the first mode you can set several prices in the product config form (from Sales tab). With the second one, you set prices and computation rules from Pricelists."
msgstr ""

#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.address
msgid "You are editing your <b>billing and shipping</b> addresses at the same time!<br/>\n"
" If you want to modify your shipping address, create a"
msgstr ""

#. module: website_sale
#: model_terms:ir.actions.act_window,help:website_sale.sale_report_action_carts
#: model_terms:ir.actions.act_window,help:website_sale.sale_report_action_dashboard
Expand Down Expand Up @@ -2507,6 +2518,11 @@ msgstr ""
msgid "ml-2"
msgstr ""

#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.address
msgid "new address"
msgstr ""

#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.products
msgid "o_website_sale_search"
Expand Down
9 changes: 9 additions & 0 deletions addons/website_sale/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,15 @@
<t t-if="mode[1] == 'shipping'">
<h2 class="o_page_header mt8">Shipping Address </h2>
</t>
<t t-if="partner_id == website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id">
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">Be aware!</h4>
<p>
You are editing your <b>billing and shipping</b> addresses at the same time!<br/>
If you want to modify your shipping address, create a <a href='/shop/address'>new address</a>.
</p>
</div>
</t>
<t t-if="error" t-foreach="error.get('error_message', [])" t-as="err">
<h4 class="text-danger" t-esc="err" />
</t>
Expand Down

0 comments on commit a814871

Please sign in to comment.