-
-
Notifications
You must be signed in to change notification settings - Fork 781
[18.0] [MIG] pos_product_cost_security #2120
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
base: 18.0
Are you sure you want to change the base?
[18.0] [MIG] pos_product_cost_security #2120
Conversation
Glue module between Point of Sale and Product Cost Security
In a multicompany environment, doing a sudo() to override the security in the PoS data loading could bring us more data than needed. Therefore we just use the sudo to retrieve the cost and then join the data altogether retrived with the user's permissions. TT48609
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-pos_product_cost_security Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-pos_product_cost_security/
Currently translated at 100.0% (2 of 2 strings) Translation: product-attribute-16.0/product-attribute-16.0-pos_product_cost_security Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-pos_product_cost_security/it/
cvinh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it in runboat and I have no products in the pos screen with admin account (not belonging to any product_cost group)
|
I'm sorry, I didn't know this module before, is it supposed to hide all products from a pos session and just hide error ... and only let people that have the right to see product cost to sell a product ? This is weird so I don't think so... |
|
/ocabot migration pos_product_cost_security This bridge module allows to bypass the problem, as the way things are loaded in PoS and the groups ORM handling in fields is a bit "tricky". |
Oh I see, then I understand better how pos_product_cost_security works. This is a sum up
The expected behavior is that a user without the cost rights can use the point of sale @parvezqureshi I think the PR from which you started does not work neither |
392b966 to
cd6d889
Compare
cvinh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested in runboat


No description provided.