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_vendor" model= "ir.ui.view" >
<field name= "name" > account.voucher.purchase.select</field>
<field name= "model" > account.voucher</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2011-03-15 14:08:59 +00:00
<group >
2010-09-14 22:15:34 +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" />
<separator orientation= "vertical" />
2010-10-27 11:08:06 +00:00
<filter icon= "terp-gtk-jump-to-ltr" string= "To Review" domain= "[('state','=','posted')]" groups= "base.group_extended" help= "To Review" />
2010-09-14 22:15:34 +00:00
<separator orientation= "vertical" />
<field name= "date" />
<field name= "number" />
<field name= "partner_id" string= "Supplier" />
</group>
<newline />
2011-03-15 14:08:59 +00:00
<group >
2010-09-14 22:15:34 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('purchase','purchase_refund'))]" />
<field name= "period_id" groups= "base.group_extended" />
</group>
2010-10-25 11:53:01 +00:00
<newline />
2011-03-15 14:08:59 +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}" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
<record id= "view_voucher_filter_sale" model= "ir.ui.view" >
<field name= "name" > account.voucher.sale.select</field>
<field name= "model" > account.voucher</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2011-03-15 14:08:59 +00:00
<group >
2010-09-14 22:15:34 +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" />
<separator orientation= "vertical" />
2010-10-27 11:08:06 +00:00
<filter icon= "terp-gtk-jump-to-ltr" string= "To Review" domain= "[('state','=','posted')]" groups= "base.group_extended" help= "To Review" />
2010-09-14 22:15:34 +00:00
<separator orientation= "vertical" />
<field name= "date" />
<field name= "number" />
<field name= "partner_id" string= "Customer" />
</group>
<newline />
2011-03-15 14:08:59 +00:00
<group >
2010-09-14 22:15:34 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('sale','sale_refund'))]" />
<field name= "period_id" groups= "base.group_extended" />
</group>
2011-09-17 11:03:17 +00:00
< < < < < < < TREE
=======
2010-09-23 08:56:55 +00:00
<newline />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Extended Filters..." >
2010-09-23 08:56:55 +00:00
<field name= "reference" />
<field name= "name" />
<field name= "narration" />
<field name= "amount" />
</group>
2011-09-17 11:03:17 +00:00
>>>>>>> MERGE-SOURCE
2010-10-25 11:53:01 +00:00
<newline />
2011-03-15 14:08:59 +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}" />
<filter string= "State" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
2010-09-01 08:06:53 +00:00
<record id= "act_pay_voucher" model= "ir.actions.act_window" >
2010-10-09 16:01:43 +00:00
<field name= "name" > Customer Payment</field>
2010-09-01 16:18:05 +00:00
<field name= "res_model" > account.voucher</field>
2010-09-01 08:06:53 +00:00
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt'), ('partner_id','=',partner_id)]</field>
2010-09-14 22:47:00 +00:00
<field name= "context" > {'type':'receipt', 'partner_id': partner_id, 'default_reference':reference}</field>
2010-09-01 16:49:22 +00:00
<field name= "view_id" ref= "view_vendor_receipt_form" />
2010-12-06 11:50:27 +00:00
<field name= "target" > current</field>
2010-09-01 08:06:53 +00:00
</record>
2010-09-14 22:15:34 +00:00
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_sale_receipt_form" >
<field name= "name" > account.voucher.sale.form</field>
<field name= "model" > account.voucher</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Sales Receipt" >
<group col= "6" colspan= "4" >
2010-12-22 13:35:10 +00:00
<field name= "partner_id" required= "1" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date)" string= "Customer" />
2011-08-25 15:25:45 +00:00
<field name= "date" on_change= "onchange_date(partner_id, journal_id, amount, currency_id, type, date, context)" />
2010-09-14 09:03:06 +00:00
<field name= "journal_id" domain= "[('type','in',['sale','sale_refund'])]" widget= "selection" on_change= "onchange_journal(journal_id, line_cr_ids, tax_id, partner_id)" />
2010-08-18 20:20:43 +00:00
<field name= "number" />
2011-03-01 11:49:27 +00:00
<field name= "name" colspan= "2" />
<field name= "company_id" select= "1" widget= "selection" groups= "base.group_multi_company" />
2010-08-26 15:04:35 +00:00
<field name= "type" invisible= "True" />
2011-03-17 09:38:22 +00:00
<field name= "currency_id" />
2010-08-18 20:20:43 +00:00
</group>
<notebook colspan= "4" >
<page string= "Sales Information" >
2010-08-31 14:42:33 +00:00
<field name= "line_cr_ids" on_change= "onchange_price(line_cr_ids, tax_id, partner_id)" default_get= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan= "4" nolabel= "1" height= "180" >
2010-08-20 11:40:55 +00:00
<tree string= "Sales Lines" editable= "bottom" >
2010-08-26 15:04:35 +00:00
<field name= "account_id" domain= "[('user_type.report_type','=','income'),('type','!=','view')]" widget= "selection" />
2010-08-19 07:57:59 +00:00
<field name= "name" />
<field name= "amount" sum= "Total" />
2010-10-09 16:01:43 +00:00
<field name= "account_analytic_id" groups= "analytic.group_analytic_accounting" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
<group col= "2" colspan= "3" >
2010-08-26 15:04:35 +00:00
<separator string= "Internal Notes" colspan= "2" />
2010-08-18 20:20:43 +00:00
<field name= "narration" colspan= "2" nolabel= "1" />
</group>
<group col= "2" colspan= "1" >
<group col= "2" colspan= "1" >
<separator string= "Payment Options" colspan= "2" />
2010-08-26 00:14:59 +00:00
<field name= "pay_now" on_change= "onchange_payment(pay_now, journal_id, partner_id)" required= "1" />
2010-09-23 08:56:55 +00:00
<field name= "account_id"
2010-08-26 00:14:59 +00:00
attrs="{'invisible':[('pay_now','!=','pay_now')]}"
2010-09-11 06:51:08 +00:00
domain="[('type','=','liquidity')]"/>
2010-08-19 07:57:59 +00:00
<!-- should select income accounts only. Or use the journal for this ? -->
<field name= "reference"
attrs="{'invisible':[('pay_now','!=','pay_now')]}"
/>
2010-09-14 09:03:06 +00:00
<field name= "date_due" attrs= "{'invisible':[('pay_now','=','pay_now')]}" />
2010-08-18 20:20:43 +00:00
</group>
2010-08-30 13:23:02 +00:00
<group col= "4" colspan= "1" >
<separator string= "Total" colspan= "4" />
2010-12-07 05:17:37 +00:00
<field name= "tax_id" on_change= "onchange_price(line_cr_ids, tax_id, partner_id)" widget= "selection" domain= "[('type_tax_use','in',('sale','all')), ('parent_id', '=', False)]" /> <field name= "tax_amount" nolabel= "1" /> <button type= "object" icon= "terp-stock_format-scientific" name= "compute_tax" groups= "base.group_extended" string= "Compute Tax" attrs= "{'invisible': [('state','!=','draft')]}" />
2010-09-16 17:52:58 +00:00
<label string= "" colspan= "1" /> <field name= "amount" string= "Total" />
2010-08-18 20:20:43 +00:00
</group>
</group>
</page>
2010-08-30 13:23:02 +00:00
<page string= "Journal Items" groups= "base.group_extended" attrs= "{'invisible': [('state','!=','posted')]}" >
2010-08-18 20:20:43 +00:00
<group col= "6" colspan= "4" >
<field name= "period_id" />
<field name= "audit" />
</group>
2010-12-13 20:25:12 +00:00
<field name= "move_ids" colspan= "4" nolabel= "1" readonly= "1" >
<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" />
</tree>
2010-12-30 11:12:56 +00:00
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
2010-10-13 07:18:58 +00:00
<group col= "8" colspan= "4" >
2010-08-18 20:20:43 +00:00
<field name= "state" />
2010-08-26 00:14:59 +00:00
<button name= "cancel_voucher" string= "Cancel" states= "draft,proforma" icon= "gtk-cancel" />
2010-09-01 16:18:05 +00:00
<button name= "cancel_voucher" string= "Cancel" type= "object" states= "posted" icon= "terp-stock_effects-object-colorize" confirm= "Are you sure to confirm this record ?" />
2010-10-10 17:32:39 +00:00
<button name= "proforma_voucher" string= "Validate" states= "draft" icon= "gtk-go-forward" />
2010-10-22 09:42:11 +00:00
<group attrs= "{'invisible':[('state','!=','posted')]}" >
2010-12-30 11:12:56 +00:00
<button icon= "terp-dolar_ok!" name= "%(act_pay_voucher)d" context= "{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type= "action" string= "Pay" attrs= "{'invisible':[('pay_now','=','pay_now')]}" />
2010-10-22 09:42:11 +00:00
</group>
2010-08-18 20:20:43 +00:00
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" icon= "terp-stock_effects-object-colorize" />
</group>
</form>
</field>
</record>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
<!-- Sales Voucher -->
<record id= "action_sale_receipt" model= "ir.actions.act_window" >
2011-05-26 07:17:32 +00:00
<field name= "name" > Sales Receipt</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>
2010-09-14 09:03:06 +00:00
<field name= "domain" > [('journal_id.type','in',['sale','sale_refund']), ('type','=','sale')]</field>
2010-09-14 22:15:34 +00:00
<field name= "context" > {'type':'sale'}</field>
<field name= "view_id" eval= "False" />
<field name= "search_view_id" ref= "view_voucher_filter_sale" />
<field name= "target" > current</field>
2010-10-16 08:26:55 +00:00
<field name= "help" > When you sell products to a customer, you can give him a sales receipt or an invoice. When the sales receipt is confirmed, it creates journal items automatically and you can record the customer payment related to this sales receipt.</field>
2010-09-14 22:15:34 +00:00
</record>
<record id= "action_sale_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_sale_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_sale_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_sale_receipt_form" />
<field name= "act_window_id" ref= "action_sale_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
2010-08-18 20:20:43 +00:00
<menuitem id= "menu_action_sale_receipt" icon= "STOCK_JUSTIFY_FILL"
2010-09-14 22:15:34 +00:00
action="action_sale_receipt"
parent="account.menu_finance_receivables"
2010-10-09 16:01:43 +00:00
groups="base.group_extended"
2010-09-14 22:15:34 +00:00
sequence="10"/>
2010-08-18 20:20:43 +00:00
<!-- Purchase Vouchers -->
2010-09-01 16:49:22 +00:00
<record id= "act_pay_bills" model= "ir.actions.act_window" >
<field name= "name" > Bill Payment</field>
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment'), ('partner_id','=',partner_id)]</field>
2010-09-14 22:47:00 +00:00
<field name= "context" > {'type':'payment', 'partner_id': partner_id, 'default_reference':reference}</field>
2010-09-01 16:49:22 +00:00
<field name= "view_id" ref= "view_vendor_payment_form" />
2010-12-06 11:50:27 +00:00
<field name= "target" > current</field>
2010-09-01 16:49:22 +00:00
</record>
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_purchase_receipt_form" >
<field name= "name" > account.voucher.purchase.form</field>
<field name= "model" > account.voucher</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-10-09 16:01:43 +00:00
<form string= "Supplier Voucher" >
2010-08-18 20:20:43 +00:00
<group col= "6" colspan= "4" >
2010-12-22 13:35:10 +00:00
<field name= "partner_id" domain= "[('supplier','=',True)]" required= "1" string= "Supplier" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date)" />
2011-08-25 15:25:45 +00:00
<field name= "date" string= "Bill Date" select= "1" on_change= "onchange_date(partner_id, journal_id, amount, currency_id, type, date, context)" />
2010-09-14 09:03:06 +00:00
<field name= "journal_id" domain= "[('type','in',['purchase','purchase_refund'])]" widget= "selection" select= "1" on_change= "onchange_journal(journal_id, line_dr_ids, tax_id, partner_id)" />
2010-08-18 20:20:43 +00:00
<field name= "number" />
2010-12-22 13:35:10 +00:00
<field name= "name" colspan= "2" />
2010-09-14 11:19:20 +00:00
<field name= "reference" select= "1" />
2011-03-01 11:49:27 +00:00
<field name= "company_id" select= "1" widget= "selection" groups= "base.group_multi_company" />
2010-08-26 15:04:35 +00:00
<field name= "account_id" domain= "[('type','=','other')]" invisible= "True" />
<field name= "type" invisible= "True" />
2011-03-17 09:38:22 +00:00
<field name= "currency_id" />
2010-08-18 20:20:43 +00:00
</group>
<notebook colspan= "4" >
<page string= "Bill Information" >
2010-09-15 09:45:09 +00:00
<field name= "line_dr_ids" on_change= "onchange_price(line_dr_ids, tax_id, partner_id)" default_get= "{'journal_id':journal_id,'partner_id':partner_id}" colspan= "4" nolabel= "1" height= "180" >
2010-08-26 15:04:35 +00:00
<tree string= "Expense Lines" editable= "bottom" >
<field name= "account_id" widget= "selection" domain= "[('user_type.report_type','=','expense'), ('type','!=','view')]" />
<field name= "name" />
2010-08-18 20:20:43 +00:00
<field name= "amount" />
2010-10-09 16:01:43 +00:00
<field name= "account_analytic_id" groups= "analytic.group_analytic_accounting" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
<group col= "2" colspan= "3" >
2010-08-26 15:04:35 +00:00
<separator string= "Internal Notes" colspan= "2" />
2010-08-18 20:20:43 +00:00
<field name= "narration" colspan= "2" nolabel= "1" />
</group>
2010-08-31 14:42:33 +00:00
<group col= "2" colspan= "1" >
2010-08-26 15:04:35 +00:00
<group col= "2" colspan= "1" >
<separator string= "Payment Terms" colspan= "2" />
<field name= "date_due" />
</group>
2010-08-31 14:42:33 +00:00
<group col= "4" colspan= "1" >
<separator string= "Total" colspan= "4" />
2010-12-07 05:17:37 +00:00
<field name= "tax_id" on_change= "onchange_price(line_dr_ids, tax_id, partner_id)" widget= "selection" domain= "[('type_tax_use','in',('purchase','all')), ('parent_id', '=', False)]" /> <field name= "tax_amount" nolabel= "1" /> <button type= "object" icon= "terp-stock_format-scientific" name= "compute_tax" string= "Compute Tax" groups= "base.group_extended" attrs= "{'invisible': [('state','!=','draft')]}" />
2010-09-16 17:52:58 +00:00
<label string= "" colspan= "1" /> <field name= "amount" string= "Total" />
2010-08-31 14:42:33 +00:00
</group>
2010-08-18 20:20:43 +00:00
</group>
</page>
2010-08-30 13:23:02 +00:00
<page string= "Journal Items" groups= "base.group_extended" attrs= "{'invisible': [('state','!=','posted')]}" >
2010-08-18 20:20:43 +00:00
<group col= "6" colspan= "4" >
<field name= "period_id" />
<field name= "audit" />
</group>
2010-12-13 20:25:12 +00:00
<field name= "move_ids" colspan= "4" nolabel= "1" readonly= "1" >
<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" />
</tree>
2010-12-30 11:12:56 +00:00
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
<group col= "10" colspan= "4" >
<field name= "state" />
2010-08-26 00:14:59 +00:00
<button name= "cancel_voucher" string= "Cancel" states= "draft,proforma" icon= "gtk-cancel" />
2010-09-01 16:18:05 +00:00
<button name= "cancel_voucher" string= "Cancel" type= "object" states= "posted" icon= "terp-stock_effects-object-colorize" confirm= "Are you sure to confirm this record ?" />
2010-12-06 07:13:42 +00:00
<group attrs= "{'invisible':[('state','!=','posted')]}" >
2010-12-30 11:28:21 +00:00
<button icon= "terp-dolar_ok!" name= "%(act_pay_bills)d" context= "{'narration':narration, 'title':'Bill Payment', 'type':'payment', 'partner_id': partner_id, 'reference':reference}" type= "action" string= "Pay Bill" attrs= "{'invisible':[('pay_now','=','pay_now')]}" />
2010-12-06 07:13:42 +00:00
</group>
2010-08-18 20:20:43 +00:00
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" icon= "terp-stock_effects-object-colorize" />
2010-10-25 09:32:36 +00:00
<button name= "proforma_voucher" string= "Validate" states= "draft" icon= "gtk-go-forward" />
2010-08-18 20:20:43 +00:00
</group>
</form>
</field>
</record>
<record id= "action_purchase_receipt" model= "ir.actions.act_window" >
2011-05-26 07:17:32 +00:00
<field name= "name" > Purchase Receipt</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>
2010-09-14 09:03:06 +00:00
<field name= "domain" > [('journal_id.type','in',['purchase','purchase_refund']), ('type','=','purchase')]</field>
2010-09-14 22:15:34 +00:00
<field name= "context" > {'type':'purchase'}</field>
<field name= "view_id" eval= "False" />
<field name= "search_view_id" eval= "view_voucher_filter_vendor" />
<field name= "target" > current</field>
</record>
<record id= "action_purchase_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_purchase_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_purchase_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_purchase_receipt_form" />
<field name= "act_window_id" ref= "action_purchase_receipt" />
</record>
2010-09-23 08:56:55 +00:00
<menuitem id= "menu_action_purchase_receipt" icon= "STOCK_JUSTIFY_FILL"
2010-10-09 16:01:43 +00:00
action="action_purchase_receipt" parent="account.menu_finance_payables" sequence="10"
groups="base.group_extended"/>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
</data>
</openerp>