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.
 
 
 
 
 

94 lines
5.0 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<!-- customer and vendor statements -->
<record id="res_partner_view_form" model="ir.ui.view">
<field name="name">res.partner.inherit.statement.report</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='sales_purchases']" position="after">
<page name="customer_statement_page"
string="Customer Statement">
<button name="action_print_pdf" type="object"
class="btn-secondary">
Print PDF
</button>
<button name="action_print_xlsx" type="object"
class="btn-secondary">
Print Excel
</button>
<button name="action_share_pdf" type="object"
class="btn-secondary">
Sent PDF By Email
</button>
<button name="action_share_xlsx" type="object"
class="btn-secondary">
Sent Excel By Email
</button>
<br/>
<br/>
<field name="customer_report_ids">
<tree create='false' delete="false">
<field name="currency_id" invisible="1"/>
<field name="invoice_date"
string="Invoice Date"/>
<field name="name" string="Invoice No."/>
<field name="invoice_date_due"/>
<field name="amount_total_signed"
sum="Total Amount" string="Total Amount"
widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="amount_residual_signed"
string="Amount Due" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="amount_residual" sum="Balance Due"
string="Balance" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
</tree>
</field>
</page>
<page name="supplier_statement"
string="Supplier Statement">
<button name="action_vendor_print_pdf" type="object"
class="btn-secondary">
Print PDF
</button>
<button name="action_vendor_print_xlsx" type="object"
class="btn-secondary">
Print Excel
</button>
<button name="action_vendor_share_pdf" type="object"
class="btn-secondary">
Sent PDF By Email
</button>
<button name="action_vendor_share_xlsx" type="object"
class="btn-secondary">
Sent Excel By Email
</button>
<br/>
<br/>
<field name="vendor_statement_ids">
<tree create="false" delete="false">
<field name="currency_id" invisible="1"/>
<field name="invoice_date" string="Bill Date"/>
<field name="name" string="Bill No."/>
<field name="invoice_date_due"/>
<field name="amount_total_signed"
sum="Total Amount" string="Total Amount"
widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="amount_residual_signed"
string="Amount Due" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="amount_residual" sum="Balance Due"
string="Balance" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</data>
</odoo>