[FIX]: FIX voucher company_id and state domain problem

bzr revid: atp@tinyerp.com-20121108022259-qs0uy4151ucggpz0
This commit is contained in:
Atul Patel (OpenERP) 2012-11-08 07:52:59 +05:30
parent 45f4b9d287
commit d833e25c2d
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@
<form string="Bill Payment" version="7.0">
<group col="6">
<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}"/>
<field name="state" invisible="1"/>
<field name="company_id" invisible="1"/>
<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)"/>
<field name="journal_id"
domain="[('type','in',['bank', 'cash'])]"