Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
5a952563 by Adrià Tarroja Caubet at 2023-07-05T16:32:56+02:00
Reuse cumulate per party from context as default value for general ledger line

Closes #12367
- - - - -


1 changed file:

- modules/account/account.py


Changes:

=====================================
modules/account/account.py
=====================================
@@ -2502,7 +2502,7 @@
 
     @classmethod
     def default_party_cumulate(cls):
-        return False
+        return Transaction().context.get('party_cumulate', False)
 
     @classmethod
     def get_context(cls, fields_names=None):



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/5a95256398af9136cab85c1ca4c4d84ae23b70ec

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


Reply via email to