mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[MIG] account_bank_statement_import_move_line: Migration to v12
This commit is contained in:
committed by
Pedro M. Baeza
parent
a22ec2a2b6
commit
dc40c9cb1b
@@ -10,7 +10,6 @@ class AccountMoveLine(models.Model):
|
||||
@api.multi
|
||||
def _prepare_statement_line_vals(self, statement):
|
||||
self.ensure_one()
|
||||
assert statement, 'Missing statement'
|
||||
amount = 0.0
|
||||
if self.debit > 0:
|
||||
amount = self.debit
|
||||
@@ -25,7 +24,7 @@ class AccountMoveLine(models.Model):
|
||||
'date': self.date_maturity,
|
||||
'amount_currency': self.amount_currency,
|
||||
'currency_id': self.currency_id.id,
|
||||
}
|
||||
}
|
||||
return vals
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user