573
575
vals.update({'currency_id': line.move_id and line.move_id.manual_currency_id and line.move_id.manual_currency_id.id or False})
574
576
currency_id = vals.get('currency_id') or line.currency_id.id
575
577
func_currency = line.account_id.company_id.currency_id.id
576
newvals.update(self._update_amount_bis(cr, uid, newvals, currency_id, func_currency, date, source_date, line.debit_currency, line.credit_currency))
579
newvals.update(self._update_amount_bis(cr, uid, newvals, currency_id, func_currency, date, source_date, line.debit_currency, line.credit_currency))
577
580
res = res and super(account_move_line_compute_currency, self).write(cr, uid, [line.id], newvals, context, check=check, update_check=update_check)
578
581
# Update addendum line for reconciliation entries if this line is reconciled