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.
|
|
<?xml version="1.0"?> <odoo>
<record id="act_analytic_invoices" model="ir.actions.act_window"> <field name="context">{'search_default_analytic_account_ids': [active_id], 'default_analytic_account_ids': [active_id]}</field> <field name="name">Invoices</field> <field name="res_model">account.invoice</field> <field name="domain">[('analytic_account_ids','=',active_id), ('type','in', ['out_invoice', 'out_refund']), ('state', 'not in', ['draft', 'cancel'])]</field> <field name="search_view_id" ref="account.view_account_invoice_filter" /> </record>
<record id="action_contract_show_invoice_tree" model="ir.actions.act_window.view"> <field name="sequence" eval="1"/> <field name="view_mode">tree</field> <field name="view_id" ref="account.invoice_tree"/> <field name="act_window_id" ref="act_analytic_invoices"/> </record>
<record id="action_contract_show_invoice_form" model="ir.actions.act_window.view"> <field name="sequence" eval="2"/> <field name="view_mode">form</field> <field name="view_id" ref="account.invoice_form"/> <field name="act_window_id" ref="act_analytic_invoices"/> </record>
<record id="invoice_tree_show_total_untaxed" model="ir.ui.view"> <field name="name">account.invoice.tree.show.total.untaxed</field> <field name="model">account.invoice</field> <field name="inherit_id" ref="account.invoice_tree"/> <field name="arch" type="xml"> <field name="amount_total_signed" position="after"> <field name="amount_untaxed_signed" sum="Total Untaxed"/> </field> </field> </record>
<record id="account_analytic_account_button_invoice" model="ir.ui.view"> <field name="name">account.analytic.account.button.invoice </field> <field name="model">account.analytic.account</field> <field name="inherit_id" ref="analytic.view_account_analytic_account_form" /> <field name="arch" type="xml"> <xpath expr='//div[@name="button_box"]' position='inside'> <button class="oe_stat_button" type="action" icon="fa-edit" name="%(contract_show_invoice.act_analytic_invoices)d" help="Invoices related with this contract"> <div class="o_form_field o_stat_info"> <span class="o_stat_value"> <field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/> </span> <span class="o_stat_text">Invoiced</span> </div> </button> </xpath> </field> </record>
</odoo>
|