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_view_inheritance_extension: Migration to 18.0 #3120

Merged

Conversation

LucasTran380381
Copy link

@LucasTran380381 LucasTran380381 commented Nov 14, 2024

Supersedes #3100

  • Due to attrs attribute is not use anymore in odoo v17 and later. => change to use context to make test-case suitable
  • Add test-case for operation="text_add" and operation="domain_add"

hbrunn and others added 30 commits November 14, 2024 10:16
Trivial changes:

* Version in README changed
* Version in manifest changed

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
…extension. (OCA#804)

* Add list_add operation.
* Add list_remove operation.

OCA Transbot updated translations from Transifex
expression not match the node any more. Fixes OCA#885
*  warning about dynamic context
* import for safe_eval
* Removed `list_add` and `list_remove`, they've been deprecated and
implemented in Odoo core since several versions ago.

* Removed `move`, as it has also already been implemented in core several
versions ago.

* Replaced `python_dict` by `update`, that performs an operation similar
to :meth:`dict.update`, but on the ast.Dict.
Currently translated at 100.0% (3 of 3 strings)

Translation: server-tools-15.0/server-tools-15.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_view_inheritance_extension/es_AR/
This fixes an error we could get if the attribute of the inherited tag
has some extra carriage returns.

Exception raised: SyntaxError: unexpected EOF while parsing
Currently translated at 100.0% (3 of 3 strings)

Translation: server-tools-16.0/server-tools-16.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension/it/
Currently translated at 100.0% (3 of 3 strings)

Translation: server-tools-16.0/server-tools-16.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension/hr/
Currently translated at 100.0% (4 of 4 strings)

Translation: server-tools-16.0/server-tools-16.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension/es_AR/
Currently translated at 100.0% (4 of 4 strings)

Translation: server-tools-16.0/server-tools-16.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension/es/
@LucasTran380381 LucasTran380381 force-pushed the 18.0-mig-base_view_inheritance_extension branch 2 times, most recently from 8be1ae8 to 993b8ab Compare November 19, 2024 04:36
@LucasTran380381 LucasTran380381 marked this pull request as ready for review November 20, 2024 03:33
@LucasTran380381 LucasTran380381 mentioned this pull request Nov 20, 2024
24 tasks
@LucasTran380381 LucasTran380381 force-pushed the 18.0-mig-base_view_inheritance_extension branch from 993b8ab to 0d7706f Compare November 20, 2024 09:01
@LucasTran380381 LucasTran380381 changed the title [MIG] base_view_inheritance_extension: Migration to 18.0 [18.0][MIG] base_view_inheritance_extension: Migration to 18.0 Nov 20, 2024
Copy link
Member

@hbrunn hbrunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migration itself is fine, but the test code you removed tests the valuable case where the dictionary doesn't exist in the base view.

And given there was barely anything to do for this migration, I think it's fair to ask for test cases for operation="text_add" and/or operation="domain_add"

@hbrunn
Copy link
Member

hbrunn commented Nov 21, 2024

/ocabot migration base_view_inheritance_extension

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Nov 21, 2024
@LucasTran380381 LucasTran380381 force-pushed the 18.0-mig-base_view_inheritance_extension branch from 0d7706f to da18c96 Compare November 22, 2024 03:05
@LucasTran380381
Copy link
Author

migration itself is fine, but the test code you removed tests the valuable case where the dictionary doesn't exist in the base view.

And given there was barely anything to do for this migration, I think it's fair to ask for test cases for operation="text_add" and/or operation="domain_add"

Thanks for review. I have add test-case for 2 operation

[MIG] base_view_inheritance_extension: Migration to 18.0

Co-authored-by: Lukas Tran <[email protected]>
@LucasTran380381 LucasTran380381 force-pushed the 18.0-mig-base_view_inheritance_extension branch from da18c96 to c9e0dec Compare November 22, 2024 03:11
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@hbrunn
Copy link
Member

hbrunn commented Nov 25, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-3120-by-hbrunn-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 75a2dc6 into OCA:18.0 Nov 25, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f2b20d9. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.