Files
tryton/view/template_form.xml
T

24 lines
911 B
XML

<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr="/form/notebook/page[@id='general']/field[@name='cost_price_method']"
position="after">
<label name="purchasable"/>
<field name="purchasable"/>
</xpath>
<xpath expr="/form/notebook/page[@id='general']" position="after">
<page string="Suppliers"
states="{'invisible': Not(Bool(Eval('purchasable')))}"
id="suppliers">
<label name="purchasable"/>
<field name="purchasable"/>
<label name="purchase_uom"/>
<field name="purchase_uom"/>
<field name="product_suppliers" colspan="4"
view_ids="purchase.product_supplier_view_tree_sequence"/>
</page>
</xpath>
</data>