sale_order_route: propagate route_id to sale order lines.

This is important when you add lines AFTER sale order confirmation.
This commit is contained in:
Alexis de Lattre
2023-12-01 10:25:31 +01:00
parent 3c338c9c78
commit 5039e56417
2 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,11 @@
<field name="partner_shipping_id" position="after">
<field name="route_id" options="{'no_create_edit': True}"/>
</field>
<!-- propagate route_id to lines: it's important when you add an order line AFTER
order confirmation -->
<field name="order_line" position="attributes">
<attribute name="context" operation="python_dict" key="default_route_id">route_id</attribute>
</field>
</field>
</record>