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

<?xml version="1.0"?>
<odoo>
<record id="loyalty_reward_form_view" model="ir.ui.view">
<field name="name">loyalty.reward.form</field>
<field name="model">loyalty.reward</field>
<field name="arch" type="xml">
<form string="Loyalty Reward">
<div class="oe_title">
<label class="oe_edit_only" for="name"/>
<h1>
<field name="name" class="oe_inline"/>
</h1>
</div>
<group>
<field name="type"/>
</group>
<group >
<field name="gift_product_id"
attrs="{'invisible':[('type','!=','gift')], 'required':[('type','=','gift')]}"/>
<field name="discount"
attrs="{'invisible':[('type','!=','discount')]}"/>
<field name="discount_max"
attrs="{'invisible':[('type','!=','discount')]}"/>
<field name="discount_product_id"
attrs="{'invisible':[('type','!=','discount')], 'required':[('type','=','discount')]}"/>
<field name="point_product_id"
attrs="{'invisible': [('type','!=','resale')], 'required': [('type','=','resale')]}"/>
</group>
<group>
<field name="point_cost"
attrs="{'invisible':[('type','=','resale')]}"/>
<field name="minimum_points"/>
</group>
</form>
</field>
</record>
</odoo>