[FIX] delivery_hibou: unsafe new kwarg, use context instead, better domain on packaging

This commit is contained in:
Jared Kipe
2021-09-21 15:01:14 -07:00
committed by Leo Pinedo
parent b795c08298
commit 24d8ef23de
2 changed files with 7 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
<field name="inherit_id" ref="delivery.choose_delivery_package_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='delivery_packaging_id']" position="attributes">
<attribute name="domain">[('package_carrier_type', '!=', False)]</attribute>
<attribute name="domain">[('product_id', '=', False)]</attribute>
</xpath>
</field>
</record>