19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:29:53 +01:00
parent 6e54c1af6c
commit 3ca647e428
1087 changed files with 132065 additions and 108499 deletions

View file

@ -6,7 +6,7 @@
<field name="inherit_id" ref="loyalty.loyalty_card_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="source_pos_order_id" readonly="1" attrs="{'invisible': [('source_pos_order_id', '=', False)]}"/>
<field name="source_pos_order_id" readonly="1" invisible="not source_pos_order_id"/>
</xpath>
</field>
</record>

View file

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="loyalty_mail_view_tree_inherit_pos_loyalty" model="ir.ui.view">
<field name="name">loyalty.mail.view.tree.inherit.pos.loyalty</field>
<field name="name">loyalty.mail.view.list.inherit.pos.loyalty</field>
<field name="model">loyalty.mail</field>
<field name="inherit_id" ref="loyalty.loyalty_mail_view_tree"/>
<field name="arch" type="xml">
<field name="mail_template_id" position="after">
<field name="pos_report_print_id" attrs="{'invisible': [('trigger', '!=', 'create')]}"/>
<field name="pos_report_print_id" invisible="trigger != 'create'"/>
</field>
</field>
</record>

View file

@ -7,7 +7,7 @@
<field name="inherit_id" ref="loyalty.loyalty_program_view_form"/>
<field name="arch" type="xml">
<field name="mail_template_id" position="after">
<field name="pos_report_print_id" attrs="{'invisible': [('program_type', '!=', 'gift_card')]}" />
<field name="pos_report_print_id" invisible="program_type != 'gift_card'" />
</field>
<xpath expr="//label[@for='available_on']" position="attributes">
<attribute name="invisible">0</attribute>
@ -16,19 +16,19 @@
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//div[@id='o_loyalty_program_availabilities']" position="inside">
<span class="d-inline-block">
<field name="pos_ok" class="w-auto me-0"/>
<label for="pos_ok" class="me-3"/>
<span class="d-inline-flex text-break">
<field name="pos_ok"/>
<label for="pos_ok"/>
</span>
</xpath>
<xpath expr="//div[@id='o_loyalty_program_availabilities']" position="after">
<field name="pos_config_ids" string="Point of Sale" widget="many2many_tags" attrs="{'invisible': [('pos_ok', '=', False)]}" options="{'create': False}" placeholder="All PoS"/>
<field name="pos_config_ids" string="Point of Sale" widget="many2many_tags" invisible="not pos_ok" options="{'create': False}" placeholder="All PoS"/>
</xpath>
</field>
</record>
<record id="loyalty_program_view_tree_inherit_pos_loyalty" model="ir.ui.view">
<field name="name">loyalty.program.view.tree.inherit.pos.loyalty</field>
<field name="name">loyalty.program.view.list.inherit.pos.loyalty</field>
<field name="model">loyalty.program</field>
<field name="inherit_id" ref="loyalty.loyalty_program_view_tree"/>
<field name="arch" type="xml">

View file

@ -5,16 +5,13 @@
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="point_of_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='loyalty_program_text']" position="after">
<div class="content-group" attrs="{'invisible': [('module_loyalty', '=', False)]}">
<div class="mt16 o_light_label">
<field name="pos_gift_card_settings" colspan="4" nolabel="1" widget="radio"/>
</div>
<xpath expr="//setting[@id='pos-loyalty']" position="inside">
<div class="content-group" invisible="not module_loyalty">
<div class="mt8">
<button name="%(loyalty.loyalty_program_discount_loyalty_action)d" icon="fa-arrow-right" type="action" string="Discount &amp; Loyalty" class="btn-link"/>
<button name="%(loyalty.loyalty_program_discount_loyalty_action)d" icon="oi-arrow-right" type="action" string="Discount &amp; Loyalty" class="btn-link"/>
</div>
<div class="mt8">
<button name="%(loyalty.loyalty_program_gift_ewallet_action)d" icon="fa-arrow-right" type="action" string="Gift cards &amp; eWallet" class="btn-link"/>
<div class="mt8" id="button_loyalty_program" invisible="is_kiosk_mode">
<button name="%(loyalty.loyalty_program_gift_ewallet_action)d" icon="oi-arrow-right" type="action" string="Gift cards &amp; eWallet" class="btn-link"/>
</div>
</div>
</xpath>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_partner_form" model="ir.ui.view">
<field name="name">res.partner.view.buttons</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="loyalty.res_partner_form"/>
<field name="arch" type="xml">
<button name="action_view_loyalty_cards" position="attributes">
<attribute name="groups" separator="," add="point_of_sale.group_pos_user"/>
</button>
</field>
</record>
</odoo>