Browse Source

May 15: [FIX] Bug Fixed 'pos_product_stock'

pull/320/head
RisvanaCybro 12 months ago
parent
commit
88126a705e
  1. 5
      pos_product_stock/doc/RELEASE_NOTES.md
  2. 2
      pos_product_stock/models/pos_session.py

5
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

2
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

Loading…
Cancel
Save