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] product_category_active: Migration to 18.0 #1851

Merged
merged 20 commits into from
Jan 21, 2025

Conversation

yankinmax
Copy link

This PR is opened just to speed up the migration.
Everything was handled by HeliconiaSolutions here:

Ernesto Tejeda and others added 20 commits January 21, 2025 12:54
The problem why child_of was not working directly in the search is because there are
involved inactive records that are excluded by default by the ORM.

We need to disable that exlusion for a proper working, and it's needed because the
other domain is not taking into account possible inactive categories in the middle
of the hierarchy.
Translated using Weblate (Portuguese)

Currently translated at 50.0% (2 of 4 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_category_active
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_category_active/pt/
Translated using Weblate (Catalan)

Currently translated at 100.0% (4 of 4 strings)

Translation: product-attribute-12.0/product-attribute-12.0-product_category_active
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_category_active/ca/
[UPD] Update product_category_active.pot

[UPD] README.rst

product_category_active 16.0.1.0.1

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-16.0/product-attribute-16.0-product_category_active
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_category_active/
Translated using Weblate (Italian)

Currently translated at 100.0% (4 of 4 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_category_active
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_category_active/it/

[UPD] README.rst
- Include context keys for avoiding mail operations overhead.

[BOT] post-merge updates
Currently translated at 100.0% (4 of 4 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_category_active
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_category_active/it/
In odoo, archived items are not displayed by default. (see users view, products, etc...)
The product_category_active module doesn't follow this convention because it is changing the context of the action of product.category. As a result, all categories are displayed, polluting visibility with obsolete items.
- Remove the active_test in the context of the action.
- create a migration script to remove the active_test on existing instances.
- add filters to display archived and 'archived or active' categories, in case you want to see all categories
@yankinmax
Copy link
Author

@legalsylvain maybe a merge?

@legalsylvain
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit e8a4fd6 into OCA:18.0 Jan 21, 2025
6 of 7 checks passed
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.