Commit Graph

772 Commits (6c65643e01643e7a1a9c78f0f9153a3674c708ce)

Author SHA1 Message Date
OCA-git-bot 6c65643e01 [UPD] addons table in README.md 2023-03-02 14:25:13 +00:00
oca-ci 95fc5efad1 [UPD] Update attachment_unindex_content.pot 2023-03-02 14:22:53 +00:00
OCA-git-bot 3e3ebdc677 Merge PR #2563 into 16.0
Signed-off-by moylop260
2023-03-02 14:20:35 +00:00
Rodrigo Serrano b12c3e7723 [MIG] attachment_unindex_content: Migration to 16.0
- Manifest's "Version" updated to "16.0.1.0.0"
- Translation files updated to new version
2023-03-01 21:15:16 +00:00
Weblate dd8639f8ec Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-base_time_window
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_time_window/
2023-02-27 16:08:17 +00:00
OCA-git-bot 84af8f7c63 [ADD] setup.py 2023-02-27 15:35:25 +00:00
OCA-git-bot 478c0ef0b0 [UPD] README.rst 2023-02-27 15:35:24 +00:00
OCA-git-bot 73e1110aab [UPD] addons table in README.md 2023-02-27 15:35:21 +00:00
oca-ci dad74978d1 [UPD] Update base_time_window.pot 2023-02-27 15:29:40 +00:00
OCA-git-bot c08ec9158c Merge PR #2559 into 16.0
Signed-off-by lmignon
2023-02-27 15:26:49 +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 22ba4466a9 [ADD] setup.py 2023-02-27 09:57:31 +00:00
OCA-git-bot 4e6cb8242b [UPD] README.rst 2023-02-27 09:57:30 +00:00
OCA-git-bot f5bced9c80 [UPD] addons table in README.md 2023-02-27 09:57:28 +00:00
oca-ci 00dd2a4c45 [UPD] Update jsonifier.pot 2023-02-27 09:55:02 +00:00
OCA-git-bot 2dc7ffd12a Merge PR #2418 into 16.0
Signed-off-by lmignon
2023-02-27 09:52:48 +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
Dept. Técnico dcee04f7d2 Added translation using Weblate (Catalan) 2023-02-27 10:05:54 +01:00
OCA Transbot b809317a50 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-base_jsonify
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_jsonify/
2023-02-27 10:05:54 +01:00
OCA-git-bot 086fb2216f base_jsonify 14.0.1.5.0 2023-02-27 10:05:54 +01:00
oca-travis 7e419005bc [UPD] Update base_jsonify.pot 2023-02-27 10:05:54 +01:00
Florent Xicluna db3d3843fb [REF] base_jsonify: review code 2023-02-27 10:05:54 +01:00
Florent Xicluna cc49087441 [REF] base_jsonify: uppercase JSON 2023-02-27 10:05:54 +01:00
Florent Xicluna 0739697979 [REF] base_jsonify: rename module to ir_exports.py 2023-02-27 10:05:54 +01:00
OCA-git-bot 491875dddd base_jsonify 14.0.1.4.1 2023-02-27 10:05:54 +01:00
OCA-git-bot 94824a6fbe base_jsonify 14.0.1.4.0 2023-02-27 10:05:54 +01:00
OCA-git-bot f8ed289d40 [UPD] README.rst 2023-02-27 10:05:54 +01:00
Simone Orsi 6af336e000 base_jsonify: re-license to LGPL 2023-02-27 10:05:54 +01:00
Iván Todorovich 82fe37db00 [IMP] base_jsonify: tracking disable on tests
Co-authored-by: Simone Orsi <simahawk@users.noreply.github.com>
2023-02-27 10:05:54 +01:00
Ivàn Todorovich 74c17b6c2e [IMP] base_jsonify: Add _jsonify_m2m_to_ids and _jsonify_format_duration helpers 2023-02-27 10:05:54 +01:00
OCA-git-bot 1f03c5df92 base_jsonify 14.0.1.3.0 2023-02-27 10:05:54 +01:00
Simone Orsi 0ffc105bff base_jsonify: fail gracefully
It could happen that a module adds an ir.export.line for a new field
but when tests run the field is not loaded
if this module is not a dependency of the module running tests.

Furthermore, in general, it seems too strict to break the whole computation
if there's a field that is missing.
It seems more reasonable to log an error when this happen
so that technical action can be taken to fix it.
2023-02-27 10:05:54 +01:00
OCA-git-bot 90c2511706 base_jsonify 14.0.1.2.0 2023-02-27 10:05:54 +01:00
Laurent Mignon (ACSONE) 3d1e4abc0b [IMP] base_jsonify: Allow to export many2one and referene field as simple field
Before this change, the result of the export of a relational field was always a dict or a list of dict.

ex:

<record id="ir_exp_shopinvader_variant_lang" model="ir.exports.line">
  <field name="name">publication_language_id/name</field>
  <field name="alias">publication_language_id/name:lang</field>
  <field name="export_id" ref="shopinvader.ir_exp_shopinvader_variant" />
</record>

will output:
{
    ...
    "publication_language_id" : {
        "lang": "French"
    }
    ...
}

After this change it's now possible to define simple exporter for relational fields where the value into the result will be the display_name or a list of display_name of the related records.

ex:

<record id="ir_exp_shopinvader_variant_lang" model="ir.exports.line">
  <field name="name">publication_language_id</field>
  <field name="alias">publication_language_id:lang</field>
  <field name="export_id" ref="shopinvader.ir_exp_shopinvader_variant" />
</record>

will output:
{
    "lang": "French"
}

(Cherry-pick of 652c0167a after this commit was dropped by #1894's refactoring)
(+ test so that it cannot be forgotten again)
2023-02-27 10:05:54 +01:00
OCA-git-bot 4b4d6bae70 base_jsonify 14.0.1.1.0 2023-02-27 10:05:54 +01:00
Simone Orsi df5bd5808d base_jsonify: add handy method to get only ID from m2o 2023-02-27 10:05:54 +01:00
Simone Orsi 0127a7ef09 base_jsonify: fix _function_value -> bind to record 2023-02-27 10:05:54 +01:00
Simone Orsi 9635b0b32d base_jsonify: fix instance_method_name field def 2023-02-27 10:05:54 +01:00
OCA-git-bot 5e9bbbe48e [UPD] README.rst 2023-02-27 10:05:54 +01:00
oca-travis e4ded49ae4 [UPD] Update base_jsonify.pot 2023-02-27 10:05:54 +01:00
Chafique 5c6520adfa [MIG] base_jsonify: Migration to 14.0 2023-02-27 10:05:54 +01:00