- Notifications
You must be signed in to change notification settings - Fork28.6k
[FW][FIX] point_of_sale: update tmpl. attr. values w/o POS access#202607
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@hahu-odoo@caburj cherrypicking of pull request#202144 failed. stdout:
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info athttps://github.com/odoo/odoo/wiki/Mergebot#forward-port |
Before this commit, the Inventory admins who did nothave any POS access could not add or remove variantattribute values from the product template form view.This is because of the potential to create or deletePOS combo lines.However, Inventory admins shouldn't need this accessto manage product variants. If a variant is deleted,its combo line will be deleted as well so that itwon't be offered in POS anymore.X-original-commit:ecc4428
ac966c5
to2818942
CompareRemoved my changes to |
@hahu-odoo@caburj this forward port of#202144 is awaiting action (not merged or closed). |
@robodoo r+ |
Before this commit, the Inventory admins who did nothave any POS access could not add or remove variantattribute values from the product template form view.This is because of the potential to create or deletePOS combo lines.However, Inventory admins shouldn't need this accessto manage product variants. If a variant is deleted,its combo line will be deleted as well so that itwon't be offered in POS anymore.closesodoo/odoo#202607X-original-commit: ecc44289b299c065e413598c5f565c506f7d42f0Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>Signed-off-by: Harrison Hutton (hahu) <hahu@odoo.com>
This PR addresses an access rights issue when an Inventory admin, specifically without POS access, tries to edit the variant attributes on a product template.
In its current state, this user will witness an access error related to
pos.combo.line
records when they add or remove an attribute value.This PR fixes this by introducing
.sudo()
access when interacting with thepos.combo.line
model during this process.opw-4553416
Forward-Port-Of:#202144