Odoo modules related to events management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
  4. <field name="name">product.product.view.form.inherit</field>
  5. <field name="model">product.product</field>
  6. <field name="inherit_id" ref="product.product_variant_easy_edit_view" />
  7. <field name="arch" type="xml">
  8. <field name="id" position="after">
  9. <field name="detailed_type" invisible="1" />
  10. </field>
  11. <group name="product_variant_images" position="after">
  12. <group name="event" string="Event sale" attrs="{'invisible': [('detailed_type','!=','event')]}">
  13. <field name="is_event_deposit" />
  14. <field name="balance_variant_id" options="{'no_create': 1}"
  15. attrs="{'invisible':[('is_event_deposit','=',False)],'required':[('is_event_deposit','=',True)]}" />
  16. </group>
  17. </group>
  18. </field>
  19. </record>
  20. <!-- <record id="product_normal_form_view_inherit" model="ir.ui.view">
  21. <field name="name">product.product.view.form.inherit</field>
  22. <field name="model">product.product</field>
  23. <field name="inherit_id" ref="product.product_normal_form_view" />
  24. <field name="arch" type="xml">
  25. <group name="description" position="after">
  26. <group name="event" string="Event sale" attrs="{'invisible': [('detailed_type','!=','event')]}">
  27. <field name="is_event_deposit" />
  28. <field name="balance_variant_id" options="{'no_create': 1}" />
  29. </group>
  30. </group>
  31. </field>
  32. </record> -->
  33. </odoo>