[IMP] website_sale: add warning when editing billing and shipping address
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 closes odoo/odoo#29484
This commit is contained in:
committed by
Nicolas Martinelli
parent
fe2dd27dea
commit
206e0b71ac
@@ -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"
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user