Skip to content

[FIX] product_category_company_favorite: use sudo to avoid error#1004

Open
legalsylvain wants to merge 1 commit into
OCA:16.0from
grap:16.0-FIX-product_category_company_favorite-unavailable-category
Open

[FIX] product_category_company_favorite: use sudo to avoid error#1004
legalsylvain wants to merge 1 commit into
OCA:16.0from
grap:16.0-FIX-product_category_company_favorite-unavailable-category

Conversation

@legalsylvain

Copy link
Copy Markdown
Contributor
  • if current user doesn't have access to all companies.
  • put is_favorite to True, if it is not set in vals, that occures if categories are created via batch, import, etc...

@legalsylvain legalsylvain added this to the 16.0 milestone May 26, 2026
@OCA-git-bot OCA-git-bot added mod:product_category_company_favorite Module product_category_company_favorite series:16.0 labels May 26, 2026
- use sudo to avoid error if current user doesn't have access to all companies.
- put is_favorite to True, if it is not set in vals, that occures if categories are created via batch, import, etc...
@legalsylvain legalsylvain force-pushed the 16.0-FIX-product_category_company_favorite-unavailable-category branch from 96fd47d to 0f77ea1 Compare May 26, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:product_category_company_favorite Module product_category_company_favorite series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants