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.
 
 
 
 
 

29 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit the account move form view -->
<record id="account_move_view_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.direct.send.email.template</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_invoice_sent']" position="before">
<button name="direct_send_account" type="object" string="Direct Send" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/>
</xpath>
</field>
</record>
<!-- Inherit the account move search view -->
<record id="view_account_invoice_filter" model="ir.ui.view">
<field name="name">account.invoice.view.search.inherit.direct.send.email.template</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='activities_upcoming_all']" position="after">
<separator/>
<filter name="direct_send_inv" string="Direct Send Invoices" domain="[('direct_send_inv', '=', 'True')]"/>
<filter name="direct_send_crd" string="Direct Send Credit Notes" domain="[('direct_send_crd', '=', 'True')]"/>
<filter name="direct_send_bill" string="Direct Send Vendor Bills" domain="[('direct_send_bill', '=', 'True')]"/>
<filter name="direct_send_ref" string="Direct Send Refund" domain="[('direct_send_ref', '=', 'True')]"/>
</xpath>
</field>
</record>
</odoo>