Nicolas Évrard pushed to branch branch/default at Tryton / Tryton


Commits:
97e145ca by Nicolas Évrard at 2023-01-02T22:00:47+01:00
Skip on_change_parent on already saved account

Closes #11871
- - - - -


1 changed file:

- modules/account/account.py


Changes:

=====================================
modules/account/account.py
=====================================
@@ -1186,6 +1186,8 @@
     def on_change_parent(self):
         if not self.parent:
             return
+        if self.id is not None and self.id >= 0:
+            return
         for field in self.__on_change_parent_fields:
             if (not getattr(self, field)
                     or field in {'reconcile', 'deferral',



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/97e145cabcda90e2d0f950040465b65203bd15d1

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/97e145cabcda90e2d0f950040465b65203bd15d1
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to