mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
@@ -254,8 +254,8 @@ class AccountBankStatement(orm.Model):
|
|||||||
return False
|
return False
|
||||||
for line in statement.line_ids:
|
for line in statement.line_ids:
|
||||||
if (line.period_id and
|
if (line.period_id and
|
||||||
statement.journal_id.company_id.id
|
statement.journal_id.company_id.id !=
|
||||||
!= line.period_id.company_id.id):
|
line.period_id.company_id.id):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ class AccountBankStatement(orm.Model):
|
|||||||
st_line = st_line_obj.browse(cr, uid, st_line_id, context=context)
|
st_line = st_line_obj.browse(cr, uid, st_line_id, context=context)
|
||||||
st = st_line.statement_id
|
st = st_line.statement_id
|
||||||
context.update({'date': st_line.date})
|
context.update({'date': st_line.date})
|
||||||
acc_cur = (((st_line.amount <= 0)
|
acc_cur = (((st_line.amount <= 0) and
|
||||||
and st.journal_id.default_debit_account_id) or
|
st.journal_id.default_debit_account_id) or
|
||||||
st_line.account_id)
|
st_line.account_id)
|
||||||
context.update({
|
context.update({
|
||||||
'res.currency.compute.account': acc_cur,
|
'res.currency.compute.account': acc_cur,
|
||||||
|
|||||||
Reference in New Issue
Block a user