diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-09 16:03:01 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-09 16:03:01 +0530 |
| commit | acad9fa69c406eaa8b5fe9b261cc846bf04dfca3 (patch) | |
| tree | b8c327a824e97c8412e4fa19bec9c59596d307f9 | |
| parent | 52725e844f3e11d12fc7d67d9ab28901386b0001 (diff) | |
[FIX]: fix small probelm in the journal vouchers
bzr revid: mga@tinyerp.com-20100909103301-d605s006chtwwqct
| -rw-r--r-- | addons/account_voucher/voucher_view.xml | 5 | ||||
| -rw-r--r-- | addons/account_voucher/wizard/account_voucher_open.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml index a8b86f5877e..18817b8c6e3 100644 --- a/addons/account_voucher/voucher_view.xml +++ b/addons/account_voucher/voucher_view.xml @@ -13,6 +13,7 @@ <field name="partner_id"/> <field name="journal_id"/> <field name="period_id" groups="base.group_extended" invisible="context.get('visible', True)"/> + <field name="type" invisible="context.get('visible', True)"/> <field name="amount" sum="Total Amount"/> <field name="state"/> <button name="proforma_voucher" string="Post" states="draft" icon="terp-document-new"/> @@ -27,10 +28,10 @@ <field name="arch" type="xml"> <form string="Accounting Voucher"> <group col="6" colspan="4"> - <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id)"/> <field name="name" colspan="4"/> - <field name="type" on_change="onchange_partner_id(partner_id, journal_id)"/> <field name="reference" select="1"/> + <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id)"/> + <field name="type" on_change="onchange_partner_id(partner_id, journal_id)"/> <field name="journal_id" widget="selection" select="1" on_change="onchange_partner_id(partner_id, journal_id)"/> <field name="account_id" widget="selection" invisible="True"/> </group> diff --git a/addons/account_voucher/wizard/account_voucher_open.py b/addons/account_voucher/wizard/account_voucher_open.py index 5ba55bf9856..88a52c3145c 100644 --- a/addons/account_voucher/wizard/account_voucher_open.py +++ b/addons/account_voucher/wizard/account_voucher_open.py @@ -136,7 +136,7 @@ class account_voucher_open(osv.osv_memory): 'view_mode': 'tree,graph,form', 'res_model': 'account.voucher', 'view_id': False, - 'context': "{'journal_id': %d, 'search_default_journal_id':%d, 'search_default_period_id':%d, 'partner_id':%s}" % (journal_id, journal_id, period_id, context.get('partner_id',False)), + 'context': "{'search_default_journal_id':%d, 'search_default_period_id':%d, 'partner_id':%s}" % (journal_id, period_id, context.get('partner_id',False)), 'type': 'ir.actions.act_window', 'search_view_id': res_id } |
