product_view.xml 1.4 KB

12345678910111213141516171819202122232425262728
  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="¿Se vende por curva?"/>
  11. </div>
  12. <field name="product_curve_id" position="replace"></field>
  13. <xpath expr="//notebook/page[@string='Variants']" position="after">
  14. <page string="Configurar Curva" attrs="{'invisible': [('product_website_sale_type','=', False)],'required': [('product_website_sale_type','=', True)]}">
  15. <group>
  16. <group>
  17. <field name="product_curve_id" string="Tipo de Curva"/>
  18. </group>
  19. <group>
  20. <field name="curva" string="Configuración de curva" attrs="{'invisible': [('product_website_sale_type','=', False)],'required': [('product_website_sale_type','=', True)]}"/>
  21. </group>
  22. </group>
  23. </page>
  24. </xpath>
  25. </field>
  26. </record>
  27. </data>
  28. </openerp>