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

[17.0][MIG] base_export_manager: Migration to 17.0 #929

Open
wants to merge 46 commits into
base: 17.0
Choose a base branch
from

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    6cde7e8 View commit details
    Browse the repository at this point in the history
  2. Missing rename

    hhgabelgaard authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d9d8d16 View commit details
    Browse the repository at this point in the history
  3. [IMP] base_export_manager: Several things:

    * Improve UX for base_export_manager.
    
      - Improve user instructions in README.
      - Require some required fields.
      - Allow to select models from a list.
      - Allow to select up to 3 fields from dynamic lists.
      - Improve translations.
      - More tests.
      - Translate column labels.
    
      Some methods have been renamed, so version tag is raised to 8.0.2.0.0.
    
    * Make inverse method be called at view time.
    * Hardcode constraints in the `create` method instead of using normal ones.
    
      Depending on the context where the record is created, it gets `resource` or `model_id`. The problem is that Odoo checks constrains before inverses, so constrains would fail always.
    
      Test added to ensure future versions contemplate all use cases.
    
    * Allow to reorder fields.
    yajo authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f914728 View commit details
    Browse the repository at this point in the history
  4. [MIG] base_export_manager: Upgrade to v9

    * Upgrade base_export_manager to v9
    * Rename JS to base_export_manager
    lasley authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    6f93bc5 View commit details
    Browse the repository at this point in the history
  5. [REF] base_export_manager: Fix model domain

    * Change osv_memory to transient for model_id domain
    lasley authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    dcff683 View commit details
    Browse the repository at this point in the history
  6. [IMP] Add export permission

    Sandip Mangukiya authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    759de18 View commit details
    Browse the repository at this point in the history
  7. IMP: support v7,v8 API and remove sql with ORM methods (OCA#1)

    smangukiya authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7b165fa View commit details
    Browse the repository at this point in the history
  8. [FIX+IMP] PEP8 + conflicts + Combined methods

    Maxime Chambreuil authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7221b98 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f1f5dc4 View commit details
    Browse the repository at this point in the history
  10. [IMP] base_export_manager: Several things (II):

    * Improve UX for base_export_manager.
    
      - Improve user instructions in README.
      - Require some required fields.
      - Allow to select models from a list.
      - Allow to select up to 3 fields from dynamic lists.
      - Improve translations.
      - More tests.
      - Translate column labels.
    
      Some methods have been renamed, so version tag is raised to 8.0.2.0.0.
    
    * Hardcode constraints in the `create` method instead of using normal ones.
    
      Depending on the context where the record is created, it gets `resource` or `model_id`. The problem is that Odoo checks constrains before inverses, so constrains would fail always.
    
      Test added to ensure future versions contemplate all use cases.
    
    * Allow to reorder fields.
    yajo authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d7f509c View commit details
    Browse the repository at this point in the history
  11. base_export_manager: Upgrade to v9 * Upgrade base_export_manager to v…

    …9 * Rename JS to base_export_manager
    lasley authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    03286e7 View commit details
    Browse the repository at this point in the history
  12. Add export permission

    Sandip Mangukiya authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    71448ab View commit details
    Browse the repository at this point in the history
  13. [8.0][FIX][base_export_manager] Fix "Expected singleton" bug. (OCA#521)

    [FIX][base_export_manager] Fix "Expected singleton" bug.
    
    If you had a field that got translated in more than 1 addon, you'd possibly getto this error:
    
          File "/opt/odoo/0079_ahk_openerp/oca/base_export_manager/models/ir_exports_line.py", line 105, in _compute_label
            field.name)),
          File "/opt/odoo/common/openerp/v8/openerp/fields.py", line 825, in __get__
            record.ensure_one()
          File "/opt/odoo/common/openerp/v8/openerp/models.py", line 5355, in ensure_one
            raise except_orm("ValueError", "Expected singleton: %s" % self)
        except_orm: ('ValueError', 'Expected singleton: ir.translation(4899, 703976)')
    
    With this patch, now we let Odoo return the translated string by using its
    standard method to do so, so we have to care for less.
    
    * Move installation outside a data file.
    
    This makes the whole installation to be able to roll back if something goes
    wrong, instead of entering an error loop.
    
    * Include envorionment in its manager.
    
    * Add 4th field
    
    * Move to api.multi, refactoring some stuff.
    
    - Add some comments in complex parts.
    - Rename `onchange_name` to `_onchange_name` (guidelines).
    - Make `_compute_name`'s try block shorter and easier to understand.
    
    * Allow R/W of name directly in model.
    
    * Update tests to cover new behaviors.
    yajo authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a7bb3bf View commit details
    Browse the repository at this point in the history
  14. [MIG]Migrated base_export_manager module.

    serpentcs authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    b9e80f4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    b035da4 View commit details
    Browse the repository at this point in the history
  16. [MIG] base_export_manager: Migrate to v11

    - Remove all possible translation commits
    - Aesthetical changes
    - Bump version
    - Some new standards, such as split readme
    
    Basically, nothing.
    yajo authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    625d37c View commit details
    Browse the repository at this point in the history
  17. Translated using Weblate (Danish)

    Currently translated at 80.0% (20 of 25 strings)
    
    Translation: server-ux-11.0/server-ux-11.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-11-0/server-ux-11-0-base_export_manager/da/
    hhgabelgaard authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    c0fb153 View commit details
    Browse the repository at this point in the history
  18. [MIG] base_export_manager: Migration to 12.0

    Olivier Jossen authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    56d1cc7 View commit details
    Browse the repository at this point in the history
  19. Translated using Weblate (Portuguese)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-12.0/server-ux-12.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-base_export_manager/pt/
    pedrocs-exo authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a29bbc9 View commit details
    Browse the repository at this point in the history
  20. Translated using Weblate (Chinese (Simplified))

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-12.0/server-ux-12.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-base_export_manager/zh_CN/
    liweijie0812 authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    6d29b9e View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (Croatian)

    Currently translated at 90.3% (28 of 31 strings)
    
    Translation: server-ux-12.0/server-ux-12.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-base_export_manager/hr/
    badbole authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    407027c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    16a53d3 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    313d155 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    85f7a85 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    2636c40 View commit details
    Browse the repository at this point in the history
  26. Translated using Weblate (Spanish)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-14.0/server-ux-14.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-base_export_manager/es/
    anasuarez1 authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    0ddd310 View commit details
    Browse the repository at this point in the history
  27. [FIX] base_export_manager: Don't return on invalid field, but break

    If not, we are not assigning the label value for the record and we get
    a missing cache value error.
    pedrobaeza authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    df74458 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    de87be8 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0263ae5 View commit details
    Browse the repository at this point in the history
  30. [FIX] base_export_manager: Remove default because it is redundant

    WARNING odoo.fields: Redundant default on ir.exports.line.model1_id
    victoralmau authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e7621d0 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    7be720f View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    ccd921c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    b289c4c View commit details
    Browse the repository at this point in the history
  34. [FIX] base_export_manager: Avoid access error when using export profile

    Steps to reproduce:
    
    - Create an export profile in any model.
    - Login with a user without setting permissions.
    - Go to export popup on that model.
    - Try to select the saved export profile.
    
    You'll get an access error.
    
    Using sudo for computed/related stuff linked to ir.model,  we avoid
    the problem.
    
    TT44721
    pedrobaeza authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a678afa View commit details
    Browse the repository at this point in the history
  35. [UPD] Update base_export_manager.pot

    oca-ci authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    eeea9d1 View commit details
    Browse the repository at this point in the history
  36. [UPD] README.rst

    OCA-git-bot authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ca6b969 View commit details
    Browse the repository at this point in the history
  37. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-ux-16.0/server-ux-16.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager/
    weblate authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    dd80aaf View commit details
    Browse the repository at this point in the history
  38. Translated using Weblate (Spanish)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-16.0/server-ux-16.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager/es/
    Ivorra78 authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    323cc48 View commit details
    Browse the repository at this point in the history
  39. [UPD] README.rst

    OCA-git-bot authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    650c114 View commit details
    Browse the repository at this point in the history
  40. Translated using Weblate (Italian)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-16.0/server-ux-16.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager/it/
    mymage authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d13b9b0 View commit details
    Browse the repository at this point in the history
  41. Translated using Weblate (Swedish)

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-16.0/server-ux-16.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager/sv/
    jakobkrabbe authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d931a4a View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    6af5047 View commit details
    Browse the repository at this point in the history
  43. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (31 of 31 strings)
    
    Translation: server-ux-16.0/server-ux-16.0-base_export_manager
    Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager/pt_BR/
    SottomaiorMacedoTec authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ca43bf2 View commit details
    Browse the repository at this point in the history
  44. [BOT] post-merge updates

    OCA-git-bot authored and david-s73 committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    ff639da View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    8625733 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    6faa883 View commit details
    Browse the repository at this point in the history