Skip to content

[16.0][FIX] product_category_active: harmonization of category display.#1834

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
grap:16.0-FIX-product_category_active-active-test
Jan 16, 2025
Merged

[16.0][FIX] product_category_active: harmonization of category display.#1834
OCA-git-bot merged 1 commit intoOCA:16.0from
grap:16.0-FIX-product_category_active-active-test

Conversation

@legalsylvain
Copy link
Contributor

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

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
@legalsylvain legalsylvain added this to the 16.0 milestone Jan 6, 2025
@simahawk
Copy link
Contributor

LG

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1834-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a31f7d1 into OCA:16.0 Jan 16, 2025
@OCA-git-bot
Copy link
Contributor

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

@sebalix sebalix changed the title [FIX] product_category_active: harmonization of category display. [16.0][FIX] product_category_active: harmonization of category display. Jan 16, 2025
juancarlosonate-tecnativa pushed a commit to Tecnativa/product-attribute that referenced this pull request Feb 28, 2025
Signed-off-by simahawk
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.

4 participants