Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
6ba6ad79 by José Antonio Díaz Miralles at 2023-02-03T20:08:26+01:00
Do not write creation values in ModelSingleton
- - - - -
1 changed file:
- trytond/trytond/model/modelsingleton.py
Changes:
=====================================
trytond/trytond/model/modelsingleton.py
=====================================
@@ -60,7 +60,9 @@
if not singleton:
with Transaction().set_context(_check_access=False):
singleton, = cls.create([values])
- actions = (records, values) + args
+ actions = (records, {}) + args
+ else:
+ actions = (records, values) + args
args = []
for values in actions[1:None:2]:
args.extend(([singleton], values))
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/6ba6ad79208e3aa6af62a480f977f30e2a1f64ae
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/6ba6ad79208e3aa6af62a480f977f30e2a1f64ae
You're receiving this email because of your account on foss.heptapod.net.