[FIX] account: date on account.move.line

When an account.move.line(aml) is created for a reconciliation, the date
used in the aml must be the date of the bank.statement.line used to
create the aml.

opw:653335
This commit is contained in:
Goffin Simon
2015-11-02 09:27:39 +01:00
parent e3287faee6
commit f3e7679710
@@ -818,7 +818,7 @@ class AccountBankStatementLine(models.Model):
ctx = dict(self._context, date=self.date)
for aml_dict in to_create:
aml_dict['move_id'] = move.id
aml_dict['date'] = self.statement_id.date
aml_dict['date'] = self.date
aml_dict['partner_id'] = self.partner_id.id
aml_dict['journal_id'] = self.journal_id.id
aml_dict['company_id'] = self.company_id.id