Skip to content

Commit 47c621b

Browse files
committed
[FIX] account_banking_mandate: add mandate_id to grouping fields
Fixes bug OCA#1336
1 parent 5cb6f26 commit 47c621b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

account_banking_mandate/models/account_payment_line.py

+6
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ def draft2open_payment_line_check(self):
6464
if self.mandate_required and not self.mandate_id:
6565
raise UserError(_("Missing Mandate on payment line %s") % self.name)
6666
return res
67+
68+
@api.model
69+
def _get_payment_line_grouping_fields(self):
70+
res = super()._get_payment_line_grouping_fields()
71+
res.append("mandate_id")
72+
return res

0 commit comments

Comments
 (0)