Skip to content
Browse files

[FIX] delivery: default sale and purchase ok in delivery product

When creating a delivery product from the delivery carrier form.
The delivery product should not be sealable or purchasable.


closes #32289

Signed-off-by: Lucas Perais (lpe) <>
  • Loading branch information...
jpp-odoo committed Apr 1, 2019
1 parent 610b813 commit c6b3dc613a04422a44f08955a8747b2f25e4216e
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/delivery/views/delivery_view.xml
@@ -93,7 +93,7 @@
<label for="free_over"/>
<field nolabel="1" name="amount" attrs="{'required':[('free_over','!=', False)], 'invisible':[('free_over','=', False)]}"/>
<field name="product_id" context="{'default_type': 'service', 'sale_ok': False, 'purchase_ok': False}" />
<field name="product_id" context="{'default_type': 'service', 'default_sale_ok': False, 'default_purchase_ok': False}" />
<field name="company_id" groups="base.group_multi_company"/>

0 comments on commit c6b3dc6

Please sign in to comment.
You can’t perform that action at this time.