2010-08-18 20:20:43 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<openerp >
<data >
2010-09-14 22:15:34 +00:00
<record id= "view_voucher_filter_customer_pay" model= "ir.ui.view" >
<field name= "name" > account.voucher.customer.pay.select</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2012-07-20 05:33:26 +00:00
<field name= "number" string= "Voucher" />
<field name= "date" />
2012-07-31 11:28:04 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','posted')]" help= "Posted Vouchers" />
2013-04-20 02:26:42 +00:00
<field name= "partner_id" string= "Customer" filter_domain= "[('partner_id','child_of',self)]" />
2013-10-04 10:52:18 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('bank','cash'))]" /> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
2012-07-20 05:33:26 +00:00
<field name= "period_id" />
2014-05-22 09:44:35 +00:00
<group expand= "0" string= "Group By" >
2010-10-26 13:02:35 +00:00
<filter string= "Customer" icon= "terp-personal" domain= "[]" context= "{'group_by':'partner_id'}" />
2010-10-25 11:53:01 +00:00
<filter string= "Journal" icon= "terp-folder-orange" domain= "[]" context= "{'group_by':'journal_id'}" />
<filter string= "Period" icon= "terp-go-month" domain= "[]" context= "{'group_by':'period_id','visible':True}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-10-25 11:53:01 +00:00
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
<record id= "view_voucher_filter_vendor_pay" model= "ir.ui.view" >
<field name= "name" > account.voucher.purchase.pay.select</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2012-07-20 05:33:26 +00:00
<field name= "number" string= "Voucher" />
<field name= "date" />
2012-07-31 11:28:04 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','posted')]" help= "Posted Vouchers" />
2013-04-20 02:26:42 +00:00
<field name= "partner_id" string= "Supplier" filter_domain= "[('partner_id','child_of',self)]" />
2013-10-04 10:52:18 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('bank','cash'))]" /> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
2012-07-20 05:33:26 +00:00
<field name= "period_id" />
2014-05-22 09:44:35 +00:00
<group expand= "0" string= "Group By" >
2010-10-26 13:02:35 +00:00
<filter string= "Supplier" icon= "terp-personal" domain= "[]" context= "{'group_by':'partner_id'}" />
2010-10-25 11:53:01 +00:00
<filter string= "Journal" icon= "terp-folder-orange" domain= "[]" context= "{'group_by':'journal_id'}" />
<filter string= "Period" icon= "terp-go-month" domain= "[]" context= "{'group_by':'period_id','visible':True}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-10-25 11:53:01 +00:00
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
2013-05-14 11:52:13 +00:00
<!-- TODO: merge the 3 voucher form views of this file into a single view -->
<!-- Low priority view... If we open a voucher from a m2o, for example. -->
2010-09-18 12:43:30 +00:00
<record model= "ir.ui.view" id= "view_low_priority_payment_form" >
<field name= "name" > account.voucher.payment.low.priority.form</field>
<field name= "model" > account.voucher</field>
<field name= "priority" > 1</field>
<field name= "arch" type= "xml" >
2014-06-12 07:09:59 +00:00
<form string= "Bill Payment" >
2012-06-05 17:54:11 +00:00
<group col= "6" >
2012-07-25 17:57:50 +00:00
<field name= "partner_id" required= "1" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string= "Supplier" context= "{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1, 'invoice_currency': currency_id}" />
2012-11-08 02:22:59 +00:00
<field name= "state" invisible= "1" />
<field name= "company_id" invisible= "1" />
2011-11-22 16:55:37 +00:00
<field name= "amount" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" />
2010-09-18 12:43:30 +00:00
<field name= "journal_id"
domain="[('type','in',['bank', 'cash'])]"
2012-06-09 14:13:14 +00:00
widget="selection"
2011-11-22 16:55:37 +00:00
on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
2010-09-18 12:43:30 +00:00
string="Payment Method"/>
2012-06-09 14:13:14 +00:00
<field name= "date" on_change= "onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)" />
<field name= "reference" string= "Payment Ref" />
2010-12-22 13:35:10 +00:00
<field name= "name" colspan= "2" />
2010-09-18 12:43:30 +00:00
<field name= "account_id"
widget="selection"
invisible="True"/>
<field name= "pre_line" invisible= "1" />
<field name= "type" invisible= "True" />
</group>
2012-06-05 17:54:11 +00:00
<notebook >
2010-09-18 12:43:30 +00:00
<page string= "Payment Information" >
2012-09-21 13:37:04 +00:00
<label for= "line_dr_ids" attrs= "{'invisible': [('type', '=', 'receipt')]}" />
2012-08-10 12:40:56 +00:00
<field name= "line_dr_ids" attrs= "{'invisible': [('type', '=', 'receipt')]}" context= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan= "4" nolabel= "1" height= "140" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Open Supplier Journal Entries" editable= "bottom" colors= "gray:amount==0" >
2011-09-27 13:07:30 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
2010-09-18 12:43:30 +00:00
on_change="onchange_move_line_id(move_line_id)"
2012-07-25 17:57:50 +00:00
domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"/>
2012-04-25 13:40:18 +00:00
<field name= "account_id" domain= "[('type','=','payable')]" />
2010-09-18 12:43:30 +00:00
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
2011-09-27 13:07:30 +00:00
<field name= "amount_original" readonly= "1" />
2011-11-30 13:30:08 +00:00
<field name= "amount_unreconciled" readonly= "1" />
<field name= "amount" sum= "Total Allocation" />
2010-09-18 12:43:30 +00:00
</tree>
</field>
2012-09-21 13:37:04 +00:00
<label for= "line_cr_ids" attrs= "{'invisible': [('type', '=', 'payment')]}" />
2012-08-10 12:40:56 +00:00
<field name= "line_cr_ids" attrs= "{'invisible': [('type', '=', 'payment')]}" context= "{'journal_id':journal_id, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Open Customer Journal Entries" editable= "bottom" colors= "gray:amount==0" >
2011-11-23 16:33:43 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
on_change="onchange_move_line_id(move_line_id)"
2012-07-25 17:57:50 +00:00
domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"/>
2012-04-25 13:40:18 +00:00
<field name= "account_id" domain= "[('type','=','payable')]" />
2011-11-23 16:33:43 +00:00
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
<field name= "amount_original" readonly= "1" />
2011-11-30 13:30:08 +00:00
<field name= "amount_unreconciled" readonly= "1" />
<field name= "amount" sum= "Total Allocation" />
2010-09-18 12:43:30 +00:00
</tree>
</field>
2012-06-05 17:54:11 +00:00
<group >
<group string= "Internal Notes" >
<field name= "narration" nolabel= "1" colspan= "2" />
</group>
<group string= "Other Information" col= "4" >
2012-08-28 06:25:39 +00:00
<field name= "currency_id" colspan= "4" groups= "base.group_multi_currency" />
2013-05-02 22:59:37 +00:00
<field name= "payment_rate" required= "1" colspan= "3" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" />
2012-08-29 06:10:48 +00:00
<field name= "payment_rate_currency_id" colspan= "1" nolabel= "1" on_change= "onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)" groups= "base.group_multi_currency" />
2012-06-05 17:54:11 +00:00
<field name= "paid_amount_in_company_currency" colspan= "4" invisible= "1" />
<field name= "number" colspan= "4" />
</group>
2010-09-18 12:43:30 +00:00
</group>
</page>
</notebook>
</form>
</field>
</record>
2010-09-14 22:15:34 +00:00
2013-05-14 11:52:13 +00:00
<!-- Supplier Payment -->
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_vendor_payment_form" >
<field name= "name" > account.voucher.payment.form</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
2014-06-12 07:09:59 +00:00
<form string= "Voucher Payment" >
2012-06-04 12:11:39 +00:00
<header >
2012-06-26 10:01:34 +00:00
<button name= "proforma_voucher" string= "Validate" states= "draft" invisible= "context.get('line_type', False)" class= "oe_highlight" />
2013-02-25 13:38:04 +00:00
<button name= "cancel_voucher" string= "Cancel Voucher" states= "draft,proforma" invisible= "context.get('line_type', False)" />
2012-05-22 09:14:45 +00:00
<button name= "cancel_voucher" string= "Unreconcile" type= "object" states= "posted" invisible= "context.get('line_type', False)" confirm= "Are you sure to unreconcile and cancel this record ?" />
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" invisible= "context.get('line_type', False)" />
2012-06-05 17:54:11 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,posted" statusbar_colors= '{"proforma":"blue"}' />
2012-06-04 12:11:39 +00:00
</header>
2012-07-16 22:17:06 +00:00
<sheet >
<field name= "account_id" invisible= "True" />
<field name= "pre_line" invisible= "1" />
<field name= "type" invisible= "True" />
<group >
<group >
<field name= "partner_id" required= "1" invisible= "context.get('line_type', False)" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context= "{'invoice_currency':currency_id, 'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" string= "Supplier" />
2012-10-10 11:31:47 +00:00
<field name= "currency_id" invisible= "1" />
<field name= "amount" invisible= "context.get('line_type', False)" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" class= "oe_inline" widget= 'monetary' options= '{"currency_field": "currency_id"}' />
2012-07-16 22:17:06 +00:00
<field name= "journal_id"
domain="[('type','in',['bank', 'cash'])]"
invisible="context.get('line_type', False)"
widget="selection"
on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
string="Payment Method"/>
</group>
<group >
<field name= "date" invisible= "context.get('line_type', False)" on_change= "onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)" />
2012-08-01 09:17:03 +00:00
<field name= "reference" invisible= "context.get('line_type', False)" string= "Payment Ref" placeholder= "e.g. 003/10" />
<field name= "name" colspan= "2" invisible= "context.get('line_type', False)" placeholder= "e.g. Invoice SAJ/0042" />
2012-07-16 22:17:06 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
</group>
2010-08-18 20:20:43 +00:00
</group>
2012-06-05 17:54:11 +00:00
<notebook >
2010-08-18 20:20:43 +00:00
<page string= "Payment Information" >
2012-09-21 11:41:03 +00:00
<label for= "line_dr_ids" />
2013-04-25 12:44:04 +00:00
<field name= "line_dr_ids" context= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Supplier Invoices and Outstanding transactions" editable= "bottom" colors= "gray:amount==0" >
2016-01-27 15:28:49 +00:00
<field name= "state" invisible= "1" />
2011-09-27 13:07:30 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
2010-08-26 19:09:33 +00:00
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
2016-01-27 15:28:49 +00:00
attrs="{'required': [('state', 'in', [False, 'draft'])]}"/>
2011-09-27 13:34:13 +00:00
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','payable')]" />
2010-08-26 19:09:33 +00:00
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
2011-09-27 13:07:30 +00:00
<field name= "amount_original" readonly= "1" />
2012-06-05 05:22:24 +00:00
<field name= "amount_unreconciled" readonly= "1" groups= "account.group_account_user" />
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups= "account.group_account_user" />
2011-11-30 13:30:08 +00:00
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" />
2010-08-26 19:09:33 +00:00
</tree>
</field>
2012-09-21 13:37:04 +00:00
<label for= "line_cr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" />
2013-04-25 12:44:04 +00:00
<field name= "line_cr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" context= "{'journal_id':journal_id, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Credits" editable= "bottom" colors= "gray:amount==0" >
2016-01-27 15:28:49 +00:00
<field name= "state" invisible= "1" />
2011-11-23 16:33:43 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
2016-01-27 15:28:49 +00:00
attrs="{'required': [('state', 'in', [False, 'draft'])]}"/>
2011-11-23 16:33:43 +00:00
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','payable')]" />
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
<field name= "amount_original" readonly= "1" />
2012-06-05 05:22:24 +00:00
<field name= "amount_unreconciled" readonly= "1" groups= "account.group_account_user" />
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups= "account.group_account_user" />
2011-11-30 13:30:08 +00:00
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
2012-06-05 17:54:11 +00:00
<group >
<group string= "Internal Notes" >
<field name= "narration" colspan= "2" nolabel= "1" />
2011-10-21 13:52:40 +00:00
</group>
2012-06-05 17:54:11 +00:00
<group >
2013-05-14 11:52:13 +00:00
<group col= "2" attrs= "{'invisible':[('is_multi_currency','=',False)]}" >
<separator string= "Currency Options" colspan= "2" />
2012-06-05 17:54:11 +00:00
<field name= "is_multi_currency" invisible= "1" />
2013-05-14 11:52:13 +00:00
<label for= "payment_rate" colspan= "1" />
<div >
<field name= "payment_rate" required= "1" class= "oe_inline" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" />
<field name= "payment_rate_currency_id" class= "oe_inline" on_change= "onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)" groups= "base.group_multi_currency" />
</div>
<field name= "currency_help_label" colspan= "2" nolabel= "1" class= "oe_grey" />
<field name= "paid_amount_in_company_currency" colspan= "2" invisible= "1" />
2012-06-05 17:54:11 +00:00
</group>
<group col= "2" >
<separator string= "Payment Options" colspan= "2" />
2012-10-10 11:31:47 +00:00
<field name= "writeoff_amount" widget= 'monetary' options= '{"currency_field": "currency_id"}' />
2012-06-05 17:54:11 +00:00
<field name= "payment_option" required= "1" />
<field name= "writeoff_acc_id"
attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
domain="[('type','=','other')]"/>
<field name= "comment"
attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
<field name= "analytic_id"
groups="analytic.group_analytic_accounting"/>
</group>
2010-11-24 06:56:40 +00:00
</group>
2010-08-18 20:20:43 +00:00
</group>
</page>
2012-04-25 13:40:18 +00:00
<page string= "Journal Items" attrs= "{'invisible': [('state','!=','posted')]}" >
2012-06-05 17:54:11 +00:00
<group col= "4" >
2010-08-18 20:20:43 +00:00
<field name= "period_id" />
<field name= "audit" />
2012-06-05 17:54:11 +00:00
<field name= "number" />
2010-08-18 20:20:43 +00:00
</group>
2012-06-05 17:54:11 +00:00
<field name= "move_ids" readonly= "1" >
2010-12-13 20:25:12 +00:00
<tree string= "Journal Items" >
<field name= "move_id" />
<field name= "ref" />
<field name= "date" />
<field name= "statement_id" />
<field name= "partner_id" />
<field name= "account_id" />
<field name= "name" />
<field name= "debit" />
<field name= "credit" />
<field name= "state" />
<field name= "reconcile_id" />
2012-09-10 20:14:08 +00:00
<field name= "amount_currency" groups= "base.group_multi_currency" />
2012-08-28 06:25:39 +00:00
<field name= "currency_id" groups= "base.group_multi_currency" />
2010-12-13 20:25:12 +00:00
</tree>
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
2012-04-27 05:00:27 +00:00
</sheet>
2012-07-13 09:53:41 +00:00
<div class= "oe_chatter" >
2012-08-15 22:30:38 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2012-10-26 09:58:21 +00:00
<field name= "message_ids" widget= "mail_thread" />
2012-07-13 09:53:41 +00:00
</div>
2010-08-18 20:20:43 +00:00
</form>
</field>
</record>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
<record id= "action_vendor_payment" model= "ir.actions.act_window" >
2012-12-19 07:05:53 +00:00
<field name= "name" > Supplier Payments</field>
2010-09-14 22:15:34 +00:00
<field name= "res_model" > account.voucher</field>
2010-08-18 20:20:43 +00:00
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
2010-09-14 22:15:34 +00:00
<field name= "context" > {'type':'payment'}</field>
<field name= "view_id" eval= "False" />
<field name= "search_view_id" ref= "view_voucher_filter_vendor_pay" />
<field name= "target" > current</field>
2012-08-04 14:35:56 +00:00
<field name= "help" type= "html" >
2012-08-04 13:56:31 +00:00
<p class= "oe_view_nocontent_create" >
2012-08-04 13:21:36 +00:00
Click to create a new supplier payment.
</p> <p >
2014-07-09 11:39:38 +00:00
Odoo helps you easily track payments you make and the remaining balances you need to pay your suppliers.
2012-08-04 13:21:36 +00:00
</p>
</field>
2010-09-14 22:15:34 +00:00
</record>
<record id= "action_vendor_payment_tree" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
<field name= "view_mode" > tree</field>
<field name= "act_window_id" ref= "action_vendor_payment" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_vendor_payment_form" model= "ir.actions.act_window.view" >
<field eval= "2" name= "sequence" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "view_vendor_payment_form" />
<field name= "act_window_id" ref= "action_vendor_payment" />
</record>
2010-09-01 07:18:02 +00:00
<menuitem action= "action_vendor_payment" icon= "STOCK_JUSTIFY_FILL" sequence= "12"
2010-08-18 20:20:43 +00:00
id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
2013-05-14 11:52:13 +00:00
<!-- Register Payment Form (old Pay Invoice wizard) -->
2012-09-27 17:03:23 +00:00
<record model= "ir.ui.view" id= "view_vendor_receipt_dialog_form" >
<field name= "name" > account.voucher.receipt.dialog.form</field>
<field name= "model" > account.voucher</field>
<field name= "priority" > 30</field>
<field name= "arch" type= "xml" >
2014-06-12 07:09:59 +00:00
<form string= "Payment" >
2012-09-27 17:03:23 +00:00
<group >
<group >
<field name= "state" invisible= "1" />
2012-12-21 09:58:44 +00:00
<field name= "partner_id" required= "1" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string= "Customer" context= "{'search_default_customer': 1}" />
2012-10-10 11:31:47 +00:00
<field name= "currency_id" invisible= "1" />
<field name= "amount" class= "oe_inline"
string="Paid Amount"
widget='monetary' options='{"currency_field": "currency_id"}'
invisible="context.get('line_type', False)"
on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
2012-09-27 17:03:23 +00:00
<field name= "journal_id"
domain="[('type','in',['bank', 'cash'])]"
invisible="context.get('line_type', False)"
widget="selection"
on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
string="Payment Method"/>
</group>
2013-04-23 15:24:39 +00:00
2012-09-27 17:03:23 +00:00
<group >
<field name= "date" invisible= "context.get('line_type', False)" on_change= "onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)" />
2013-02-13 18:05:08 +00:00
<field name= "period_id" />
2012-09-27 17:03:23 +00:00
<field name= "reference" invisible= "context.get('line_type', False)" string= "Payment Ref" placeholder= "e.g. 003/10" />
2013-02-13 18:05:08 +00:00
<field name= "name" invisible= "context.get('line_type', False)" placeholder= "e.g. Invoice SAJ/0042" />
2012-09-27 17:03:23 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
<field name= "account_id"
widget="selection"
invisible="True"/>
<field name= "pre_line" invisible= "1" />
<field name= "type" invisible= "True" />
</group>
</group>
2013-04-23 15:24:39 +00:00
<group >
<group >
<field name= "writeoff_amount" widget= "monetary" options= "{'currency_field': 'currency_id'}" />
2013-07-24 09:40:23 +00:00
<field name= "payment_option" required= "1" attrs= "{'invisible':[('writeoff_amount','=',0)]}" />
2013-04-23 15:24:39 +00:00
<field name= "writeoff_acc_id"
2014-06-10 10:26:46 +00:00
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff'), ('writeoff_amount','!=',0)]}"
2013-04-23 15:24:39 +00:00
domain="[('type','=','other')]"/>
<field name= "comment"
2013-07-24 09:40:23 +00:00
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)]}"/>
2013-04-23 15:24:39 +00:00
<field name= "analytic_id"
2013-07-24 09:40:23 +00:00
groups="analytic.group_analytic_accounting"
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)]}"/>
2013-04-23 15:24:39 +00:00
</group>
<group >
</group>
</group>
2012-09-27 17:03:23 +00:00
<notebook invisible= "1" >
<page string= "Payment Information" groups= "base.group_user" >
2012-10-10 11:31:47 +00:00
<label for= "line_cr_ids" />
2012-09-27 17:03:23 +00:00
<field name= "line_cr_ids" context= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
<tree string= "Invoices and outstanding transactions" editable= "bottom" colors= "gray:amount==0" >
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
required="1"
groups="account.group_account_user"/>
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','receivable')]" />
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
<field name= "amount_original" readonly= "1" />
<field name= "amount_unreconciled" readonly= "1" groups= "account.group_account_user" />
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups= "account.group_account_user" />
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" string= "Allocation" />
</tree>
</field>
<label for= "line_dr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" />
<field name= "line_dr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" context= "{'journal_id':journal_id, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
<tree string= "Credits" editable= "bottom" colors= "gray:amount==0" >
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
required="1"/>
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','receivable')]" />
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
<field name= "amount_original" readonly= "1" />
<field name= "amount_unreconciled" readonly= "1" />
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" />
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" string= "Allocation" />
</tree>
</field>
<group col= "3" >
<group >
<field name= "narration" colspan= "2" nolabel= "1" />
</group>
2013-04-25 12:52:44 +00:00
<group col= "4" attrs= "{'invisible':[('is_multi_currency','=',False)]}" >
2012-09-27 17:03:23 +00:00
<field name= "is_multi_currency" invisible= "1" />
2013-05-02 22:59:37 +00:00
<field name= "payment_rate" required= "1" colspan= "3" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" />
2012-09-27 17:03:23 +00:00
<field name= "payment_rate_currency_id" colspan= "1" nolabel= "1" on_change= "onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)" groups= "base.group_multi_currency" />
<field name= "paid_amount_in_company_currency" colspan= "4" invisible= "1" />
</group>
</group>
</page>
</notebook>
<footer >
2015-01-09 03:26:24 +00:00
<button name= "button_proforma_voucher" string= "Register Payment" class= "oe_highlight" type= "object" /> or
2012-09-27 17:03:23 +00:00
<button string= "Cancel" class= "oe_link" special= "cancel" />
</footer>
</form>
</field>
</record>
2013-05-14 11:52:13 +00:00
<!-- Customer Payment -->
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_vendor_receipt_form" >
2011-09-27 13:07:30 +00:00
<field name= "name" > account.voucher.receipt.form</field>
2010-08-18 20:20:43 +00:00
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
2014-06-12 07:09:59 +00:00
<form string= "Receipt" >
2012-11-02 09:38:57 +00:00
<header invisible= "context.get('line_type', False)" >
<button name= "proforma_voucher" string= "Validate" states= "draft" class= "oe_highlight" />
2013-02-25 13:38:04 +00:00
<button name= "cancel_voucher" string= "Cancel Receipt" states= "draft,proforma" />
2012-11-02 09:38:57 +00:00
<button name= "cancel_voucher" string= "Unreconcile" type= "object" states= "posted" confirm= "Are you sure to unreconcile and cancel this record ?" />
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" />
2012-06-05 17:54:11 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,posted" statusbar_colors= '{"proforma":"blue"}' />
2012-06-04 12:11:39 +00:00
</header>
2012-06-05 17:54:11 +00:00
<sheet >
2012-09-27 17:03:23 +00:00
<h1 attrs= "{'invisible': [('number','=',False)]}" > <field name= "number" /> </h1>
2012-11-02 09:38:57 +00:00
<group invisible= "context.get('line_type', False)" >
2012-07-14 23:44:29 +00:00
<group >
2012-11-02 09:38:57 +00:00
<field name= "partner_id" domain= "[('customer','=',True)]" required= "1" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string= "Customer" context= "{'search_default_customer': 1}" />
2012-10-10 11:31:47 +00:00
<field name= "currency_id" invisible= "1" />
<field name= "amount" class= "oe_inline"
string="Paid Amount"
widget="monetary" options="{'currency_field': 'currency_id'}"
on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
2012-07-14 23:44:29 +00:00
<field name= "journal_id"
domain="[('type','in',['bank', 'cash'])]"
widget="selection"
on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
string="Payment Method"/>
</group>
<group >
2012-11-02 09:38:57 +00:00
<field name= "date" on_change= "onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)" />
2015-05-11 13:45:51 +00:00
<field name= "period_id" />
2012-11-02 09:38:57 +00:00
<field name= "reference" string= "Payment Ref" placeholder= "e.g. 003/10" />
<field name= "name" colspan= "2" placeholder= "e.g. Invoice SAJ/0042" />
2014-11-05 22:55:50 +00:00
<field name= "company_id" widget= "selection" on_change= "onchange_company(partner_id, journal_id, currency_id, company_id)" groups= "base.group_multi_company" />
2012-06-18 08:51:55 +00:00
2012-07-14 23:44:29 +00:00
<field name= "account_id"
widget="selection"
invisible="True"/>
<field name= "pre_line" invisible= "1" />
<field name= "type" invisible= "True" />
</group>
2010-08-18 20:20:43 +00:00
</group>
2012-06-05 17:54:11 +00:00
<notebook >
2012-07-25 17:57:50 +00:00
<page string= "Payment Information" groups= "base.group_user" >
2012-11-02 09:38:57 +00:00
<label for= "line_cr_ids" invisible= "context.get('line_type', False)" />
2012-08-10 12:40:56 +00:00
<field name= "line_cr_ids" context= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Invoices and outstanding transactions" editable= "bottom" colors= "gray:amount==0" >
2011-09-27 13:07:30 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
2010-08-26 00:14:59 +00:00
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
2011-11-24 15:42:16 +00:00
required="1"
2012-05-18 10:10:32 +00:00
groups="account.group_account_user"/>
2011-09-27 13:34:13 +00:00
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','receivable')]" />
2010-08-26 00:14:59 +00:00
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
2011-09-27 13:07:30 +00:00
<field name= "amount_original" readonly= "1" />
2012-06-05 05:56:44 +00:00
<field name= "amount_unreconciled" readonly= "1" groups= "account.group_account_user" />
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups= "account.group_account_user" />
2011-12-30 10:17:49 +00:00
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" string= "Allocation" />
2010-08-25 16:42:19 +00:00
</tree>
</field>
2012-09-21 13:37:04 +00:00
<label for= "line_dr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" />
2012-08-10 12:40:56 +00:00
<field name= "line_dr_ids" attrs= "{'invisible': [('pre_line','=',False)]}" context= "{'journal_id':journal_id, 'partner_id':partner_id}" on_change= "onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, type, context)" >
2011-11-22 10:23:38 +00:00
<tree string= "Credits" editable= "bottom" colors= "gray:amount==0" >
2011-11-23 16:33:43 +00:00
<field name= "move_line_id" context= "{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
on_change="onchange_move_line_id(move_line_id)"
domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
2012-07-25 17:57:50 +00:00
required="1"/>
2011-11-23 16:33:43 +00:00
<field name= "account_id" groups= "base.group_no_one" domain= "[('type','=','receivable')]" />
<field name= "date_original" readonly= "1" />
<field name= "date_due" readonly= "1" />
<field name= "amount_original" readonly= "1" />
2011-11-30 13:30:08 +00:00
<field name= "amount_unreconciled" readonly= "1" />
2011-11-23 16:33:43 +00:00
<field name= "reconcile" on_change= "onchange_reconcile(reconcile, amount, amount_unreconciled, context)" />
2011-12-30 10:17:49 +00:00
<field name= "amount" sum= "Total Allocation" on_change= "onchange_amount(amount, amount_unreconciled, context)" string= "Allocation" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
2012-06-05 17:54:11 +00:00
<group col= "3" >
2012-07-14 23:44:29 +00:00
<group >
2012-06-05 17:54:11 +00:00
<field name= "narration" colspan= "2" nolabel= "1" />
</group>
2013-04-25 12:52:44 +00:00
<group col= "4" attrs= "{'invisible':[('is_multi_currency','=',False)]}" >
2011-12-14 09:12:07 +00:00
<field name= "is_multi_currency" invisible= "1" />
2013-05-14 11:52:13 +00:00
<label for= "payment_rate" colspan= "1" />
<div >
<field name= "payment_rate" required= "1" class= "oe_inline" on_change= "onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" />
<field name= "payment_rate_currency_id" class= "oe_inline" on_change= "onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)" groups= "base.group_multi_currency" />
</div>
<field name= "currency_help_label" colspan= "2" nolabel= "1" class= "oe_grey" />
2012-04-25 13:40:18 +00:00
<field name= "paid_amount_in_company_currency" colspan= "4" invisible= "1" />
2011-10-21 13:52:40 +00:00
</group>
2012-07-14 23:44:29 +00:00
<group >
2012-10-10 11:31:47 +00:00
<field name= "writeoff_amount" widget= "monetary" options= "{'currency_field': 'currency_id'}" />
2013-07-24 09:40:23 +00:00
<field name= "payment_option" required= "1" attrs= "{'invisible':[('writeoff_amount','=',0)]}" />
2010-11-24 06:56:40 +00:00
<field name= "writeoff_acc_id"
2013-07-24 09:40:23 +00:00
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff')]}"
2011-09-27 13:07:30 +00:00
domain="[('type','=','other')]"/>
2010-11-24 06:56:40 +00:00
<field name= "comment"
2013-07-24 09:40:23 +00:00
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)]}"/>
2011-10-21 13:52:40 +00:00
<field name= "analytic_id"
2013-07-24 09:40:23 +00:00
groups="analytic.group_analytic_accounting"
attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)]}"/>
2010-11-24 06:56:40 +00:00
</group>
2010-08-18 20:20:43 +00:00
</group>
</page>
2012-04-25 13:40:18 +00:00
<page string= "Journal Items" attrs= "{'invisible': [('state','!=','posted')]}" >
2012-06-05 17:54:11 +00:00
<group col= "4" >
2010-08-18 20:20:43 +00:00
<field name= "audit" />
</group>
2012-06-05 17:54:11 +00:00
<field name= "move_ids" readonly= "1" >
2012-07-25 17:57:50 +00:00
<tree string= "Journal Items" >
<field name= "move_id" />
<field name= "ref" />
<field name= "date" />
<field name= "statement_id" />
<field name= "partner_id" />
<field name= "account_id" />
<field name= "name" />
<field name= "debit" />
<field name= "credit" />
<field name= "state" />
<field name= "reconcile_id" />
<field name= "amount_currency" />
2012-08-28 06:25:39 +00:00
<field name= "currency_id" groups= "base.group_multi_currency" />
2012-07-25 17:57:50 +00:00
</tree>
2011-01-25 07:11:33 +00:00
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
2012-04-27 05:00:27 +00:00
</sheet>
2012-11-02 09:38:57 +00:00
<div class= "oe_chatter" invisible= "context.get('line_type', False)" >
2012-08-15 22:30:38 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2012-10-26 09:58:21 +00:00
<field name= "message_ids" widget= "mail_thread" />
2012-07-13 09:53:41 +00:00
</div>
2010-08-18 20:20:43 +00:00
</form>
</field>
</record>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
<record id= "action_vendor_receipt" model= "ir.actions.act_window" >
2012-12-19 07:05:53 +00:00
<field name= "name" > Customer Payments</field>
2010-09-14 22:15:34 +00:00
<field name= "res_model" > account.voucher</field>
2010-08-18 20:20:43 +00:00
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
2010-09-14 22:15:34 +00:00
<field name= "context" > {'type':'receipt'}</field>
<field name= "search_view_id" ref= "view_voucher_filter_customer_pay" />
<field name= "view_id" eval= "False" />
<field name= "target" > current</field>
2012-08-04 14:35:56 +00:00
<field name= "help" type= "html" >
2012-08-04 13:56:31 +00:00
<p class= "oe_view_nocontent_create" >
2012-08-04 13:21:36 +00:00
Click to register a new payment.
</p> <p >
Enter the customer and the payment method and then, either
2014-07-09 11:39:38 +00:00
create manually a payment record or Odoo will propose to you
2012-08-04 13:21:36 +00:00
automatically the reconciliation of this payment with the open
invoices or sales receipts.
</p>
2012-06-05 05:50:13 +00:00
</field>
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_vendor_receipt_tree" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
<field name= "view_mode" > tree</field>
<field name= "act_window_id" ref= "action_vendor_receipt" />
</record>
<record id= "action_vendor_receipt_form" model= "ir.actions.act_window.view" >
<field eval= "2" name= "sequence" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "view_vendor_receipt_form" />
<field name= "act_window_id" ref= "action_vendor_receipt" />
</record>
2010-09-01 07:18:02 +00:00
<menuitem action= "action_vendor_receipt" icon= "STOCK_JUSTIFY_FILL" sequence= "12"
2010-08-18 20:20:43 +00:00
id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>
2012-07-25 17:57:50 +00:00
2010-08-18 20:20:43 +00:00
</data>
</openerp>