-
-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] sale_partner_address_restrict: migration to V17
- Loading branch information
1 parent
0108f2a
commit 73342b9
Showing
6 changed files
with
37 additions
and
27 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
This module restricts the addresses to be used in the sales order form, | ||
according to the partner selected. | ||
This module restricts the addresses to be used in the sales order form to only | ||
addresses of the selected customer. |
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,29 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2023 ACSONE SA/NV | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
|
||
<record id="view_order_form" model="ir.ui.view"> | ||
<field name="name">sale.order.form (in partner_invoicing_mode)</field> | ||
<field name="model">sale.order</field> | ||
<field name="inherit_id" ref="sale.view_order_form" /> | ||
<field name="arch" type="xml"> | ||
<field name="partner_invoice_id" position="attributes"> | ||
<attribute name="domain">[ | ||
('commercial_partner_id', '=', partner_id), | ||
'|', | ||
('company_id', '=', False), | ||
('company_id', '=', company_id), | ||
]</attribute> | ||
</field> | ||
<field name="partner_shipping_id" position="attributes"> | ||
<attribute name="domain">[ | ||
('commercial_partner_id', '=', partner_id), | ||
'|', | ||
('company_id', '=', False), | ||
('company_id', '=', company_id), | ||
]</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |