From 88126a705e2339cd93e07b37705db44d54459db4 Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Wed, 15 May 2024 17:29:49 +0530 Subject: [PATCH] May 15: [FIX] Bug Fixed 'pos_product_stock' --- pos_product_stock/doc/RELEASE_NOTES.md | 5 +++++ pos_product_stock/models/pos_session.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pos_product_stock/doc/RELEASE_NOTES.md b/pos_product_stock/doc/RELEASE_NOTES.md index 4817074a5..222fe0f8d 100644 --- a/pos_product_stock/doc/RELEASE_NOTES.md +++ b/pos_product_stock/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 16.0.1.0.0 #### ADD - Initial Commit for POS Product Stock + +#### 15.05.2024 +#### Version 16.0.1.0.1 +#### UPDT +- Updated Access Rights diff --git a/pos_product_stock/models/pos_session.py b/pos_product_stock/models/pos_session.py index 0dfd9e281..f6b83bd60 100644 --- a/pos_product_stock/models/pos_session.py +++ b/pos_product_stock/models/pos_session.py @@ -82,7 +82,7 @@ class PosSession(models.Model): def _get_pos_ui_res_config_settings(self, params): """this function should use the search_read method to search and read records from the base setting""" - config_settings = self.env['res.config.settings'].search_read(**params['search_params']) + config_settings = self.env['res.config.settings'].sudo().search_read(**params['search_params']) if config_settings: last_config_setting = config_settings[-1] return last_config_setting