[MIG] account_bank_statement_import_move_line: Migration to v12

This commit is contained in:
Victor M.M. Torres
2019-08-20 18:26:20 +02:00
committed by Pedro M. Baeza
parent a22ec2a2b6
commit dc40c9cb1b
9 changed files with 92 additions and 46 deletions

View File

@@ -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