1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- View used in the wizard -->
6 <record id="view_move_line_form" model="ir.ui.view">
7 <field name="name">account.move.line.form.inherit</field>
8 <field name="model">account.move.line</field>
9 <field name="type">form</field>
10 <field name="inherit_id" ref="account.view_move_line_form"/>
11 <field name="arch" type="xml">
12 <field name="reconcile_partial_id" position="after">
13 <field name="amount_to_pay"/>
18 <record model="ir.ui.view" id="view_move_line_tree_wiz">
19 <field name="name">account.move.line.tree</field>
20 <field name="model">account.move.line</field>
21 <field name="type">tree</field>
22 <field name="priority" eval="1"/>
23 <field name="arch" type="xml">
24 <tree string="Account Entry Line">
25 <field name="partner_id"/>
28 <field name="journal_id"/>
29 <field name="account_id"/>
30 <field name="date_maturity"/>
32 <field name="debit" sum="Total debit"/>
33 <field name="credit" sum="Total credit"/>
34 <field name="amount_to_pay"/>
35 <field name="amount_currency"/>
36 <field name="currency_id"/>
37 <field name="period_id" invisible="1"/>
42 <menuitem id="menu_main_payment" name="Payment" parent="account.menu_finance" sequence="6"/>
44 <record id="view_payment_mode_search" model="ir.ui.view">
45 <field name="name">payment.mode.search</field>
46 <field name="model">payment.mode</field>
47 <field name="type">search</field>
48 <field name="arch" type="xml">
49 <form string="Payment Mode">
51 <field name="journal" widget='selection'/>
52 <field name="company_id" widget='selection' groups="base.group_multi_company"/>
54 <group expand="0" string="Group By...">
55 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal'}"/>
61 <record id="view_payment_mode_tree" model="ir.ui.view">
62 <field name="name">payment.mode.tree</field>
63 <field name="model">payment.mode</field>
64 <field name="type">tree</field>
65 <field name="arch" type="xml">
66 <tree string="Payment Mode">
68 <field name="journal"/>
69 <field name="company_id" groups="base.group_multi_company"/>
74 <record id="view_payment_mode_form" model="ir.ui.view">
75 <field name="name">payment.mode.form</field>
76 <field name="model">payment.mode</field>
77 <field name="type">form</field>
78 <field name="arch" type="xml">
79 <form string="Payment Mode">
80 <field name="name" select="1"/>
81 <field name="journal" select="1"/>
82 <field name="bank_id"/>
83 <field name="company_id" select="1" widget='selection' groups="base.group_multi_company"/>
87 <record id="action_payment_mode_form" model="ir.actions.act_window">
88 <field name="name">Payment Mode</field>
89 <field name="res_model">payment.mode</field>
90 <field name="view_type">form</field>
91 <field name="view_mode">tree,form,search</field>
92 <field name="search_view_id" ref="view_payment_mode_search"/>
95 <menuitem action="action_payment_mode_form" id="menu_action_payment_mode_form" parent="account.menu_configuration_misc"/>
97 <record id="view_payment_order_form" model="ir.ui.view">
98 <field name="name">payment.order.form</field>
99 <field name="model">payment.order</field>
100 <field name="type">form</field>
101 <field name="arch" type="xml">
102 <form string="Payment order">
103 <group col="6" colspan="4">
104 <field name="reference"/>
105 <field name="mode" widget='selection'/>
106 <field name="user_id"/>
107 <field name="date_prefered"/>
108 <field name="date_scheduled" select="1" attrs="{'readonly':[('date_prefered','!=','fixed')]}" />
109 <button colspan="2" name="%(action_create_payment_order)d" string="Select Invoices to Pay" type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/>
111 <field name="line_ids" colspan="4" widget="one2many_list" nolabel="1" default_get="{'order_id': active_id}" >
112 <form string="Payment Line">
114 <page string="Payment">
115 <field name="move_line_id" on_change="onchange_move_line(move_line_id,parent.mode,parent.date_prefered,parent.date_scheduled,currency,company_currency)" select="1" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)] "/>
116 <separator colspan="4" string="Transaction Information"/>
119 <field name="amount_currency" on_change="onchange_amount(amount_currency,currency,company_currency)"/>
120 <field name="currency" nolabel="1"/>
122 <field name="partner_id" on_change="onchange_partner(partner_id,parent.mode)" select="1"/>
123 <field domain="[('partner_id','=',partner_id)]" name="bank_id"/>
124 <separator colspan="2" string="Owner Account"/>
125 <separator colspan="2" string="Destination Account"/>
126 <field colspan="2" name="info_owner" nolabel="1"/>
127 <field colspan="2" name="info_partner" nolabel="1"/>
128 <field colspan="4" name="communication"/>
129 <field colspan="4" name="communication2"/>
131 <field name="state"/>
133 <page string="Information">
135 <separator colspan="4" string="General Information"/>
137 <field name="amount"/>
138 <field name="company_currency" nolabel="1"/>
140 <separator colspan="4" string="Entry Information"/>
141 <field name="create_date" readonly="1"/>
142 <field name="ml_maturity_date"/>
143 <field name="ml_inv_ref"/>
147 <tree string="Payment Line">
148 <field name="ml_inv_ref" />
149 <field name="partner_id" select="1"/>
150 <field name="bank_id" domain="[('partner_id', '=', partner_id)]"/>
151 <field name="ml_maturity_date"/>
153 <field name="amount_currency" string="Amount"/>
154 <field name="currency"/>
156 <field name="amount" sum="Total in Company Currency" invisible="1"/>
159 <field name="date_created"/>
160 <field name="date_done"/>
161 <field name="state" readonly="1" select="1"/>
162 <group col="4" colspan="2">
163 <button name="cancel" states="draft,open" string="Cancel" icon="gtk-cancel"/>
164 <button name="open" states="draft" string="Confirm Payments" icon="gtk-apply"/>
165 <button name="set_done" states="open" string="Make Payments" type="object" icon="gtk-execute"/>
166 <button name="set_to_draft" states="cancel" string="Set to draft" type="object" icon="gtk-convert"/>
172 <record id="view_payment_order_tree" model="ir.ui.view">
173 <field name="name">payment.order.tree</field>
174 <field name="model">payment.order</field>
175 <field name="type">tree</field>
176 <field eval="4" name="priority"/>
177 <field name="arch" type="xml">
178 <tree colors="blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open')" string="Payment order">
179 <field name="reference"/>
181 <field name="user_id"/>
182 <field name="date_created"/>
183 <field name="date_done"/>
184 <field name="total"/>
185 <field name="state"/>
186 <button name="cancel" states="draft,open" string="Cancel" icon="gtk-cancel"/>
187 <button name="open" states="draft" string="Confirm Payments" icon="gtk-apply"/>
188 <button name="set_done" states="open" string="Make Payments" type ="object" icon="gtk-execute"/>
193 <record id="view_payment_order_search" model="ir.ui.view">
194 <field name="name">payment.order.tree.search</field>
195 <field name="model">payment.order</field>
196 <field name="type">search</field>
197 <field name="arch" type="xml">
198 <search string="Search Payment Orders">
199 <group col="8" colspan="4">
200 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
201 <filter string="Confirmed" domain="[('state','=','open')]" icon="terp-camera_test"/>
202 <filter string="Done" domain="[('state','=','done')]" icon="terp-dialog-close"/>
203 <separator orientation="vertical"/>
204 <field name="reference"/>
205 <field name="mode" widget='selection'/>
206 <field name="date_done"/>
207 <field name="state"/>
210 <group expand="0" string="Group By...">
211 <filter string="Payment Mode" context="{'group_by': 'mode'}" icon="terp-dolar"/>
212 <filter string="State" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
218 <record id="action_payment_order_tree" model="ir.actions.act_window">
219 <field name="name">Payment Orders</field>
220 <field name="res_model">payment.order</field>
221 <field name="view_type">form</field>
222 <field name="view_mode">tree,form</field>
223 <field name="search_view_id" ref="view_payment_order_search"/>
226 <menuitem action="action_payment_order_tree" id="menu_action_payment_order_form" parent="menu_main_payment" sequence="3"/>
228 <record id="action_payment_order_tree_new" model="ir.actions.act_window">
229 <field name="name">New Payment Order</field>
230 <field name="res_model">payment.order</field>
231 <field name="view_type">form</field>
232 <field name="view_mode">form,tree</field>
235 <record id="view_payment_line_form" model="ir.ui.view">
236 <field name="name">Payment Line</field>
237 <field name="model">payment.line</field>
238 <field name="type">form</field>
239 <field name="arch" type="xml">
240 <form string="Payment Line">
242 <page string="Payment">
243 <field name="order_id" select="1"/>
244 <field name="move_line_id" on_change="onchange_move_line(move_line_id, False, currency, company_currency)" select="1" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)] "/>
245 <separator colspan="4" string="Transaction Information"/>
248 <field name="amount_currency" on_change="onchange_amount(amount_currency,currency,comapny_currency)"/>
249 <field name="currency" nolabel="1"/>
251 <field name="partner_id" on_change="onchange_partner(partner_id, False)" select="1"/>
252 <field domain="[('partner_id','=',partner_id)]" name="bank_id"/>
253 <separator colspan="2" string="Owner Account"/>
254 <separator colspan="2" string="Desitination Account"/>
255 <field colspan="2" name="info_owner" nolabel="1"/>
256 <field colspan="2" name="info_partner" nolabel="1"/>
258 <field colspan="4" name="communication"/>
259 <field colspan="4" name="communication2"/>
261 <field name="state"/>
263 <page string="Information">
264 <separator colspan="4" string="General Information"/>
266 <field name="amount" select="1"/>
267 <field name="company_currency" nolabel="1"/>
269 <separator colspan="4" string="Entry Information"/>
270 <field name="create_date"/>
271 <field name="ml_maturity_date"/>
272 <field name="ml_inv_ref"/>
278 <record id="view_payment_line_tree" model="ir.ui.view">
279 <field name="name">Payment Lines</field>
280 <field name="model">payment.line</field>
281 <field name="type">tree</field>
282 <field eval="4" name="priority"/>
283 <field name="arch" type="xml">
284 <tree string="Payment Line">
285 <field name="order_id"/>
286 <field name="ml_inv_ref" />
287 <field name="ml_maturity_date"/>
288 <field name="partner_id" select="1"/>
289 <field name="amount" sum="Amount Total"/>
290 <field name="amount_currency" sum="Currency Amount Total"/>
291 <field name="currency"/>
292 <field name="bank_id" domain="[('partner_id', '=', partner_id)]"/>
293 <field name="move_line_id" on_change="onchange_move_line(move_line_id,parent.mode)"/>
294 <field name="create_date"/>
299 <record id="action_payment_line_form" model="ir.actions.act_window">
300 <field name="name">Payment Line</field>
301 <field name="res_model">payment.line</field>
302 <field name="view_type">tree</field>
303 <field name="view_mode">form,tree</field>
306 <record id="view_bank_statement_form" model="ir.ui.view">
307 <field name="name">account.bank.statement.form.inherit</field>
308 <field name="model">account.bank.statement</field>
309 <field name="type">form</field>
310 <field name="inherit_id" ref="account.view_bank_statement_form"/>
311 <field name="arch" type="xml">
312 <field name="journal_id" position="after">
313 <button name="%(action_account_populate_statement_confirm)d" attrs="{'invisible':[('state','=','confirm')]}" string="Import payment lines" type="action" icon="gtk-execute"/>
318 <act_window domain="[('move_line_id.move_id.id', '=', move_id)]" id="act_account_invoice_2_payment_line" name="Payment Lines" res_model="payment.line" src_model="account.invoice"/>