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.
 
 
 
 
 

30 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_move_direct_send_button_view" model="ir.ui.view">
<field name="name">account.move.button</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>
<record id="view_account_filter_inherit_direct_send_email_template" model="ir.ui.view">
<field name="name">account.invoice.select.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>