| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="product_ribbon_form_view" model="ir.ui.view"> |
| 5 | <field name="name">product.ribbon.form.view</field> |
| 6 | <field name="model">product.ribbon</field> |
| 7 | <field name="arch" type="xml"> |
| 8 | <form> |
| 9 | <sheet> |
| 10 | <div class="oe_title"> |
| 11 | <h1> |
| 12 | <field name="name" placeholder="New Collection"/> |
| 13 | </h1> |
| 14 | </div> |
| 15 | <group> |
| 16 | <label for="assign"/> |
| 17 | <div> |
| 18 | <field name="assign" class="oe_inline"/> |
| 19 | <div invisible="assign != 'new'" class="text-muted ms-2 d-inline-flex align-items-center"> |
| 20 | <span>for</span> |
| 21 | <field name="new_period" style="width: 3rem; !important" class="ms-1 mb-0"/> |
| 22 | <span>days after publication.</span> |
| 23 | </div> |
| 24 | </div> |
| 25 | </group> |
| 26 | <notebook> |
| 27 | <page string="Display"> |
| 28 | <group> |
| 29 | <field name="position" widget="radio" options="{'horizontal': True}"/> |
| 30 | <field name="style" widget="radio" options="{'horizontal': True}"/> |
| 31 | <field name="text_color" widget="color"/> |
| 32 | <field name="bg_color" widget="color"/> |
| 33 | </group> |
| 34 | </page> |
| 35 | </notebook> |
| 36 | </sheet> |
| 37 | </form> |
| 38 | </field> |
| 39 | </record> |
| 40 | |
| 41 | <record id="product_ribbon_view_tree" model="ir.ui.view"> |
| 42 | <field name="name">product.ribbon.list</field> |
| 43 | <field name="model">product.ribbon</field> |
| 44 | <field name="arch" type="xml"> |
| 45 | <list string="Product Ribbon"> |
| 46 | <field name="sequence" widget="handle"/> |
| 47 | <field name="name"/> |
| 48 | <field name="position"/> |
| 49 | <field name="text_color" widget="color" readonly="1"/> |
| 50 | <field name="bg_color" widget="color" readonly="1"/> |
| 51 | </list> |
| 52 | </field> |
| 53 | </record> |
| 54 | |
| 55 | <record id="product_ribbon_action" model="ir.actions.act_window"> |
| 56 | <field name="name">Product Ribbons</field> |
| 57 | <field name="res_model">product.ribbon</field> |
| 58 | <field name="path">product-ribbons</field> |
| 59 | <field name="view_mode">list,form</field> |
| 60 | <field name="context">{'create': True}</field> |
| 61 | <field name="help" type="html"> |
| 62 | <p class="o_view_nocontent_smiling_face"> |
| 63 | Define a new ribbon |
| 64 | </p> |
| 65 | </field> |
| 66 | </record> |
| 67 | |
| 68 | </odoo> |