Mercurial > hgweb > health
changeset 5174:6ee539fee963
health: Fix bug #47740: Clear PUID when copying parties
| author | Sergi Almacellas Abellana <sergi@koolpi.com> |
|---|---|
| date | Fri, 01 Jul 2022 09:43:58 +0200 |
| parents | 2120f026ab26 |
| children | 3692b5c97824 |
| files | tryton/health/health.py |
| diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health/health.py +++ b/tryton/health/health.py @@ -726,6 +726,15 @@ return super(Party, cls).create(vlist) @classmethod + def copy(cls, parties, default=None): + if default is None: + default = {} + else: + default = default.copy() + default.setdefault('ref', None) + return super().copy(parties, default=default) + + @classmethod def __setup__(cls): super(Party, cls).__setup__() t = cls.__table__()
