details: https://code.tryton.org/tryton/commit/3715120393fa
branch: default
user: José Antonio Díaz Miralles <[email protected]>
date: Wed Mar 25 08:20:17 2026 +0100
description:
Remove the obsolete JSON dump and load methods from ModelData
Closes #14654
diffstat:
trytond/trytond/ir/model.py | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diffs (36 lines):
diff -r 0e770b7bf099 -r 3715120393fa trytond/trytond/ir/model.py
--- a/trytond/trytond/ir/model.py Thu Feb 26 17:52:01 2026 +0100
+++ b/trytond/trytond/ir/model.py Wed Mar 25 08:20:17 2026 +0100
@@ -1,7 +1,6 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import heapq
-import json
import logging
import re
from collections import defaultdict
@@ -20,7 +19,6 @@
ModelSQL, ModelView, Unique, Workflow, fields)
from trytond.model.exceptions import AccessError, ValidationError
from trytond.pool import Pool
-from trytond.protocols.jsonrpc import JSONDecoder, JSONEncoder
from trytond.pyson import Bool, Eval, PYSONDecoder
from trytond.report import Report
from trytond.rpc import RPC
@@ -1421,16 +1419,6 @@
return cls._get_id_cache.set(key, data.db_id)
- @classmethod
- def dump_values(cls, values):
- return json.dumps(
- sorted(values.items()), cls=JSONEncoder, separators=(',', ':'),
- sort_keys=True)
-
- @classmethod
- def load_values(cls, values):
- return dict(json.loads(values, object_hook=JSONDecoder()))
-
class Log(ResourceAccessMixin, ModelSQL, ModelView):
__name__ = 'ir.model.log'