diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-12 21:44:28 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-12 21:44:28 +0200 |
| commit | aeae519a65cacfc0b989df1cbaa6d52946407012 (patch) | |
| tree | 8d5ebaede16a3dc18a2f98b148dce48928266edf /addons/pos_cache | |
| parent | d4cf4374d1baa529bb651bb3cc32e9db140963a8 (diff) | |
| parent | 945dd32eb02f91ae2e5d0ab6545704bd19e7f05a (diff) | |
[MERGE] forward port branch saas-15 up to 945dd32eb02
Diffstat (limited to 'addons/pos_cache')
| -rw-r--r-- | addons/pos_cache/i18n/pt.po | 23 | ||||
| -rw-r--r-- | addons/pos_cache/models/pos_cache.py | 4 |
2 files changed, 9 insertions, 18 deletions
diff --git a/addons/pos_cache/i18n/pt.po b/addons/pos_cache/i18n/pt.po index a26f109c9d9..7ddc9fc15e3 100644 --- a/addons/pos_cache/i18n/pt.po +++ b/addons/pos_cache/i18n/pt.po @@ -33,7 +33,7 @@ msgstr "" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_cache msgid "Cache" -msgstr "" +msgstr "Cache" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_compute_user_id @@ -62,13 +62,8 @@ msgstr "Criado em" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_display_name -#, fuzzy msgid "Display Name" -msgstr "" -"#-#-#-#-# pt.po (Odoo 9.0) #-#-#-#-#\n" -"Nome a Mostrar\n" -"#-#-#-#-# pt.po (Odoo 9.0) #-#-#-#-#\n" -"Nome a Exibir" +msgstr "Nome a Exibir" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_id @@ -93,13 +88,9 @@ msgstr "Última Atualização em" #. module: pos_cache #. openerp-web #: code:addons/pos_cache/static/src/js/pos_cache.js:36 -#, fuzzy, python-format +#, python-format msgid "Loading" -msgstr "" -"#-#-#-#-# pt.po (Odoo 9.0) #-#-#-#-#\n" -"A Carregar\n" -"#-#-#-#-# pt.po (Odoo 9.0) #-#-#-#-#\n" -"Carregando" +msgstr "A Carregar" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_config_oldest_cache_time @@ -109,12 +100,12 @@ msgstr "" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_product_domain msgid "Product domain" -msgstr "" +msgstr "Domínio do produto" #. module: pos_cache #: model:ir.model.fields,field_description:pos_cache.field_pos_cache_product_fields msgid "Product fields" -msgstr "" +msgstr "Campos do produto" #. module: pos_cache #: model:ir.ui.view,arch_db:pos_cache.view_pos_config_form @@ -124,7 +115,7 @@ msgstr "" #. module: pos_cache #: model:ir.model,name:pos_cache.model_pos_cache msgid "pos.cache" -msgstr "" +msgstr "pos.cache" #. module: pos_cache #: model:ir.model,name:pos_cache.model_pos_config diff --git a/addons/pos_cache/models/pos_cache.py b/addons/pos_cache/models/pos_cache.py index fb0fb20641e..eed948b7981 100644 --- a/addons/pos_cache/models/pos_cache.py +++ b/addons/pos_cache/models/pos_cache.py @@ -23,10 +23,10 @@ class pos_cache(models.Model): @api.one def refresh_cache(self): - products = self.env['product.product'].search(self.get_product_domain()) + Product = self.env['product.product'].sudo(self.compute_user_id.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) - prod_ctx = prod_ctx.sudo(self.compute_user_id.id) res = prod_ctx.read(self.get_product_fields()) datas = { 'cache': base64.encodestring(cPickle.dumps(res)), |
