Skip to content

[19.0][IMP] product_state: fix domain filter for state products action#2278

Open
MohamedOsman7 wants to merge 1 commit into
OCA:19.0from
c4a8-odoo:19.0-fix-product_state
Open

[19.0][IMP] product_state: fix domain filter for state products action#2278
MohamedOsman7 wants to merge 1 commit into
OCA:19.0from
c4a8-odoo:19.0-fix-product_state

Conversation

@MohamedOsman7
Copy link
Copy Markdown
Contributor

solves: #2275 (review)

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @emagdalenaC2i,
some modules you are maintaining are being modified, check this out!

Copy link
Copy Markdown

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread product_state/__manifest__.py Outdated
"website": "https://github.com/OCA/product-attribute",
"category": "Product",
"version": "19.0.1.0.0",
"version": "19.0.1.0.1",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the version does not need to be updated manually, since it should be handled automatically when the merge command is executed.

Other than that, LGTM!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@MohamedOsman7 MohamedOsman7 force-pushed the 19.0-fix-product_state branch from 53f0e5c to 6562479 Compare May 3, 2026 14:02
@MohamedOsman7
Copy link
Copy Markdown
Contributor Author

@pedrobaeza Can you please merge in order to continue on #2275

@pedrobaeza pedrobaeza added this to the 19.0 milestone May 4, 2026
Comment thread product_state/README.rst
@@ -35,10 +35,10 @@ Product State
This module introduces the state field on product template and allows
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please don't do this change.

<field name="view_mode">kanban,form,list</field>
<field name="context">{}</field>
<field name="domain">[('product_state_id', '=', id)]</field>
<field name="domain">[('product_state_id', '=', active_id)]</field>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure this active_id will always contain the correct data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It works with active_id when I trigger it from the state form, but yeah, not sure if that’s always safe.

Do you have a best practice for this?

@OCA-git-bot
Copy link
Copy Markdown
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). 🤖

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.

5 participants