[FIX] Reconcilation problem corrected when foreign currency rate changes
lp bug: https://launchpad.net/bugs/491892 fixed bzr revid: jvo@tinyerp.com-20091222085908-o9olesuskdm8wuoy
This commit is contained in:
committed by
Jay (Open ERP)
parent
0674946f8c
commit
d1511f6fea
@@ -141,7 +141,7 @@ class account_bank_statement(osv.osv):
|
||||
'period_id': _get_period,
|
||||
}
|
||||
|
||||
def button_confirm(self, cr, uid, ids, context=None):
|
||||
def button_confirm(self, cr, uid, ids, context={}):
|
||||
done = []
|
||||
res_currency_obj = self.pool.get('res.currency')
|
||||
res_users_obj = self.pool.get('res.users')
|
||||
@@ -174,6 +174,7 @@ class account_bank_statement(osv.osv):
|
||||
# In line we get reconcile_id on bank.ste.rec.
|
||||
# in bank stat.rec we get line_new_ids on bank.stat.rec.line
|
||||
for move in st.line_ids:
|
||||
context.update({'date':move.date})
|
||||
move_id = account_move_obj.create(cr, uid, {
|
||||
'journal_id': st.journal_id.id,
|
||||
'period_id': st.period_id.id,
|
||||
|
||||
Reference in New Issue
Block a user