| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="loyalty_program_view_form_inherit_website_sale_loyalty" model="ir.ui.view"> |
| 5 | <field name="name">loyalty.program.view.form.inherit.website.sale.loyalty</field> |
| 6 | <field name="model">loyalty.program</field> |
| 7 | <field name="inherit_id" ref="sale_loyalty.loyalty_program_view_form_inherit_sale_loyalty"/> |
| 8 | <field name="arch" type="xml"> |
| 9 | <xpath expr="//label[@for='available_on']" position="attributes"> |
| 10 | <attribute name="invisible">0</attribute> |
| 11 | </xpath> |
| 12 | <xpath expr="//div[@id='o_loyalty_program_availabilities']" position="attributes"> |
| 13 | <attribute name="invisible">0</attribute> |
| 14 | </xpath> |
| 15 | <xpath expr="//div[@id='o_loyalty_program_availabilities']" position="inside"> |
| 16 | <span class="d-inline-flex text-break"> |
| 17 | <field name="ecommerce_ok"/> |
| 18 | <label for="ecommerce_ok" string="Website"/> |
| 19 | </span> |
| 20 | </xpath> |
| 21 | <xpath expr="//div[@id='o_loyalty_program_availabilities']" position="after"> |
| 22 | <field name="website_id" invisible="not ecommerce_ok" options="{'no_create': True}" groups="website.group_multi_website" placeholder="All websites"/> |
| 23 | </xpath> |
| 24 | <div id="trigger_products" position="inside"> |
| 25 | <div |
| 26 | invisible="not show_non_published_product_warning" |
| 27 | class="alert alert-warning mt-1" |
| 28 | role="alert" |
| 29 | > |
| 30 | To be able to top up eWallet from the portal, eWallet products must be |
| 31 | published. |
| 32 | </div> |
| 33 | </div> |
| 34 | </field> |
| 35 | </record> |
| 36 | |
| 37 | <record id="loyalty_program_view_tree_inherit_website_sale_loyalty" model="ir.ui.view"> |
| 38 | <field name="name">loyalty.program.view.list.inherit.website.sale.loyalty</field> |
| 39 | <field name="model">loyalty.program</field> |
| 40 | <field name="inherit_id" ref="loyalty.loyalty_program_view_tree"/> |
| 41 | <field name="arch" type="xml"> |
| 42 | <field name="coupon_count_display" position="after"> |
| 43 | <field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/> |
| 44 | </field> |
| 45 | <field name="company_id" position="after"> |
| 46 | <button name="action_program_share" string="Share" type="object" icon="fa-share-alt" invisible="program_type != 'promo_code'"/> |
| 47 | </field> |
| 48 | </field> |
| 49 | </record> |
| 50 | </odoo> |