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-05-26 19:30:21 +00:00
|
|
|
<tree string="Accounting Vouchers">
|
2010-05-20 19:35:09 +00:00
|
|
|
<field name="date"/>
|
|
|
|
<field name="number"/>
|
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-05-26 19:30:21 +00:00
|
|
|
<page string="Journal Entries">
|
2010-05-26 18:17:02 +00:00
|
|
|
<field name="payment_ids" colspan="4" nolabel="1" height="260">
|
2009-11-25 17:50:23 +00:00
|
|
|
<tree string="Voucher Lines" editable="top">
|
|
|
|
<field name="account_analytic_id"/>
|
|
|
|
<field name="partner_id" on_change="onchange_partner(partner_id,type,parent.type)"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="type"/>
|
|
|
|
<field name="amount"/>
|
|
|
|
<field name="ref"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<separator string="Narration" colspan="4"/>
|
2010-05-26 18:00:17 +00:00
|
|
|
<field name="narration" colspan="4" nolabel="1" height="50"/>
|
2009-11-25 17:50:23 +00:00
|
|
|
<group col="6" colspan="6">
|
2010-06-23 09:40:09 +00:00
|
|
|
<group col="2" colspan="2">
|
|
|
|
<field name="state"/>
|
|
|
|
</group>
|
2010-06-23 10:48:23 +00:00
|
|
|
<group col="8" colspan="4">
|
2010-06-23 09:40:09 +00:00
|
|
|
<button name="open_voucher" string="Pro-forma" states="draft" icon="terp-check"/>
|
|
|
|
<button name="proforma_voucher" string="Create" states="proforma" icon="terp-document-new"/>
|
|
|
|
<button name="recheck_voucher" string="Validate" states="recheck" icon="terp-check"/>
|
2010-06-23 10:48:23 +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"/>
|
2010-06-23 09:40:09 +00:00
|
|
|
<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
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Other Info">
|
|
|
|
<field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
|
|
|
|
<field name="currency_id" select="1" />
|
|
|
|
<field name="period_id"/>
|
|
|
|
<field name="date" select="1"/>
|
|
|
|
<separator string="General Entries" colspan="4"/>
|
|
|
|
<field name="move_ids" colspan="4" nolabel="1" readonly="1"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</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"/>
|
|
|
|
<filter icon="terp-gtk-stop" string="Cancel" domain="[('state','=','cancel')]" help="Cancel Vouchers"/>
|
2010-05-20 19:35:09 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="date" select='1'/>
|
|
|
|
<field name="name" select='1'/>
|
|
|
|
<field name="number" select='1'/>
|
|
|
|
<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-06-29 06:39:24 +00:00
|
|
|
<field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" />
|
2010-05-27 19:55:40 +00:00
|
|
|
<field name="period_id" widget="selection" context="{'period_id': self}" groups="base.group_extended"/>
|
|
|
|
<field name="type" context="{'type': self}" />
|
|
|
|
</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"/>
|
|
|
|
<filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
|
|
|
|
<filter icon="terp-gtk-stop" string="Cancel" domain="[('state','=','cancel')]" help="Cancel Vouchers"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="date" select='1'/>
|
|
|
|
<field name="name" select='1'/>
|
|
|
|
<field name="number" select='1'/>
|
|
|
|
<field name="partner_id" select='1'/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<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-06-04 13:01:56 +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>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<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-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>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="view_id" eval="view_voucher_tree"/>
|
|
|
|
<field name="domain">[('journal_id.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>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<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>
|
|
|
|
<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 06:29:06 +00:00
|
|
|
<field name="domain">[('journal_id.type', '=', 'bank')]</field>
|
2010-06-29 07:00:42 +00:00
|
|
|
</record>
|
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
|
|
|
|
domain="[('journal_id', '=', active_id)]"
|
|
|
|
id="act_journal_voucher_open"
|
|
|
|
name="Voucher Entries"
|
|
|
|
context="{'journal_id': active_id, 'type':type}"
|
|
|
|
res_model="account.voucher"
|
|
|
|
src_model="account.journal"/>
|
2010-06-07 09:04:11 +00:00
|
|
|
|
2009-11-25 17:50:23 +00:00
|
|
|
</data>
|
2009-05-14 07:06:09 +00:00
|
|
|
</openerp>
|