| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="sale_loyalty_reward_wizard_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">sale.loyalty.reward.wizard.view.form</field> |
| 5 |
<field name="model">sale.loyalty.reward.wizard</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<form> |
| 8 |
<sheet> |
| 9 |
<group> |
| 10 |
<field name="order_id" invisible="1"/> |
| 11 |
<field name="reward_ids" invisible="1"/> |
| 12 |
<field name="multi_product_reward" invisible="1"/> |
| 13 |
<field name="reward_product_ids" invisible="1"/> |
| 14 |
<a invisible="reward_ids"> |
| 15 |
No rewards available for this customer! |
| 16 |
</a> |
| 17 |
<label for="selected_reward_id" string="Choose your reward:" colspan="2" |
| 18 |
invisible="not reward_ids"/> |
| 19 |
<field name="selected_reward_id" widget="radio" colspan="2" nolabel="1" |
| 20 |
invisible="not reward_ids"/> |
| 21 |
<label for="selected_product_id" string="Choose a product:" colspan="2" |
| 22 |
invisible="not multi_product_reward"/> |
| 23 |
<field name="selected_product_id" widget="radio" colspan="2" nolabel="1" |
| 24 |
invisible="not multi_product_reward"/> |
| 25 |
</group> |
| 26 |
</sheet> |
| 27 |
<footer> |
| 28 |
|
| 29 |
<button type="object" name="action_apply" string="Apply" class="btn btn-primary" |
| 30 |
invisible="not reward_ids" data-hotkey="q"/> |
| 31 |
<button type="object" name="action_cancel" string="Discard" class="btn btn-secondary" |
| 32 |
invisible="not reward_ids" data-hotkey="x"/> |
| 33 |
|
| 34 |
<button special="cancel" string="Discard" class="btn btn-primary" |
| 35 |
invisible="reward_ids" data-hotkey="x"/> |
| 36 |
<button type="action" name="%(loyalty.loyalty_program_discount_loyalty_action)d" string="Coupons & Loyalty" class="btn btn-secondary float-end" |
| 37 |
invisible="reward_ids" groups="sales_team.group_sale_manager" data-hotkey="q"/> |
| 38 |
</footer> |
| 39 |
</form> |
| 40 |
</field> |
| 41 |
</record> |
| 42 |
|
| 43 |
<record id="sale_loyalty_reward_wizard_action" model="ir.actions.act_window"> |
| 44 |
<field name="name">Available Rewards</field> |
| 45 |
<field name="res_model">sale.loyalty.reward.wizard</field> |
| 46 |
<field name="view_mode">form</field> |
| 47 |
<field name="target">new</field> |
| 48 |
</record> |
| 49 |
</odoo> |