product_views.xml 769 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_product_landed_cost_form" model="ir.ui.view">
  5. <field name="name">product.template.landed.cost.form</field>
  6. <field name="model">product.template</field>
  7. <field name="inherit_id" ref="account.product_template_form_view"/>
  8. <field name="arch" type="xml">
  9. <group name="bill" position="inside">
  10. <field name="landed_cost_ok" attrs="{'invisible':[('type', '!=', 'service')]}"/>
  11. <field name="split_method_landed_cost" attrs="{'invisible': ['|', ('landed_cost_ok', '=', False), ('type', '!=', 'service')]}"/>
  12. </group>
  13. </field>
  14. </record>
  15. </data>
  16. </odoo>