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

[18.0][MIG][base_export_manager] Migration to 18.0 #969

Open
wants to merge 40 commits into
base: 18.0
Choose a base branch
from

Commits on Nov 11, 2024

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

    hhgabelgaard authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    23df542 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    de715d6 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ad49db6 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    6900070 View commit details
    Browse the repository at this point in the history
  6. [IMP] Add export permission

    Sandip Mangukiya authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    3e4b6e6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    625e54e View commit details
    Browse the repository at this point in the history
  8. [FIX+IMP] PEP8 + conflicts + Combined methods

    Maxime Chambreuil authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    542a5c4 View commit details
    Browse the repository at this point in the history
  9. [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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    80815a4 View commit details
    Browse the repository at this point in the history
  10. base_export_manager: Upgrade to v9 * Upgrade base_export_manager to v…

    …9 * Rename JS to base_export_manager
    lasley authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    455d951 View commit details
    Browse the repository at this point in the history
  11. Add export permission

    Sandip Mangukiya authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    7bc5a04 View commit details
    Browse the repository at this point in the history
  12. [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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    0b54c21 View commit details
    Browse the repository at this point in the history
  13. [MIG]Migrated base_export_manager module.

    serpentcs authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    6785f67 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    74bbff9 View commit details
    Browse the repository at this point in the history
  15. [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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    81de42c View commit details
    Browse the repository at this point in the history
  16. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    8149ad4 View commit details
    Browse the repository at this point in the history
  17. [MIG] base_export_manager: Migration to 12.0

    Olivier Jossen authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    74a8023 View commit details
    Browse the repository at this point in the history
  18. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    6e9d586 View commit details
    Browse the repository at this point in the history
  19. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ab7222e View commit details
    Browse the repository at this point in the history
  20. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    f114e79 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4d0ec24 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d88ffe3 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    506354c View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    134f683 View commit details
    Browse the repository at this point in the history
  25. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b58bc83 View commit details
    Browse the repository at this point in the history
  26. [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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    bff3325 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    bfb3003 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    a9b6a85 View commit details
    Browse the repository at this point in the history
  29. [FIX] base_export_manager: Remove default because it is redundant

    WARNING odoo.fields: Redundant default on ir.exports.line.model1_id
    victoralmau authored and BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    23ca98a View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    e6a59c1 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0e1a38d View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    e1af1f2 View commit details
    Browse the repository at this point in the history
  33. [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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    c8bf3fb View commit details
    Browse the repository at this point in the history
  34. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    2990a99 View commit details
    Browse the repository at this point in the history
  35. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b6ace53 View commit details
    Browse the repository at this point in the history
  36. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    770b5d0 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    852aa83 View commit details
    Browse the repository at this point in the history
  38. 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 BT-crodriguez committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    37c401c View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Configuration menu
    Copy the full SHA
    e058a6c View commit details
    Browse the repository at this point in the history
  2. [18.0][MIG][base_export_manager] Migration to 18.0

    - Removing unnecessary rendering of the technical field in the export menu as odoo core already does it
    - Fixing JS super call
    - Replacing tree for list
    - More fixes
    BT-crodriguez committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    436e2f0 View commit details
    Browse the repository at this point in the history