[13.0][FIX] account_banking_mandate: fixes singleton error when posting some records with mandate

This commit is contained in:
Roger Escolà
2020-12-01 11:59:58 +01:00
committed by Reyes4711
parent c9164df64c
commit 0eef296b8d

View File

@@ -21,7 +21,8 @@ class AccountMove(models.Model):
)
def post(self):
self.line_ids.mandate_id = self.mandate_id
for record in self:
record.line_ids.write({"mandate_id": record.mandate_id})
return super(AccountMove, self).post()
@api.model