changeset 06559019ac3c in modules/account_payment:default
details:
https://hg.tryton.org/modules/account_payment?cmd=changeset&node=06559019ac3c
description:
Add identical party from payments
issue11385
review380731002
diffstat:
CHANGELOG | 2 ++
party.py | 9 +++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diffs (33 lines):
diff -r 51e072e56608 -r 06559019ac3c CHANGELOG
--- a/CHANGELOG Tue Jun 21 10:27:43 2022 +0200
+++ b/CHANGELOG Sun Jul 17 19:07:38 2022 +0200
@@ -1,3 +1,5 @@
+* Add identical party from payments
+
Version 6.4.0 - 2022-05-02
* Bug fixes (see mercurial logs for details)
* Allow only lines with maturity date to be paid
diff -r 51e072e56608 -r 06559019ac3c party.py
--- a/party.py Tue Jun 21 10:27:43 2022 +0200
+++ b/party.py Sun Jul 17 19:07:38 2022 +0200
@@ -22,11 +22,20 @@
reception_direct_debits = fields.One2Many(
'party.party.reception_direct_debit', 'party', "Direct Debits",
help="Fill to debit automatically the customer.")
+ payment_identical_parties = fields.Function(
+ fields.Many2Many('party.party', None, None, "Identical Parties"),
+ 'get_payment_identical_parties')
@classmethod
def default_payment_direct_debit(cls, **pattern):
return False
+ def get_payment_identical_parties(self, name):
+ return [p.id for p in self._payment_identical_parties()]
+
+ def _payment_identical_parties(self):
+ return set()
+
@classmethod
def copy(cls, parties, default=None):
if default is None: