product_view.xml 885 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_product_curve_form" model="ir.ui.view">
  5. <field name="name">product.curve.form</field>
  6. <field name="model">product.template</field>
  7. <field name="inherit_id" ref="product.product_template_only_form_view"/>
  8. <field name="arch" type="xml">
  9. <div name="options" position="inside">
  10. <field name="product_website_sale_type" class="oe_inline"/><label for="product_website_sale_type" string="¿Este producto se vende por curva?"/>
  11. </div>
  12. <field name="active" position="after">
  13. <field name="curva" string="Configurar curva" attrs="{'invisible': [('product_website_sale_type','=', False)],'required': [('product_website_sale_type','=', True)]}"/>
  14. </field>
  15. </field>
  16. </record>
  17. </data>
  18. </openerp>