Skip to content

[18.0][MIG] maintenance_product: Migration to 18.0 #451

Merged
OCA-git-bot merged 13 commits intoOCA:18.0from
HeliconiaIO:18.0-mig-maintenance_product
Aug 5, 2025
Merged

[18.0][MIG] maintenance_product: Migration to 18.0 #451
OCA-git-bot merged 13 commits intoOCA:18.0from
HeliconiaIO:18.0-mig-maintenance_product

Conversation

@BhaveshHeliconia
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 3, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 3, 2025
@marcelsavegnago
Copy link
Member

ping @OCA/maintenance-maintainers

@etobella
Copy link
Member

etobella commented Aug 4, 2025

Please rebase

victoralmau and others added 12 commits August 5, 2025 09:46
Currently translated at 100.0% (11 of 11 strings)

Translation: maintenance-14.0/maintenance-14.0-maintenance_product
Translate-URL: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_product/it/
Currently translated at 100.0% (11 of 11 strings)

Translation: maintenance-15.0/maintenance-15.0-maintenance_product
Translate-URL: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_product/es/
Currently translated at 100.0% (8 of 8 strings)

Translation: maintenance-16.0/maintenance-16.0-maintenance_product
Translate-URL: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_product/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: maintenance-16.0/maintenance-16.0-maintenance_product
Translate-URL: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_product/es/
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-maintenance_product branch from 316ffed to 5647f09 Compare August 5, 2025 04:16
@BhaveshHeliconia
Copy link
Contributor Author

@etobella : It's Done. Thanks

comodel_name="product.product",
string="Product",
tracking=True,
domain="[('categ_id','=',product_category_id),('maintenance_ok','=',True)]",
Copy link
Member

Choose a reason for hiding this comment

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

categ_id should be child_of of product_category_id

@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-maintenance_product branch from 5647f09 to a2ee2aa Compare August 5, 2025 05:08
@BhaveshHeliconia
Copy link
Contributor Author

@etobella : Please review. Thanks

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

LGTM /ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-451-by-etobella-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6bd889f into OCA:18.0 Aug 5, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

Comment on lines +13 to +16
domain=[
("categ_id", "child_of", "product_category_id"),
("maintenance_ok", "=", True),
],

Choose a reason for hiding this comment

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

@BhaveshHeliconia
As the domain is structured now, it will always return the string 'product_category_id' instead of the actual ID.

You probably want something like:
"[('categ_id', 'child_of', product_category_id), ('maintenance_ok', '=', True)]"

so that product_category_id is evaluated properly.

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

Labels

approved merged 🎉 stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants