2008-10-23 05:53:55 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2008-12-06 13:18:05 +00:00
<openerp >
2009-11-25 17:50:23 +00:00
<data >
<record model= "ir.ui.view" id= "view_voucher_tree" >
<field name= "name" > account.voucher.tree</field>
<field name= "model" > account.voucher</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-07-28 18:35:57 +00:00
<tree colors= "blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open','proforma','posted','recheck','audit')" string= "Voucher Entries" >
2010-05-20 19:35:09 +00:00
<field name= "date" />
<field name= "number" />
2010-07-28 21:08:27 +00:00
<field name= "reference" />
2009-11-25 17:50:23 +00:00
<field name= "name" />
<field name= "journal_id" />
2010-05-20 19:35:09 +00:00
<field name= "type" invisible= " not context.get('set_visible',True)" />
2009-11-25 17:50:23 +00:00
<field name= "account_id" />
2010-05-20 19:35:09 +00:00
<field name= "amount" sum= "Total Amount" />
2009-11-25 17:50:23 +00:00
<field name= "period_id" />
2010-05-20 19:35:09 +00:00
<field name= "state" />
2009-11-25 17:50:23 +00:00
</tree>
</field>
</record>
2010-01-09 08:46:31 +00:00
2009-11-25 17:50:23 +00:00
<record model= "ir.ui.view" id= "view_voucher_form" >
<field name= "name" > account.voucher.form</field>
<field name= "model" > account.voucher</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2010-05-26 19:30:21 +00:00
<form string= "Accounting Voucher" >
2009-11-25 17:50:23 +00:00
<group col= "6" colspan= "4" >
2010-05-20 19:35:09 +00:00
<field name= "name" colspan= "4" />
2010-05-27 19:55:40 +00:00
<field name= "number" />
2009-11-25 17:50:23 +00:00
<field name= "journal_id" select= "1" on_change= "onchange_journal(journal_id,type)" />
2010-04-16 09:16:25 +00:00
<field name= "account_id" on_change= "onchange_account(account_id)" />
<field name= "type" on_change= "onchange_journal(journal_id,type)" />
2009-11-25 17:50:23 +00:00
</group>
<notebook colspan= "4" >
2010-07-28 18:35:57 +00:00
<page string= "Voucher Entry" >
2010-07-14 05:51:50 +00:00
<field name= "payment_ids" colspan= "4" nolabel= "1" height= "200" >
2009-11-25 17:50:23 +00:00
<tree string= "Voucher Lines" editable= "top" >
2010-07-13 09:01:30 +00:00
<field name= "partner_id" on_change= "onchange_partner(partner_id,type,parent.type, parent.currency_id)" />
2009-11-25 17:50:23 +00:00
<field name= "account_id" />
<field name= "name" />
<field name= "type" />
<field name= "amount" />
2010-07-07 13:05:41 +00:00
<field name= "account_analytic_id" />
2009-11-25 17:50:23 +00:00
<field name= "ref" />
</tree>
</field>
2010-07-14 05:51:50 +00:00
<group col= "2" colspan= "3" >
<separator string= "Narration" colspan= "2" />
<field name= "narration" colspan= "2" nolabel= "1" />
</group>
<group col= "2" colspan= "1" >
<separator string= "Other Informtion" colspan= "2" />
<field name= "reference" select= "1" />
<field name= "date" select= "1" />
<field name= "currency_id" select= "1" />
</group>
2009-11-25 17:50:23 +00:00
</page>
2010-07-14 05:51:50 +00:00
<page string= "Accounting Entries" >
2009-11-25 17:50:23 +00:00
<field name= "company_id" select= "1" widget= "selection" groups= "base.group_multi_company" />
<field name= "period_id" />
<separator string= "General Entries" colspan= "4" />
<field name= "move_ids" colspan= "4" nolabel= "1" readonly= "1" />
</page>
</notebook>
2010-07-08 11:20:26 +00:00
<group col= "10" colspan= "4" >
2010-07-07 15:04:16 +00:00
<field name= "state" />
<button name= "open_voucher" string= "Pro-forma" states= "draft" icon= "terp-check" />
<button name= "proforma_voucher" string= "Create" states= "proforma" icon= "terp-document-new" />
2010-07-14 06:01:49 +00:00
<button name= "recheck_voucher" string= "Approve" states= "recheck" icon= "terp-check" />
2010-07-07 15:04:16 +00:00
<button name= "audit_complete" string= "Audit Pass" states= "posted" icon= "terp-check" />
<button name= "cancel_voucher" string= "Cancel" states= "proforma,recheck,posted" icon= "gtk-cancel" />
<button name= "cancel_to_draft" states= "cancel" string= "Set to Draft" icon= "terp-stock_effects-object-colorize" />
</group>
2009-11-25 17:50:23 +00:00
</form>
</field>
</record>
2010-06-07 09:04:11 +00:00
2010-06-29 06:29:06 +00:00
<record id= "view_voucher_filter" model= "ir.ui.view" >
2010-05-20 19:35:09 +00:00
<field name= "name" > account.voucher.select</field>
<field name= "model" > account.voucher</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
<group col= '8' colspan= '4' >
2010-06-07 09:04:11 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-check" string= "Proforma" domain= "[('state','=','proforma')]" help= "Proforma Vouchers" />
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','posted')]" help= "Posted Vouchers" />
2010-07-28 18:35:57 +00:00
<filter icon= "terp-stock_effects-object-colorize" string= "Reviewed" domain= "[('state','=','audit')]" groups= "base.group_extended" help= "To Review" />
2010-07-30 07:52:45 +00:00
<filter icon= "gtk-cancel" string= "Cancel" domain= "[('state','=','cancel')]" help= "Cancel Vouchers" groups= "base.group_extended" />
2010-05-20 19:35:09 +00:00
<separator orientation= "vertical" />
2010-07-28 18:35:57 +00:00
<field name= "reference" select= "1" />
2010-05-20 19:35:09 +00:00
<field name= "number" select= '1' />
2010-07-28 18:35:57 +00:00
<field name= "name" select= '1' />
<field name= "account_id" select= "1" />
2010-05-20 19:35:09 +00:00
<field name= "partner_id" select= '1' />
</group>
<newline />
2010-06-07 09:04:11 +00:00
<group expand= "0" string= "Group By..." colspan= "12" col= "10" >
<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'}" />
<filter string= "Type" icon= "terp-stock_symbol-selection" domain= "[]" context= "{'group_by':'type', 'set_visible':True}" />
<filter string= "States" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-05-20 19:35:09 +00:00
</group>
2010-05-27 19:55:40 +00:00
<newline />
2010-06-07 09:04:11 +00:00
<group expand= "0" string= "Extended options..." >
2010-07-28 21:08:27 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" />
<field name= "period_id" widget= "selection" context= "{'period_id': self}" groups= "base.group_extended" />
<separator orientation= "vertical" />
<field name= "narration" select= "1" />
<field name= "date" select= '1' />
2010-05-27 19:55:40 +00:00
</group>
2010-05-20 19:35:09 +00:00
</search>
</field>
</record>
2010-06-29 06:39:24 +00:00
<record id= "view_voucher_filter_new" model= "ir.ui.view" >
<field name= "name" > account.voucher.select</field>
<field name= "model" > account.voucher</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
<group col= '8' colspan= '4' >
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-check" string= "Proforma" domain= "[('state','=','proforma')]" help= "Proforma Vouchers" />
2010-07-28 18:35:57 +00:00
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','audit')]" help= "Posted Vouchers" />
<filter icon= "terp-stock_effects-object-colorize" string= "To Review" domain= "[('state','=','posted')]" groups= "base.group_extended" help= "To Review" />
2010-07-30 07:52:45 +00:00
<filter icon= "gtk-cancel" string= "Cancel" domain= "[('state','=','cancel')]" help= "Cancel Vouchers" groups= "base.group_extended" />
2010-06-29 06:39:24 +00:00
<separator orientation= "vertical" />
2010-07-28 18:35:57 +00:00
<field name= "reference" select= "1" />
2010-06-29 06:39:24 +00:00
<field name= "number" select= '1' />
2010-07-28 18:35:57 +00:00
<field name= "name" select= '1' />
<field name= "account_id" select= "1" />
2010-06-29 06:39:24 +00:00
<field name= "partner_id" select= '1' />
</group>
<newline />
2010-07-28 18:35:57 +00:00
<group col= '8' colspan= '4' >
<field name= "journal_id" widget= "selection" select= "1" />
<field name= "period_id" widget= "selection" select= "1" />
<separator orientation= "vertical" />
<field name= "narration" select= "1" />
<field name= "date" select= '1' />
</group>
<newline />
2010-06-29 06:39:24 +00:00
<group expand= "0" string= "Group By..." colspan= "12" col= "10" >
<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'}" />
<filter string= "Type" icon= "terp-stock_symbol-selection" domain= "[]" context= "{'group_by':'type', 'set_visible':True}" />
<filter string= "States" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
</group>
</search>
</field>
</record>
2010-06-07 09:04:11 +00:00
2010-07-25 18:05:49 +00:00
<record id= "account_cash_statement_graph" model= "ir.ui.view" >
<field name= "name" > account.voucher.graph</field>
<field name= "model" > account.voucher</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Voucher Statistics" type= "bar" >
<field name= "date" />
<field name= "amount" operator= "+" />
</graph>
</field>
</record>
2010-07-07 13:05:41 +00:00
<!-- Receipt Vouchers -->
2009-11-25 17:50:23 +00:00
<record model= "ir.actions.act_window" id= "action_receipt_vou_voucher_list" >
2010-07-07 06:21:07 +00:00
<field name= "name" > Receivable Vouchers</field>
2009-11-25 17:50:23 +00:00
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
2010-07-25 18:05:49 +00:00
<field name= "view_mode" > tree,form,graph</field>
2009-11-25 17:50:23 +00:00
<field name= "view_id" eval= "view_voucher_tree" />
2010-06-04 13:01:56 +00:00
<field name= "domain" > [('journal_id.type','=','sale')]</field>
2010-07-07 13:05:41 +00:00
<field name= "context" > {'type':'sale'}</field>
2010-06-29 06:39:24 +00:00
<field name= "search_view_id" ref= "view_voucher_filter_new" />
2009-11-25 17:50:23 +00:00
</record>
2010-05-26 19:30:21 +00:00
<menuitem id= "menu_action_receipt_vou_voucher_list"
2010-06-22 14:10:42 +00:00
action="action_receipt_vou_voucher_list" parent="account.menu_finance_receivables" sequence="12"/>
2010-06-08 06:22:27 +00:00
2010-06-04 13:01:56 +00:00
<!-- Purchase Vouchers -->
<record model= "ir.actions.act_window" id= "action_pay_vou_voucher_list" >
2010-07-07 06:21:07 +00:00
<field name= "name" > Payable Vouchers</field>
2010-06-04 13:01:56 +00:00
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
2010-07-25 18:05:49 +00:00
<field name= "view_mode" > tree,form,graph</field>
2010-06-04 13:01:56 +00:00
<field name= "view_id" eval= "view_voucher_tree" />
<field name= "domain" > [('journal_id.type','=','purchase')]</field>
2010-07-07 13:05:41 +00:00
<field name= "context" > {'type':'purchase'}</field>
2010-06-29 06:39:24 +00:00
<field name= "search_view_id" ref= "view_voucher_filter_new" />
2010-06-04 13:01:56 +00:00
</record>
<menuitem id= "menu_action_pay_vou_voucher_list"
2010-06-22 14:10:42 +00:00
action="action_pay_vou_voucher_list" parent="account.menu_finance_payables" sequence="12"/>
2010-01-09 08:46:31 +00:00
2010-06-23 19:44:06 +00:00
<!-- Journal Vouchers -->
<record model= "ir.actions.act_window" id= "action_voucher_list" >
<field name= "name" > Journal Vouchers</field>
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
2010-07-25 18:05:49 +00:00
<field name= "view_mode" > tree,form,graph</field>
2010-07-07 13:05:41 +00:00
<field name= "context" > {'type':'general'}</field>
2010-06-23 19:44:06 +00:00
<field name= "view_id" eval= "view_voucher_tree" />
2010-06-29 06:29:06 +00:00
<field name= "search_view_id" ref= "view_voucher_filter" />
2010-06-23 19:44:06 +00:00
</record>
<menuitem action= "action_voucher_list" id= "menu_encode_entries_by_voucher" parent= "account.menu_finance_entries" sequence= "6" />
2010-06-24 04:24:31 +00:00
2010-06-29 06:29:06 +00:00
<record id= "action_cheque_register" model= "ir.actions.act_window" >
<field name= "name" > Cheque Register</field>
<field name= "type" > ir.actions.act_window</field>
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-07-07 13:05:41 +00:00
<field name= "domain" > [('journal_id.type', '=', 'bank')]</field>
<field name= "context" > {'type':'bank'}</field>
2010-06-29 06:29:06 +00:00
<field name= "view_id" ref= "view_voucher_tree" />
2010-06-29 06:39:24 +00:00
<field name= "search_view_id" ref= "view_voucher_filter_new" />
2010-06-29 07:00:42 +00:00
</record>
2010-07-07 13:05:41 +00:00
2010-06-29 06:29:06 +00:00
<menuitem action= "action_cheque_register" id= "menu_action_cheque_register" parent= "account.menu_finance_bank_and_cash" />
2010-06-07 09:04:11 +00:00
2010-05-26 19:30:21 +00:00
<record model= "ir.ui.view" id= "view_account_journal_form_inherit" >
<field name= "name" > account.journal.form.inherit</field>
<field name= "model" > account.journal</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "account.view_account_journal_form" />
<field name= "arch" type= "xml" >
<field name= "allow_date" position= "after" >
<field name= "max_amount" select= "1" />
</field>
</field>
</record>
2010-06-07 09:04:11 +00:00
2010-05-26 19:30:21 +00:00
<act_window
2010-07-09 04:54:54 +00:00
domain="[('journal_id','=',active_id)]"
2010-05-26 19:30:21 +00:00
id="act_journal_voucher_open"
name="Voucher Entries"
context="{'journal_id': active_id, 'type':type}"
res_model="account.voucher"
src_model="account.journal"/>
2010-07-09 04:54:54 +00:00
<record model= "ir.actions.act_window" id= "action_review_voucher_list" >
<field name= "name" > Vouchers Entries</field>
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" eval= "view_voucher_tree" />
<field name= "domain" > [('state','=','posted')]</field>
<field name= "context" > {'state':'posted'}</field>
<field name= "search_view_id" ref= "view_voucher_filter_new" />
</record>
2010-06-07 09:04:11 +00:00
2010-08-02 08:58:15 +00:00
<!-- <menuitem -->
<!-- id="menu_action_review_voucher_list" -->
<!-- action="action_review_voucher_list" -->
<!-- parent="account.periodical_processing_journal_entries_validation" sequence="2"/> -->
<!-- -->
2009-11-25 17:50:23 +00:00
</data>
2009-05-14 07:06:09 +00:00
</openerp>