[FIX] purchase: now allow 'can be purchased' to be checked even if not variant

Before, the field purchase_ok was set as readonly on the product form if the product wasn't a variant, to avoid users to set all the products variants associated to the product template to be set as purchase able in one action.

We now consider that this can be done by the end user
This commit is contained in:
Denis Ledoux 2014-08-05 16:01:55 +02:00
parent 497883cc51
commit 7d7f6fefb1
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@
<field name="arch" type="xml">
<div name="options" position="inside">
<div>
<field name="purchase_ok" attrs="{'readonly': [('is_product_variant', '=', False)]}"/>
<field name="purchase_ok"/>
<label for="purchase_ok"/>
</div>
</div>