| 1 | <?xml version="1.0" encoding="utf-8" ?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="delivery_carrier_form" model="ir.ui.view"> |
| 5 | <field name="name">In-store Delivery Carrier Form</field> |
| 6 | <field name="inherit_id" ref="delivery.view_delivery_carrier_form"/> |
| 7 | <field name="model">delivery.carrier</field> |
| 8 | <field name="arch" type="xml"> |
| 9 | <field name="allow_cash_on_delivery" position="attributes"> |
| 10 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 11 | </field> |
| 12 | <field name="integration_level" position="attributes"> |
| 13 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 14 | </field> |
| 15 | <field name="invoice_policy" position="attributes"> |
| 16 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 17 | </field> |
| 18 | <p name="availability_description" position="attributes"> |
| 19 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 20 | </p> |
| 21 | <group name="country_details" position="attributes"> |
| 22 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 23 | </group> |
| 24 | <label for="max_weight" position="attributes"> |
| 25 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 26 | </label> |
| 27 | <div name="max_weight_row" position="attributes"> |
| 28 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 29 | </div> |
| 30 | <label for="max_volume" position="attributes"> |
| 31 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 32 | </label> |
| 33 | <div name="max_volume_row" position="attributes"> |
| 34 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 35 | </div> |
| 36 | <p name="country_warning" position="attributes"> |
| 37 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 38 | </p> |
| 39 | <page name="pricing" position="before"> |
| 40 | <page string="Stores" name="warehouses" invisible="delivery_type != 'in_store'"> |
| 41 | <field name="warehouse_ids"> |
| 42 | <list create="False"> |
| 43 | <field name="name"/> |
| 44 | <field name="opening_hours"/> |
| 45 | <field name="lot_stock_id" groups="stock.group_stock_multi_locations"/> |
| 46 | <field name="partner_id"/> |
| 47 | <field name="company_id" groups="base.group_multi_company"/> |
| 48 | </list> |
| 49 | </field> |
| 50 | </page> |
| 51 | </page> |
| 52 | <button name="toggle_prod_environment" position="attributes"> |
| 53 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 54 | </button> |
| 55 | <button name="toggle_debug" position="attributes"> |
| 56 | <attribute name="invisible" add="delivery_type == 'in_store'" separator=" or "/> |
| 57 | </button> |
| 58 | </field> |
| 59 | </record> |
| 60 | |
| 61 | </odoo> |