[FIX] product_extended: "Compute from BOM"
Display the 'Compute from BOM' button on the simplified view of `product.product`, alongside the 'Cost' price. opw-1814973
This commit is contained in:
committed by
Nicolas Martinelli
parent
7e724f96c5
commit
8f9770f076
@@ -35,4 +35,24 @@
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_product_view_form_easy_inherit_extended" model="ir.ui.view">
|
||||
<field name="name">product.product.view.form.easy.inherit.extended</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
|
||||
<field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="standard_price" position="after">
|
||||
<field name="cost_method" invisible='1'/>
|
||||
<field name="bom_count" invisible='1'/>
|
||||
<button name="compute_price"
|
||||
string="Compute from BOM" type="object"
|
||||
attrs="{'invisible': ['|', ('cost_method', '!=', 'standard'), ('bom_count', '=', 0)]}"
|
||||
help="Compute the price of the product using products and operations of related bill of materials, for manufactured products only."
|
||||
class="oe_link oe_read_only"
|
||||
colspan="2"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user