commit
c6f51e12b1
|
@ -183,7 +183,7 @@ class AccountBankStatementLine(models.Model):
|
||||||
and self.partner_id.name_get()[0]
|
and self.partner_id.name_get()[0]
|
||||||
or False,
|
or False,
|
||||||
"date": fields.Date.to_string(self.date),
|
"date": fields.Date.to_string(self.date),
|
||||||
"name": self.name,
|
"name": self.payment_ref or self.name,
|
||||||
"amount": -total_amount,
|
"amount": -total_amount,
|
||||||
"credit": total_amount if total_amount > 0 else 0.0,
|
"credit": total_amount if total_amount > 0 else 0.0,
|
||||||
"debit": -total_amount if total_amount < 0 else 0.0,
|
"debit": -total_amount if total_amount < 0 else 0.0,
|
||||||
|
@ -396,7 +396,7 @@ class AccountBankStatementLine(models.Model):
|
||||||
"account_id": account.name_get()[0],
|
"account_id": account.name_get()[0],
|
||||||
"partner_id": False,
|
"partner_id": False,
|
||||||
"date": fields.Date.to_string(self.date),
|
"date": fields.Date.to_string(self.date),
|
||||||
"name": self.name,
|
"name": self.payment_ref or self.name,
|
||||||
"amount": -amount,
|
"amount": -amount,
|
||||||
"credit": amount if amount > 0 else 0.0,
|
"credit": amount if amount > 0 else 0.0,
|
||||||
"debit": -amount if amount < 0 else 0.0,
|
"debit": -amount if amount < 0 else 0.0,
|
||||||
|
|
Loading…
Reference in New Issue