details: https://code.tryton.org/tryton/commit/56f3503538ab
branch: default
user: Cédric Krier <[email protected]>
date: Tue Dec 16 17:21:41 2025 +0100
description:
Dumps action value of cron notify if it is not yet a string
Closes #14431
diffstat:
trytond/trytond/ir/cron.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r a84e4bae7609 -r 56f3503538ab trytond/trytond/ir/cron.py
--- a/trytond/trytond/ir/cron.py Mon Dec 15 17:12:22 2025 +0100
+++ b/trytond/trytond/ir/cron.py Tue Dec 16 17:21:41 2025 +0100
@@ -2,6 +2,7 @@
# this repository contains the full copyright notices and license terms.
import datetime
import hashlib
+import json
import logging
import random
import time
@@ -322,6 +323,8 @@
notifications = []
if action_id is not None:
action_id = ModelData.get_id(action_id)
+ if action_value is not None and not isinstance(action_value, str):
+ action_value = json.dumps(action_value)
users = User.search([
('notifications', 'in', method),
])