mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[13.0][FIX] account_banking_mandate: fixes singleton error when posting some records with mandate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user