[FIX] account, account journal form view: can't set the field as hidden for certain groups as it's required in the object and not in the view, and GTK doesn't handle that correctly

bzr revid: qdp-launchpad@openerp.com-20111017141448-kujn5jv9tjgzefax
This commit is contained in:
Quentin (OpenERP) 2011-10-17 16:14:48 +02:00
parent 3790db3e40
commit 434e1817dc
2 changed files with 2 additions and 2 deletions

View File

@ -880,7 +880,7 @@ class account_invoice(osv.osv):
'account_id': acc_id,
'date_maturity': t[0],
'amount_currency': diff_currency_p \
and amount_currency or False,
and amount_currency or False,
'currency_id': diff_currency_p \
and inv.currency_id.id or False,
'ref': ref,

View File

@ -455,7 +455,7 @@
<!-- <field name="invoice_sequence_id"/>-->
<field name="group_invoice_lines"/>
</group>
<group colspan="2" col="2" groups="base.group_extended">
<group colspan="2" col="2"> <!-- can't set the field as hidden for certain groups as it's required in the object and not in the view, and GTK doesn't handle that correctly -->
<separator string="Sequence" colspan="4"/>
<field name="sequence_id" required="0"/>
</group>