[FIX] product_extended: bom_count appeared twice in a view

The field bom_count appeared twice in product.template form view and
then the smart button for "Bill of Materials" always displayed 0 as
number of BoMs.

opw:681830
This commit is contained in:
Goffin Simon
2016-06-29 11:58:54 +02:00
committed by Christophe Simonis
parent 8e9187e746
commit 58bdc39fb8
@@ -9,7 +9,6 @@
<field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/>
<field name="arch" type="xml">
<div name="standard_price_uom" position="after">
<field name="bom_count" invisible="1"/>
<button name="%(action_view_compute_price_wizard)d"
string="Compute from BOM" type="action"
attrs="{'invisible': ['|', ('cost_method', '!=', 'standard'), ('bom_count', '=', 0)]}"