Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing from upstream OCA/server-tools (15.0) #1289

Merged
merged 97 commits into from
Sep 13, 2023
Merged

Commits on Mar 12, 2023

  1. add base_jsonify module

    sebastienbeau authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c21cbf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2fc2b31 View commit details
    Browse the repository at this point in the history
  3. base_jsonify: typo

    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    2632c7b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b52d45 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a48e610 View commit details
    Browse the repository at this point in the history
  6. base_jsonify: cleanups

    remove copyrights from init and update copyrights
    hparfr authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    b709cdb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0d4f654 View commit details
    Browse the repository at this point in the history
  8. base_jsonify: restore travis configuration (#112)

    * [ADD] restore travis configuration
    
    * [PEP] fix pep8
    
    * [REF] exclude  product_categ_available_pos of testing due to issue odoo/odoo#23749
    sebastienbeau authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    2eb037e View commit details
    Browse the repository at this point in the history
  9. base_jsonify: Use readme fragment mechanism

    Pierrick Brun authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    04bb7e0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bc605de View commit details
    Browse the repository at this point in the history
  11. base_jsonify: misc fixes on comments/docstrings

    Pierrick brun authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    a73303a View commit details
    Browse the repository at this point in the history
  12. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    209bd95 View commit details
    Browse the repository at this point in the history
  13. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    8d58c38 View commit details
    Browse the repository at this point in the history
  14. [12.0][MIG] base_jsonify: py3

    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c0729a0 View commit details
    Browse the repository at this point in the history
  15. [12.0][MIG] base_jsonify: cleanup

    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    98c57c2 View commit details
    Browse the repository at this point in the history
  16. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c132d9c View commit details
    Browse the repository at this point in the history
  17. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    8b45a44 View commit details
    Browse the repository at this point in the history
  18. [ADD] icon.png

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    f4c433e View commit details
    Browse the repository at this point in the history
  19. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    dcf9cc3 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9cedb16 View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (Chinese (Simplified))

    Currently translated at 100.0% (11 of 11 strings)
    
    Translation: server-tools-12.0/server-tools-12.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_jsonify/zh_CN/
    liweijie0812 authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    6cd1673 View commit details
    Browse the repository at this point in the history
  22. [FIX]base_jsonify: Preserve initial order on ir.export.line

    We can't change the order on ir.export.line since it's used to preserve the order speicifed by the user when creating a export filter into the UI
    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    0ce204d View commit details
    Browse the repository at this point in the history
  23. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c4b93ac View commit details
    Browse the repository at this point in the history
  24. base_jsonify 12.0.1.1.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    d66f087 View commit details
    Browse the repository at this point in the history
  25. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-12.0/server-tools-12.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    e96fd83 View commit details
    Browse the repository at this point in the history
  26. [IMP] base_jsonify: black, isort

    laurent.corron authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    4328a50 View commit details
    Browse the repository at this point in the history
  27. [MIG] base_jsonify: Migration to 13.0

    Laurent-Corron authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    fbb10b0 View commit details
    Browse the repository at this point in the history
  28. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    af85a8d View commit details
    Browse the repository at this point in the history
  29. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    81646f9 View commit details
    Browse the repository at this point in the history
  30. [FIX] base_jsonify: In odoo 12, Date and Datetime fields values are d…

    …atetime object
    
    Convert fields.Date and fields.Datetime values to string when serializing to json
    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    1fee37e View commit details
    Browse the repository at this point in the history
  31. base_jsonify 13.0.1.0.1

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    5e1a2a4 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3a2f424 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    f5c723a View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    846b712 View commit details
    Browse the repository at this point in the history
  35. base_jsonify 13.0.1.0.1

    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    32e8ba3 View commit details
    Browse the repository at this point in the history
  36. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-13.0/server-tools-13.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    9388884 View commit details
    Browse the repository at this point in the history
  37. pre-commit update

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    748ff3d View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    8fb0baf View commit details
    Browse the repository at this point in the history
  39. base_jsonify: support callable parser

    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    8f67df5 View commit details
    Browse the repository at this point in the history
  40. base_jsonify: tests use SavepointCase

    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    4cd337d View commit details
    Browse the repository at this point in the history
  41. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    f519d02 View commit details
    Browse the repository at this point in the history
  42. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    89a4ae8 View commit details
    Browse the repository at this point in the history
  43. base_jsonify 13.0.1.1.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c2f1fe5 View commit details
    Browse the repository at this point in the history
  44. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-13.0/server-tools-13.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    dffa078 View commit details
    Browse the repository at this point in the history
  45. base_jsonify: allow export line exclusion

    Sometimes you just want to turn off via configuration
    lines created by some other modules.
    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    ba247a8 View commit details
    Browse the repository at this point in the history
  46. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    a0e619c View commit details
    Browse the repository at this point in the history
  47. base_jsonify 13.0.1.2.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    5d2eb91 View commit details
    Browse the repository at this point in the history
  48. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-13.0/server-tools-13.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    56cf407 View commit details
    Browse the repository at this point in the history
  49. base_jsonify: return one record on demand

    If you use this module extensively - as I do -
    you've done this tons of time. For sure :)
    This little change simplifies your code base where needed.
    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    9458704 View commit details
    Browse the repository at this point in the history
  50. base_jsonify 13.0.1.3.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    201f08c View commit details
    Browse the repository at this point in the history
  51. [IMP] base_jsonify: Allow to export many2one and referene field as si…

    …mple 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"
    }
     Please enter the commit message for your changes. Lines starting
    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    781afcc View commit details
    Browse the repository at this point in the history
  52. base_jsonify 13.0.1.3.1

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    9ad4542 View commit details
    Browse the repository at this point in the history
  53. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-13.0/server-tools-13.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    1cd25c4 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    75bb687 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    906eddc View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    61538ef View commit details
    Browse the repository at this point in the history
  57. [IMP] base_jsonify: better help message in resolvers

    nans authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    6097448 View commit details
    Browse the repository at this point in the history
  58. [TEST] base_jsonify: test and document code

    nans authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    e2a0c57 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    40d38da View commit details
    Browse the repository at this point in the history
  60. [REF] base_jsonify: review changes

    nans authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    290bb2c View commit details
    Browse the repository at this point in the history
  61. [IMP] base_jsonify: cache json parser

    nans authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c9c03c5 View commit details
    Browse the repository at this point in the history
  62. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    e15b9ae View commit details
    Browse the repository at this point in the history
  63. base_jsonify 13.0.3.0.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    80c2721 View commit details
    Browse the repository at this point in the history
  64. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-tools-13.0/server-tools-13.0-base_jsonify
    Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_jsonify/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    eb0d9ca View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    4fb4ff4 View commit details
    Browse the repository at this point in the history
  66. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    5b9e51d View commit details
    Browse the repository at this point in the history
  67. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    157b3eb View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    c3b2d8d View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    b072607 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    d15473c View commit details
    Browse the repository at this point in the history
  71. base_jsonify 14.0.1.1.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    bc3b41e View commit details
    Browse the repository at this point in the history
  72. [IMP] base_jsonify: Allow to export many2one and referene field as si…

    …mple 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 652c016 after this commit was dropped by #1894's refactoring)
    (+ test so that it cannot be forgotten again)
    lmignon authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    adebf8a View commit details
    Browse the repository at this point in the history
  73. base_jsonify 14.0.1.2.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    d433104 View commit details
    Browse the repository at this point in the history
  74. 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.
    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    0a7b6ee View commit details
    Browse the repository at this point in the history
  75. base_jsonify 14.0.1.3.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c97ffa1 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    6a31a5f View commit details
    Browse the repository at this point in the history
  77. [IMP] base_jsonify: tracking disable on tests

    Co-authored-by: Simone Orsi <[email protected]>
    2 people authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    3269354 View commit details
    Browse the repository at this point in the history
  78. base_jsonify: re-license to LGPL

    simahawk authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    d204b56 View commit details
    Browse the repository at this point in the history
  79. [UPD] README.rst

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    a3ab3d5 View commit details
    Browse the repository at this point in the history
  80. base_jsonify 14.0.1.4.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    1f8878d View commit details
    Browse the repository at this point in the history
  81. base_jsonify 14.0.1.4.1

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    2b635bc View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    19d53c7 View commit details
    Browse the repository at this point in the history
  83. [REF] base_jsonify: uppercase JSON

    florentx authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    b519793 View commit details
    Browse the repository at this point in the history
  84. [REF] base_jsonify: review code

    florentx authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    8347339 View commit details
    Browse the repository at this point in the history
  85. [UPD] Update base_jsonify.pot

    oca-travis authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    609e4d3 View commit details
    Browse the repository at this point in the history
  86. base_jsonify 14.0.1.5.0

    OCA-git-bot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    5e363a8 View commit details
    Browse the repository at this point in the history
  87. 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/
    oca-transbot authored and oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    cb4e765 View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    8d8f341 View commit details
    Browse the repository at this point in the history
  89. [MIG] base_jsonify

    oerp-odoo committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    7cd1b6a View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    b6e3111 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    fb761ba View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Merge PR #2278 into 15.0

    Signed-off-by thomaspaulb
    OCA-git-bot committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    5fb32e3 View commit details
    Browse the repository at this point in the history
  2. [UPD] Update base_changeset.pot

    oca-ci committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    38ac129 View commit details
    Browse the repository at this point in the history
  3. [UPD] Update jsonifier.pot

    oca-ci committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    06154b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82591f5 View commit details
    Browse the repository at this point in the history
  5. [UPD] README.rst

    OCA-git-bot committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    c80373b View commit details
    Browse the repository at this point in the history
  6. [ADD] setup.py

    OCA-git-bot committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    05af78c View commit details
    Browse the repository at this point in the history