| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="coupon_share_view_form" model="ir.ui.view"> |
| 4 | <field name="name">coupon.share.form</field> |
| 5 | <field name="model">coupon.share</field> |
| 6 | <field name="arch" type="xml"> |
| 7 | <form string="Share Loyalty Card" edit="1" create="0"> |
| 8 | <field name="website_id" invisible="1"/> |
| 9 | <field name="program_website_id" invisible="1"/> |
| 10 | <group> |
| 11 | <div colspan="2"> |
| 12 | <p> |
| 13 | You can share this promotion with your customers. |
| 14 | It will be applied at checkout when the customer uses this link. |
| 15 | </p> |
| 16 | </div> |
| 17 | <field name="share_link" widget="CopyClipboardURL" no_label="1"/> |
| 18 | </group> |
| 19 | <group invisible="id"> |
| 20 | <group> |
| 21 | <field name="website_id" groups="website.group_multi_website" widget="selection" |
| 22 | invisible="program_website_id"/> |
| 23 | <field name="redirect"/> |
| 24 | </group> |
| 25 | </group> |
| 26 | <footer> |
| 27 | <button string="Done" class="btn-primary" special="cancel" data-hotkey="x"/> |
| 28 | <button string="Generate Short Link" class="btn-secondary" type="object" name="action_generate_short_link" |
| 29 | invisible="not website_id or id" data-hotkey="g"/> |
| 30 | </footer> |
| 31 | </form> |
| 32 | </field> |
| 33 | </record> |
| 34 | </odoo> |