-
-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] website_sale_invoice_address: billing info
Display partner invoice address as billing in checkout, instead of order's partner. Co-authored-by: George Smirnov <[email protected]>
- Loading branch information
1 parent
e016f16
commit f31bfaa
Showing
4 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<template | ||
id="website_sale_invoice_address.address_on_payment" | ||
inherit_id="website_sale.address_on_payment" | ||
priority="100" | ||
> | ||
|
||
<xpath expr="//span[@t-esc='order.partner_id']" position="attributes"> | ||
<attribute name="t-esc"> | ||
order.partner_invoice_id | ||
</attribute> | ||
</xpath> | ||
<xpath expr="//t[@t-set='same_shipping']" position="attributes"> | ||
<attribute name="t-value"> | ||
bool(order.partner_shipping_id==order.partner_invoice_id or only_services) | ||
</attribute> | ||
</xpath> | ||
|
||
</template> | ||
|
||
<template | ||
id="website_sale_invoice_address.checkout" | ||
inherit_id="website_sale.checkout" | ||
priority="100" | ||
> | ||
|
||
<xpath | ||
expr="//div[hasclass('col-lg-6', 'one_kanban')]//t//t[@t-set='contact']" | ||
position="attributes" | ||
> | ||
<attribute name="t-value"> | ||
order.partner_invoice_id | ||
</attribute> | ||
</xpath> | ||
|
||
</template> | ||
|
||
</odoo> |