1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_account_statement_from_invoice" model="ir.ui.view">
5 <field name="name">account.statement.from.invoice.form</field>
6 <field name="model">account.statement.from.invoice</field>
7 <field name="type">form</field>
8 <field name="arch" type="xml">
9 <form string="Import Invoices in Statement">
13 <field name="journal_ids" domain="[('type','in',['sale','purchase','cash'])]"/>
15 <group colspan="4" col="6">
16 <label string ="" colspan="2"/>
17 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
18 <button icon="terp-gtk-go-back-rtl" string="Go" name="search_invoices" type="object"/>
24 <record id="action_view_account_statement_from_invoice" model="ir.actions.act_window">
25 <field name="name">Import Invoices in Statement</field>
26 <field name="res_model">account.statement.from.invoice</field>
27 <field name="view_type">form</field>
28 <field name="view_mode">tree,form</field>
29 <field name="view_id" ref="view_account_statement_from_invoice"/>
30 <field name="target">new</field>
33 <record id="view_account_statement_from_invoice_lines" model="ir.ui.view">
34 <field name="name">account.statement.from.invoice.lines.form</field>
35 <field name="model">account.statement.from.invoice.lines</field>
36 <field name="type">form</field>
37 <field name="arch" type="xml">
38 <form string="Import Entries">
39 <group colspan="4" expand="1">
40 <separator string="Payable and Receivables" colspan="4"/>
41 <field height="300" width="700" name="line_ids" colspan="4" nolabel="1" domain="[('account_id.type','in',['receivable','payable']),('reconcile_id','=',False), ('reconcile_partial_id','=',False), ('state', '=', 'valid')]"/>
43 <group colspan="4" col="6">
44 <label string ="" colspan="2"/>
45 <button icon="gtk-cancel" special="cancel" string="Cancel"/>
46 <button icon="gtk-execute" string="Ok" name="populate_statement" type="object"/>
52 <record id="action_view_account_statement_from_invoice_lines" model="ir.actions.act_window">
53 <field name="name">Import Entries</field>
54 <field name="res_model">account.statement.from.invoice.lines</field>
55 <field name="view_type">form</field>
56 <field name="view_mode">tree,form</field>
57 <field name="view_id" ref="view_account_statement_from_invoice_lines"/>
58 <field name="target">new</field>
59 <field name="context">{'statement_id': active_id}</field>