Sale Shipping and Invoice Domain
Adds a domain on shipping and invoicing address in SO to only allow partner's child contacts instead of choosing from every contact in DB.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0On a sales order, the shipping and invoicing address fields now only offer contacts that belong to the customer's company, instead of every contact in the database.
When you pick a customer on a sales order, this module automatically limits the choices in the Shipping Address and Invoice Address fields. Only contacts that are children of the customer's commercial entity (the parent company contact) can be selected, plus contacts with no company or the same company as the customer.
- The restriction is recalculated each time the customer changes, so the list of allowed addresses always matches the selected customer.
- The filtering applies to both the delivery address and the invoice address on the sales order form.
- It works together with the commercial partner logic, so addresses attached to the customer's parent company remain available.
- No new menus or screens are added; the change is visible directly in the existing sales order form.
The module touches the sale.order model by adding two technical, hidden fields that hold the allowed-address rules, and it modifies the standard sales order form view to apply those rules to the partner_shipping_id and partner_invoice_id fields. This reduces the risk of choosing a wrong or unrelated contact as delivery or invoice address.
Depends on
Models and fields (1)
- sale.order · extends an existing modelpartner_invoice_id_domain, partner_shipping_id_domain
Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 14.0Usage
Source · Odoo 14.0- Go to settings -> enable multiple contact addresses
- Go to a sale order form view
- Choose a customer then use the fields for delivery and invoicing addresses
- Observe that the invoice and delivery address depend on the customer that you selected (through the customer's commercial partner)
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.