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

[FIX] product_attribute_set: auto update attributes by updating attribute_set_id #201

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

kobros-tech
Copy link

auto update attributes by updating attribute_set_id

Screencast.2025-02-17.16.23.59.mp4

Copy link

@wlin-kencove wlin-kencove left a comment

Choose a reason for hiding this comment

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

Tested on 16 odoo and it looks good. The relevant atrribute sets are assigned to the products and the attribute appear.

image

@kobros-tech
Copy link
Author

@rousseldenis
Can we merge this fix PR and others for 14.0, please?

@rousseldenis rousseldenis added enhancement New feature or request needs review labels Feb 18, 2025
@rousseldenis rousseldenis added this to the 16.0 milestone Feb 18, 2025
@api.onchange("attribute_set_id")
def _onchange_attribute_set_id(self):
"""Trigger _get_view_fields implicitly to auto update attributes in the UI"""
if self.attribute_set_id:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be tested with Form(). Could you check ?

Copy link
Author

Choose a reason for hiding this comment

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

I will see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants