odoo/addons/website_sale_delivery/views/website_sale_delivery_views.xml

51 lines
2.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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">
<div name="button_box" position="inside">
<button class="oe_stat_button" name="website_publish_button" type="object" icon="fa-globe">
<field name="website_published" widget="website_button"/>
</button>
</div>
<div name="title" position="after">
<group name="website">
<field name="website_description" string="Description" placeholder="Description displayed on the eCommerce and on online quotations."/>
</group>
</div>
</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"/>
</odoo>