Files
odoo_source/addons/sale_loyalty/views/loyalty_program_views.xml
T
Alexis de Lattre 43bd951943 [IMP] sale: renumber menu sequences to leave space
Menu sequence of the sale module are now numbered 10/20/30 instead of
1/2/3 to allow third-party modules to introduce a new menu entry between
two existing menu entries.

closes odoo/odoo#99972

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-09-12 12:43:44 +02:00

41 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="loyalty_program_view_form_inherit_sale_loyalty" model="ir.ui.view">
<field name="name">loyalty.program.view.form.inherit.sale.loyalty</field>
<field name="model">loyalty.program</field>
<field name="inherit_id" ref="loyalty.loyalty_program_view_form"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='available_on']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//div[@id='o_loyalty_program_availabilities']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//div[@id='o_loyalty_program_availabilities']" position="inside">
<span class="d-inline-block">
<field name="sale_ok" class="w-auto me-0"/>
<label for="sale_ok" class="me-3"/>
</span>
</xpath>
</field>
</record>
<menuitem
id="menu_discount_loyalty_type_config"
action="loyalty.loyalty_program_discount_loyalty_action"
name="Discount &amp; Loyalty"
parent="sale.product_menu_catalog"
groups="sales_team.group_sale_manager"
sequence="40"
/>
<menuitem
id="menu_gift_ewallet_type_config"
action="loyalty.loyalty_program_gift_ewallet_action"
name="Gift cards &amp; eWallet"
parent="sale.product_menu_catalog"
groups="sales_team.group_sale_manager"
sequence="50"
/>
</odoo>