2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
<record id="view_delivery_carrier_form_website_delivery" model="ir.ui.view">
|
|
|
|
<field name="name">delivery.carrier.website.form</field>
|
|
|
|
<field name="model">delivery.carrier</field>
|
|
|
|
<field name="inherit_id" ref="delivery.view_delivery_carrier_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//page[@name='destination']" position='after'>
|
|
|
|
<page string="Description">
|
|
|
|
<field name="website_description" placeholder="Description displayed on the eCommerce and on online quotations."/>
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//button[@name='toggle_active']" position='before'>
|
|
|
|
<button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe">
|
|
|
|
<field name="website_published" widget="website_button"/>
|
|
|
|
</button>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_delivery_carrier_tree_inherit_website_sale_delivery" model="ir.ui.view">
|
|
|
|
<field name="name">delivery.carrier.tree.inherit</field>
|
|
|
|
<field name="model">delivery.carrier</field>
|
|
|
|
<field name="inherit_id" ref="delivery.view_delivery_carrier_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="delivery_type" position="after">
|
|
|
|
<field name="website_published"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_delivery_carrier_search_inherit_website_sale_delivery" model="ir.ui.view">
|
|
|
|
<field name="name">delivery.carrier.search.inherit</field>
|
|
|
|
<field name="model">delivery.carrier</field>
|
|
|
|
<field name="inherit_id" ref="delivery.view_delivery_carrier_search"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<filter name="inactive" position="after">
|
|
|
|
<filter string="Published" name="website_published" domain="[('website_published','=',True)]"/>
|
|
|
|
</filter>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem
|
|
|
|
id="menu_ecommerce_delivery"
|
|
|
|
parent="website_sale.menu_ecommerce_settings"
|
|
|
|
name="Delivery Methods"
|
|
|
|
action="delivery.action_delivery_carrier_form"/>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|