diff options
| author | Raphael Collet <rco@odoo.com> | 2019-06-17 09:45:09 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-07-04 11:32:22 +0000 |
| commit | b7fd679a6c41dbb694c6fb2ce4911798de0424b1 (patch) | |
| tree | cb4e75910deb2516d5397925e96ab5e680eed9e1 /addons/pos_cache/models/pos_cache.py | |
| parent | 1e6c3bec2c5ca621344b09e58dbed535e80fb343 (diff) | |
[FIX] *: sudo() -> with_user()
Diffstat (limited to 'addons/pos_cache/models/pos_cache.py')
| -rw-r--r-- | addons/pos_cache/models/pos_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pos_cache/models/pos_cache.py b/addons/pos_cache/models/pos_cache.py index e7b779581d9..980555ebf30 100644 --- a/addons/pos_cache/models/pos_cache.py +++ b/addons/pos_cache/models/pos_cache.py @@ -24,7 +24,7 @@ class pos_cache(models.Model): @api.one def refresh_cache(self): - Product = self.env['product.product'].sudo(self.compute_user_id.id) + Product = self.env['product.product'].with_user(self.compute_user_id) products = Product.search(self.get_product_domain()) prod_ctx = products.with_context(pricelist=self.config_id.pricelist_id.id, display_default_code=False, lang=self.compute_user_id.lang) |
