summaryrefslogtreecommitdiff
path: root/addons/pos_cache
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-02-10 18:40:56 +0100
committerChristophe Simonis <chs@odoo.com>2016-02-10 18:40:56 +0100
commit9a805c90ed5aa3dfa578438c39cd779a75c33de0 (patch)
tree874d3efa57893bdee64268336f9e02cd4a090627 /addons/pos_cache
parent7db8f1ca3081b67afb9e31f1d3e65c6a35eec35f (diff)
parentd70fde0330550d510668e49807da83e646e8ccec (diff)
[MERGE] forward port of branch saas-9 up to d70fde0
Diffstat (limited to 'addons/pos_cache')
-rw-r--r--addons/pos_cache/i18n/es_PE.po2
-rw-r--r--addons/pos_cache/i18n/eu.po7
-rw-r--r--addons/pos_cache/i18n/sq.po4
-rw-r--r--addons/pos_cache/i18n/ta.po110
-rw-r--r--addons/pos_cache/models/pos_cache.py3
5 files changed, 119 insertions, 7 deletions
diff --git a/addons/pos_cache/i18n/es_PE.po b/addons/pos_cache/i18n/es_PE.po
index e7679dc4ecd..07fe80d3353 100644
--- a/addons/pos_cache/i18n/es_PE.po
+++ b/addons/pos_cache/i18n/es_PE.po
@@ -77,7 +77,7 @@ msgstr "Ultima Actualización"
#: code:addons/pos_cache/static/src/js/pos_cache.js:36
#, python-format
msgid "Loading"
-msgstr ""
+msgstr "Cargando"
#. module: pos_cache
#: model:ir.model.fields,field_description:pos_cache.field_pos_config_oldest_cache_time
diff --git a/addons/pos_cache/i18n/eu.po b/addons/pos_cache/i18n/eu.po
index 733fac7137b..1e5dd4ead02 100644
--- a/addons/pos_cache/i18n/eu.po
+++ b/addons/pos_cache/i18n/eu.po
@@ -3,13 +3,14 @@
# * pos_cache
#
# Translators:
+# ibinka lete <ilete@fpbidasoa.net>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo 9.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-29 10:26+0000\n"
-"PO-Revision-Date: 2015-09-29 12:42+0000\n"
-"Last-Translator: <>\n"
+"PO-Revision-Date: 2016-02-03 19:27+0000\n"
+"Last-Translator: ibinka lete <ilete@fpbidasoa.net>\n"
"Language-Team: Basque (http://www.transifex.com/odoo/odoo-9/language/eu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -92,7 +93,7 @@ msgstr ""
#. module: pos_cache
#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_product_fields
msgid "Product fields"
-msgstr ""
+msgstr "Produktuen eremuak"
#. module: pos_cache
#: model:ir.ui.view,arch_db:pos_cache.view_pos_config_form
diff --git a/addons/pos_cache/i18n/sq.po b/addons/pos_cache/i18n/sq.po
index 5575e4f4b42..32dbaccfb88 100644
--- a/addons/pos_cache/i18n/sq.po
+++ b/addons/pos_cache/i18n/sq.po
@@ -50,12 +50,12 @@ msgstr "Krijuar me"
#. module: pos_cache
#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_display_name
msgid "Display Name"
-msgstr ""
+msgstr "Emri i paraqitur"
#. module: pos_cache
#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_id
msgid "ID"
-msgstr ""
+msgstr "ID"
#. module: pos_cache
#: model:ir.model.fields,field_description:pos_cache.field_pos_cache___last_update
diff --git a/addons/pos_cache/i18n/ta.po b/addons/pos_cache/i18n/ta.po
new file mode 100644
index 00000000000..c1b2e407d5d
--- /dev/null
+++ b/addons/pos_cache/i18n/ta.po
@@ -0,0 +1,110 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_cache
+#
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo 9.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-09-29 10:26+0000\n"
+"PO-Revision-Date: 2016-02-05 09:53+0000\n"
+"Last-Translator: Martin Trigaux\n"
+"Language-Team: Tamil (http://www.transifex.com/odoo/odoo-9/language/ta/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ta\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_cache
+msgid "Cache"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_compute_user_id
+msgid "Cache compute user"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_config_cache_ids
+msgid "Cache ids"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_config_id
+msgid "Config id"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_create_uid
+msgid "Created by"
+msgstr "உருவாக்கியவர்"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_create_date
+msgid "Created on"
+msgstr "உருவாக்கப்பட்ட \nதேதி"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_display_name
+msgid "Display Name"
+msgstr "காட்சி பெயர்"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_id
+msgid "ID"
+msgstr "ID"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache___last_update
+msgid "Last Modified on"
+msgstr "கடைசியாக திருத்திய"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_write_uid
+msgid "Last Updated by"
+msgstr "கடைசியாக புதுப்பிக்கப்பட்டது"
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_write_date
+msgid "Last Updated on"
+msgstr "கடைசியாக புதுப்பிக்கப்பட்டது"
+
+#. module: pos_cache
+#. openerp-web
+#: code:addons/pos_cache/static/src/js/pos_cache.js:36
+#, python-format
+msgid "Loading"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_config_oldest_cache_time
+msgid "Oldest cache time"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_product_domain
+msgid "Product domain"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model.fields,field_description:pos_cache.field_pos_cache_product_fields
+msgid "Product fields"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.ui.view,arch_db:pos_cache.view_pos_config_form
+msgid "Recompute cache"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model,name:pos_cache.model_pos_cache
+msgid "pos.cache"
+msgstr ""
+
+#. module: pos_cache
+#: model:ir.model,name:pos_cache.model_pos_config
+msgid "pos.config"
+msgstr ""
diff --git a/addons/pos_cache/models/pos_cache.py b/addons/pos_cache/models/pos_cache.py
index 0ae91b8bfeb..b4c50f2afe0 100644
--- a/addons/pos_cache/models/pos_cache.py
+++ b/addons/pos_cache/models/pos_cache.py
@@ -23,7 +23,8 @@ class pos_cache(models.Model):
@api.one
def refresh_cache(self):
products = self.env['product.product'].search(self.get_product_domain())
- prod_ctx = products.with_context(pricelist=self.config_id.pricelist_id.id, display_default_code=False)
+ 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 = {