You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
1.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit the sale order form view -->
<record id="sale_order_view_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.direct.send.email.template</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_quotation_send']" position="before">
<button name="direct_send_sale" type="object" string="Direct Send" attrs="{'invisible': [('state', 'not in', ('draft','sale'))]}" class="btn-primary"/>
</xpath>
</field>
</record>
<!-- Inherit the sale order search view -->
<record id="sale_order_view_search_inherit_quotation" model="ir.ui.view">
<field name="name">sale.order.view.search.inherit.direct.send.email.template</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.sale_order_view_search_inherit_quotation"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='filter_create_date']" position="after">
<separator/>
<filter name="direct_send_quo" string="Direct Send Quotations" domain="[('direct_send_quo', '=', 'True')]"/>
<filter name="direct_send_so" string="Direct Send Sale Orders" domain="[('direct_send_so', '=', 'True')]"/>
</xpath>
</field>
</record>
</odoo>