Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] point_of_sale: raise access denied for user role
We encounter an error when trying to open any POS category from the 'Dashboard,' if the Administrator is assigned the role of 'User' for 'Point of Sale.' Steps to reproduce: - Install the 'point_of_sale' module(without demo) - Change the right from 'Admin' -> 'User' in 'Point of Sale' in Users - Now go to 'Dashboard' and try to open any category Traceback: ParseError while parsing /home/odoo/src/odoo/saas-17.4/addons/product/data/product_demo.xml:5, somewhere inside <record id="base.group_user" model="res.groups"> <field name="implied_ids" eval="[(4, ref('product.group_product_variant'))]"/> </record> This commit will fix the above error by displaying an "Access Denied" pop-up for users with the "User" role when attempting to open the POS category. sentry-5717539295 closes odoo#187472 X-original-commit: eb6c873 Signed-off-by: David Monnom (moda) <[email protected]> Signed-off-by: Aayush Modi (aamo) <[email protected]>
- Loading branch information