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

product_variant_default_code: issue #140

Closed
omalbastin opened this issue Mar 20, 2019 · 5 comments
Closed

product_variant_default_code: issue #140

omalbastin opened this issue Mar 20, 2019 · 5 comments
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@omalbastin
Copy link

Admin user who is having the "Product Default Code Behavior" group set a reference mask for a product template. Then another user without the "Product Default Code Behavior" security group make changes to any field other than attribute_line_ids, reference_mask, code_prefix etc can trigger the default_code generation using the default_reference_mask

@pedrobaeza
Copy link
Member

I don't get what you mean

@omalbastin
Copy link
Author

omalbastin commented Mar 20, 2019

https://github.com/OCA/product-variant/blob/11.0/product_variant_default_code/models/product.py#L127

If a user who is not having "Product Default Code Behavior" group makes any change to any other fields it will recompute the default_code for every variant with new reference_mask generated with self._get_default_mask() method

@pedrobaeza
Copy link
Member

Do you mean incorrect parenthesis? Please do a PR amending that.

@omalbastin
Copy link
Author

That or condition is causing the problem. I will create a PR

@github-actions
Copy link

github-actions bot commented Dec 5, 2021

There hasn't been any activity on this issue in the past 6 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 issue 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 Dec 5, 2021
@github-actions github-actions bot closed this as completed Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

2 participants