Commit Graph

34 Commits (16.0)

Author SHA1 Message Date
mymage 782ef3313a Translated using Weblate (Italian)
Currently translated at 100.0% (39 of 39 strings)

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/it/
2025-02-21 17:48:35 +00:00
Weblate ade3d5745e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/
2025-02-21 11:23:04 +00:00
OCA-git-bot 9e65ad69ce [BOT] post-merge updates 2025-02-21 11:22:53 +00:00
oca-ci a2b8a40a8f [UPD] Update jsonifier.pot 2025-02-21 11:14:11 +00:00
Simone Orsi 2d5d36b976 jsonifier: adapt tests 2025-02-21 11:34:48 +01:00
Simone Orsi 134294b3e8 jsonifier: make pre-commit happy 2025-02-21 10:52:00 +01:00
Simone Orsi 10eac2b7fa jsonifier: fix get_json_parser caching
The resolver was returned as a full recordset,
hence its cursor could diverge from the original one
and get closed while the other was still active.
2025-02-21 10:35:12 +01:00
Simone Orsi 2e7ee2269b jsonifier: fix field validation
An invalid field must be skipped in any case if not in strict mode.
Error message has been downgraded to warning since is not really broken
till you use string mode.

Log tests reworked.
2025-02-21 10:34:55 +01:00
Simone Orsi f58c7447ca jsonifier: fix exception warning 2025-02-21 10:29:20 +01:00
Giovanni Francesco Capalbo aee47a5e41 [ADD] jsonifier: with_fieldname option
Orig commit msg:

[ADD] use jsonifier features to retund postprocessed values, containing
field string as well

Better Version, not using function features , leaves parser syntax
intact.

[FIX] Review fixes

[FIX] small comment and style fix
2025-02-21 10:27:12 +01:00
Simone Orsi 908a4c5956 jsonifier: allow json_key override by resolver
Quite handy to take full control of the final result.
2025-02-21 09:50:53 +01:00
Simone Orsi 945f113735 jsonifier: reduce complexity of _jsonify_record 2025-02-21 09:50:43 +01:00
OCA-git-bot 479d822d4f [BOT] post-merge updates 2024-02-02 17:02:45 +00:00
Laurent Mignon (ACSONE) 8d9f80f140 [FIX] jsonifier: Call callable for unknown field
If a field name into the parser definition doesn't exist into the model but is resolved by a callable, call the method. Prior to this change, it was o more possible to define computed json value for custome keys
2024-02-02 14:13:15 +01:00
mymage 6e807011fc Translated using Weblate (Italian)
Currently translated at 100.0% (39 of 39 strings)

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/it/
2024-01-09 13:35:18 +00:00
mymage ad023cfdce Added translation using Weblate (Italian) 2024-01-02 12:58:58 +00:00
Ivorra78 97be5cf17c Translated using Weblate (Spanish)
Currently translated at 100.0% (39 of 39 strings)

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/es/
2023-11-11 15:39:04 +00:00
Ivorra78 b5d05a93da Added translation using Weblate (Spanish) 2023-11-11 14:03:09 +00:00
OCA-git-bot 6c5a361562 [UPD] README.rst 2023-09-03 16:49:46 +00:00
Weblate bc6d0bb7e1 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/
2023-06-07 15:49:40 +00:00
oca-ci 7f8b97d355 [UPD] Update jsonifier.pot 2023-06-07 15:42:30 +00:00
Weblate 8c463ce96f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-jsonifier
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-jsonifier/
2023-02-27 12:11:05 +00:00
OCA-git-bot 4e6cb8242b [UPD] README.rst 2023-02-27 09:57:30 +00:00
oca-ci 00dd2a4c45 [UPD] Update jsonifier.pot 2023-02-27 09:55:02 +00:00
Sébastien BEAU 6281758a6e jsonifier: remove deprecated logic for getting the date in user tz 2023-02-27 10:16:05 +01:00
Sébastien BEAU db4d191c35 jsonifier: migration to v16 2023-02-27 10:09:28 +01:00
Sébastien BEAU a9449b2be9 [IMP] jsonifier: black, isort, prettier 2023-02-27 10:05:54 +01:00
OCA-git-bot 9a43afe037 jsonifier 14.0.1.0.1 2023-02-27 10:05:54 +01:00
Simone Orsi 4b4de6471e jsonifier: fix date handling
We should always keep UTC and let the consumer deal w/ it.
This change is backward compatible but allows to turn off
the old behavior w/ the ctx flag `jsonifier__date_user_tz=False`.
2023-02-27 10:05:54 +01:00
OCA-git-bot 58582895e2 [UPD] README.rst 2023-02-27 10:05:54 +01:00
oca-ci be3017e1ff [UPD] Update jsonifier.pot 2023-02-27 10:05:54 +01:00
Simone Orsi 47306c8143 Replace base_jsonify w/ jsonifier
Rationale:

1. the name reflects better what it does
   as this is not _just_ a base module

2. solves publication issue on odoo apps store
   due to an old module registered w/ the same name
   that even if un-published blocks publishing the module
   for all versions.
   This in turn, blocks the publication of ALL modules
   that depend on base_jsonify.
2023-02-27 10:05:54 +01:00
OCA-git-bot 95954250f0 [ADD] icon.png 2023-02-27 10:05:54 +01:00
Simone Orsi 8ad7fa6d09 Add jsonifier (skeleton) 2023-02-27 10:05:54 +01:00