Fix statement when adding line and journal not yet selected.
bzr revid: ced-f4fa5f3e630e8e5fd3f3fa543a22c99bbc2f5a44
This commit is contained in:
parent
1a11af1a65
commit
b47576eb89
|
@ -487,6 +487,9 @@ class account_bank_statement_line(osv.osv):
|
|||
company_currency_id = res_users_obj.browse(cursor, user, user,
|
||||
context=context).company_id.currency_id.id
|
||||
|
||||
if not currency_id:
|
||||
currency_id = company_currency_id
|
||||
|
||||
part = self.pool.get('res.partner').browse(cursor, user, partner_id,
|
||||
context=context)
|
||||
if type == 'supplier':
|
||||
|
|
|
@ -341,7 +341,7 @@
|
|||
<field name="date"/>
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id, type)"/>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency)"/>
|
||||
<field name="account_id" domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]"/>
|
||||
<field name="amount"/>
|
||||
<field name="reconcile_id" context="{'partner_id':partner_id,'amount':amount,'account_id':account_id}"/>
|
||||
|
|
Loading…
Reference in New Issue