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.

37 lines
1.6 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="loyalty_reward_form_view" model="ir.ui.view">
  4. <field name="name">loyalty.reward.form</field>
  5. <field name="model">loyalty.reward</field>
  6. <field name="arch" type="xml">
  7. <form string="Loyalty Reward">
  8. <div class="oe_title">
  9. <label class="oe_edit_only" for="name"/>
  10. <h1>
  11. <field name="name" class="oe_inline"/>
  12. </h1>
  13. </div>
  14. <group>
  15. <field name="type"/>
  16. </group>
  17. <group >
  18. <field name="gift_product_id"
  19. attrs="{'invisible':[('type','!=','gift')], 'required':[('type','=','gift')]}"/>
  20. <field name="discount"
  21. attrs="{'invisible':[('type','!=','discount')]}"/>
  22. <field name="discount_max"
  23. attrs="{'invisible':[('type','!=','discount')]}"/>
  24. <field name="discount_product_id"
  25. attrs="{'invisible':[('type','!=','discount')], 'required':[('type','=','discount')]}"/>
  26. <field name="point_product_id"
  27. attrs="{'invisible': [('type','!=','resale')], 'required': [('type','=','resale')]}"/>
  28. </group>
  29. <group>
  30. <field name="point_cost"
  31. attrs="{'invisible':[('type','=','resale')]}"/>
  32. <field name="minimum_points"/>
  33. </group>
  34. </form>
  35. </field>
  36. </record>
  37. </odoo>