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="inherit_id" ref="account.view_move_line_form"/>
10 <field name="arch" type="xml">
11 <field name="reconcile_partial_id" position="after">
12 <field name="amount_to_pay"/>
17 <!-- <record model="ir.ui.view" id="view_move_line_tree_wiz">
18 <field name="name">account.move.line.tree</field>
19 <field name="model">account.move.line</field>
20 <field name="inherit_id" ref="account.view_move_line_tree"/>
21 <field name="arch" type="xml">
22 <field name="reconcile" position="after">
23 <field name="amount_to_pay"/>
28 <menuitem id="menu_main_payment" name="Payment" parent="account.menu_finance" sequence="7"/>
30 <record id="view_payment_mode_search" model="ir.ui.view">
31 <field name="name">payment.mode.search</field>
32 <field name="model">payment.mode</field>
33 <field name="arch" type="xml">
34 <search string="Payment Mode">
35 <field name="name" string="Payment Mode"/>
36 <field name="journal"/>
37 <field name="company_id" groups="base.group_multi_company"/>
38 <group expand="0" string="Group By...">
39 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal'}"/>
45 <record id="view_payment_mode_tree" model="ir.ui.view">
46 <field name="name">payment.mode.tree</field>
47 <field name="model">payment.mode</field>
48 <field name="arch" type="xml">
49 <tree string="Payment Mode">
51 <field name="journal"/>
52 <field name="company_id" groups="base.group_multi_company"/>
57 <record id="view_payment_mode_form" model="ir.ui.view">
58 <field name="name">payment.mode.form</field>
59 <field name="model">payment.mode</field>
60 <field name="arch" type="xml">
61 <form string="Payment Mode" version="7.0">
64 <field name="journal"/>
65 <field name="bank_id" domain="[('partner_id','=',partner_id)]" />
66 <field name="company_id" widget='selection' groups="base.group_multi_company" on_change="onchange_company_id(company_id)"/>
67 <field name="partner_id" invisible="1"/>
72 <record id="action_payment_mode_form" model="ir.actions.act_window">
73 <field name="name">Payment Mode</field>
74 <field name="res_model">payment.mode</field>
75 <field name="view_type">form</field>
76 <field name="view_mode">tree,form</field>
77 <field name="search_view_id" ref="view_payment_mode_search"/>
80 <menuitem action="action_payment_mode_form" id="menu_action_payment_mode_form" parent="account.menu_configuration_misc" groups="base.group_no_one"/>
82 <record id="view_payment_order_form" model="ir.ui.view">
83 <field name="name">payment.order.form</field>
84 <field name="model">payment.order</field>
85 <field name="arch" type="xml">
86 <form string="Payment Order" version="7.0">
88 <button name="open" states="draft" string="Confirm Payments" class="oe_highlight"/>
89 <button name="set_done" states="open" string="Make Payments" type="object" class="oe_highlight"/>
90 <button name="set_to_draft" states="cancel" string="Set to draft" type="object"/>
91 <button name="cancel" states="draft,open" string="Cancel Payments"/>
92 <field name="state" widget="statusbar" statusbar_visible="draft,open"/>
94 <sheet string="Payment order">
95 <div class="oe_button_box">
96 <button name="%(action_create_payment_order)d" string="Select Invoices to Pay"
97 type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/>
99 <div class="oe_title">
100 <label for="reference" class="oe_edit_only"/>
101 <h1><field name="reference"/></h1>
105 <field name="user_id"/>
109 <field name="date_prefered"/>
110 <field name="date_scheduled" attrs="{'readonly':[('date_prefered','!=','fixed')]}"/>
111 <field name="company_id" widget='selection' groups="base.group_multi_company"/>
114 <field name="line_ids" context="{'order_id': active_id or False}" >
115 <form string="Payment Line" version="7.0">
117 <page string="Payment">
119 <field name="move_line_id" on_change="onchange_move_line(move_line_id,parent.mode,parent.date_prefered,parent.date_scheduled,currency,company_currency)" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)] "/>
120 <separator colspan="4" string="Transaction Information"/>
122 <label for="amount_currency" groups="base.group_multi_currency"/>
123 <div groups="base.group_multi_currency">
124 <field name="amount_currency" on_change="onchange_amount(amount_currency,currency,company_currency)" class="oe_inline"/>
125 <field name="currency" nolabel="1" class="oe_inline"/>
127 <field name="partner_id" on_change="onchange_partner(partner_id,parent.mode)"/>
128 <field domain="[('partner_id','=',partner_id)]" name="bank_id"/>
129 <separator colspan="2" string="Owner Account"/>
130 <separator colspan="2" string="Destination Account"/>
131 <field colspan="2" name="info_owner" nolabel="1"/>
132 <field colspan="2" name="info_partner" nolabel="1"/>
133 <field colspan="4" name="communication"/>
134 <field colspan="4" name="communication2"/>
136 <field name="state"/>
137 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
140 <page string="Information">
141 <group col="4" string="General Information">
142 <label for="amount" groups="base.group_multi_currency"/>
143 <div groups="base.group_multi_currency">
144 <field name="amount" class="oe_inline"/>
145 <field name="company_currency" class="oe_inline"/>
147 <separator colspan="4" string="Entry Information"/>
148 <field name="create_date" readonly="1"/>
149 <field name="ml_maturity_date"/>
150 <field name="ml_inv_ref"/>
155 <tree string="Payment Line">
156 <field name="ml_inv_ref" />
157 <field name="partner_id"/>
158 <field name="communication"/>
159 <field name="bank_id" domain="[('partner_id', '=', partner_id)]"/>
160 <field name="ml_maturity_date"/>
162 <field name="amount_currency" string="Amount" groups="base.group_multi_currency"/>
163 <field name="currency" groups="base.group_multi_currency"/>
165 <field name="amount" sum="Total in Company Currency" invisible="1"/>
173 <record id="view_payment_order_tree" model="ir.ui.view">
174 <field name="name">payment.order.tree</field>
175 <field name="model">payment.order</field>
176 <field eval="4" name="priority"/>
177 <field name="arch" type="xml">
178 <tree colors="blue:state == 'draft';gray:state in ('cancel','done');black:state == 'open'" string="Payment order">
179 <field name="reference"/>
181 <field name="user_id"/>
182 <field name="company_id" groups="base.group_multi_company"/>
183 <field name="date_created"/>
184 <field name="date_done"/>
185 <field name="total"/>
186 <field name="state"/>
191 <record id="view_payment_order_search" model="ir.ui.view">
192 <field name="name">payment.order.tree.search</field>
193 <field name="model">payment.order</field>
194 <field name="arch" type="xml">
195 <search string="Search Payment Orders">
196 <field name="reference" string="Payment Order"/>
197 <field name="date_done"/>
198 <filter string="Draft" domain="[('state','=','draft')]" icon="terp-document-new"/>
199 <filter string="Confirmed" domain="[('state','=','open')]" icon="terp-camera_test"/>
200 <filter string="Done" domain="[('state','=','done')]" icon="terp-dialog-close"/>
202 <field name="state"/>
203 <group expand="0" string="Group By...">
204 <filter string="Payment Mode" context="{'group_by': 'mode'}" icon="terp-dolar"/>
205 <filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
211 <record id="action_payment_order_tree" model="ir.actions.act_window">
212 <field name="name">Payment Orders</field>
213 <field name="res_model">payment.order</field>
214 <field name="view_type">form</field>
215 <field name="view_mode">tree,form</field>
216 <field name="search_view_id" ref="view_payment_order_search"/>
217 <field name="help" type="html">
218 <p class="oe_view_nocontent_create">
219 Click to create a payment order.
221 A payment order is a payment request from your company to pay a
222 supplier invoice or a customer refund.
227 <menuitem action="action_payment_order_tree" id="menu_action_payment_order_form" parent="menu_main_payment" sequence="3"/>
229 <record id="action_payment_order_tree_new" model="ir.actions.act_window">
230 <field name="name">New Payment Order</field>
231 <field name="res_model">payment.order</field>
232 <field name="view_type">form</field>
233 <field name="view_mode">form,tree</field>
236 <record id="view_payment_line_form" model="ir.ui.view">
237 <field name="name">Payment Line</field>
238 <field name="model">payment.line</field>
239 <field name="arch" type="xml">
240 <form string="Payment Line" version="7.0">
242 <page string="Payment">
244 <field name="order_id"/>
245 <field name="move_line_id" on_change="onchange_move_line(move_line_id, False, currency, company_currency)" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)]"/>
246 <separator colspan="4" string="Transaction Information"/>
248 <label for="amount_currency" groups="base.group_multi_currency"/>
249 <div groups="base.group_multi_currency">
250 <field name="amount_currency" on_change="onchange_amount(amount_currency,currency,company_currency)" class="oe_inline"/>
251 <field name="currency" class="oe_inline"/>
253 <field name="partner_id" on_change="onchange_partner(partner_id, False)"/>
254 <field domain="[('partner_id','=',partner_id)]" name="bank_id"/>
255 <separator colspan="2" string="Owner Account"/>
256 <separator colspan="2" string="Desitination Account"/>
257 <field colspan="2" name="info_owner" nolabel="1"/>
258 <field colspan="2" name="info_partner" nolabel="1"/>
260 <field colspan="4" name="communication"/>
261 <field colspan="4" name="communication2"/>
263 <field name="state"/>
266 <page string="Information">
267 <group col="4" string="General Information">
270 <field name="amount" class="oe_inline"/>
271 <field name="company_currency" class="oe_inline"/>
274 <group col="4" string="Entry Information">
275 <field name="create_date"/>
276 <field name="ml_maturity_date"/>
277 <field name="ml_inv_ref"/>
284 <record id="view_payment_line_tree" model="ir.ui.view">
285 <field name="name">Payment Lines</field>
286 <field name="model">payment.line</field>
287 <field eval="4" name="priority"/>
288 <field name="arch" type="xml">
289 <tree string="Payment Line">
290 <field name="order_id"/>
291 <field name="ml_inv_ref" />
292 <field name="ml_maturity_date"/>
293 <field name="partner_id"/>
294 <field name="communication"/>
295 <field name="amount" sum="Amount Total"/>
296 <field name="amount_currency" sum="Currency Amount Total" groups="base.group_multi_currency"/>
297 <field name="currency" groups="base.group_multi_currency"/>
298 <field name="bank_id" domain="[('partner_id', '=', partner_id)]"/>
299 <field name="move_line_id" on_change="onchange_move_line(move_line_id,parent.mode)"/>
300 <field name="create_date"/>
305 <record id="action_payment_line_form" model="ir.actions.act_window">
306 <field name="name">Payment Line</field>
307 <field name="res_model">payment.line</field>
308 <field name="view_type">tree</field>
309 <field name="view_mode">form,tree</field>
312 <record id="view_bank_statement_form" model="ir.ui.view">
313 <field name="name">account.bank.statement.form.inherit</field>
314 <field name="model">account.bank.statement</field>
315 <field name="inherit_id" ref="account.view_bank_statement_form"/>
316 <field name="arch" type="xml">
317 <xpath expr="//div[@name='import_buttons']" position="inside">
318 <button name="%(action_account_populate_statement_confirm)d" attrs="{'invisible':[('state','=','confirm')]}" string="Import Payment Lines" type="action" icon="gtk-execute"/>