Browse Source

Merge PR #368 into 12.0

Signed-off-by legalsylvain
pull/412/head
OCA-git-bot 5 years ago
parent
commit
7745d25a1d
  1. 4
      pos_to_weight_by_product_uom/README.rst
  2. 3
      pos_to_weight_by_product_uom/__init__.py
  3. 25
      pos_to_weight_by_product_uom/__manifest__.py
  4. 11
      pos_to_weight_by_product_uom/demo/res_groups.xml
  5. 12
      pos_to_weight_by_product_uom/demo/uom_category.xml
  6. 11
      pos_to_weight_by_product_uom/demo/uom_uom.xml
  7. 60
      pos_to_weight_by_product_uom/i18n/ca.po
  8. 61
      pos_to_weight_by_product_uom/i18n/de.po
  9. 60
      pos_to_weight_by_product_uom/i18n/es.po
  10. 61
      pos_to_weight_by_product_uom/i18n/es_MX.po
  11. 60
      pos_to_weight_by_product_uom/i18n/fi.po
  12. 58
      pos_to_weight_by_product_uom/i18n/fr.po
  13. 61
      pos_to_weight_by_product_uom/i18n/fr_CH.po
  14. 61
      pos_to_weight_by_product_uom/i18n/hr.po
  15. 62
      pos_to_weight_by_product_uom/i18n/hr_HR.po
  16. 60
      pos_to_weight_by_product_uom/i18n/it.po
  17. 56
      pos_to_weight_by_product_uom/i18n/pos_to_weight_by_product_uom.pot
  18. 62
      pos_to_weight_by_product_uom/i18n/pt_BR.po
  19. 61
      pos_to_weight_by_product_uom/i18n/ro.po
  20. 62
      pos_to_weight_by_product_uom/i18n/sl.po
  21. 61
      pos_to_weight_by_product_uom/i18n/tr_TR.po
  22. 61
      pos_to_weight_by_product_uom/i18n/vi_VN.po
  23. 61
      pos_to_weight_by_product_uom/i18n/zh_CN.po
  24. 5
      pos_to_weight_by_product_uom/models/__init__.py
  25. 16
      pos_to_weight_by_product_uom/models/product_product.py
  26. 15
      pos_to_weight_by_product_uom/models/product_template.py
  27. 17
      pos_to_weight_by_product_uom/models/uom_category.py
  28. 12
      pos_to_weight_by_product_uom/models/uom_uom.py
  29. 14
      pos_to_weight_by_product_uom/readme/CONFIGURE.rst
  30. 2
      pos_to_weight_by_product_uom/readme/CONTRIBUTORS.rst
  31. 30
      pos_to_weight_by_product_uom/readme/DESCRIPTION.rst
  32. 5
      pos_to_weight_by_product_uom/readme/USAGE.rst
  33. BIN
      pos_to_weight_by_product_uom/static/description/icon.png
  34. BIN
      pos_to_weight_by_product_uom/static/description/uom_categ_button_toweigh.png
  35. BIN
      pos_to_weight_by_product_uom/static/description/uom_categ_change_toweigh.png
  36. BIN
      pos_to_weight_by_product_uom/static/description/uom_categ_toweigh.png
  37. BIN
      pos_to_weight_by_product_uom/static/description/uom_change_toweigh.png
  38. BIN
      pos_to_weight_by_product_uom/static/description/uom_pos_change_toweigh.png
  39. BIN
      pos_to_weight_by_product_uom/static/description/uom_pos_change_toweigh_checked.png
  40. 28
      pos_to_weight_by_product_uom/views/view_uom_category.xml
  41. 27
      pos_to_weight_by_product_uom/views/view_uom_uom.xml

4
pos_to_weight_by_product_uom/README.rst

@ -0,0 +1,4 @@
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

3
pos_to_weight_by_product_uom/__init__.py

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models

25
pos_to_weight_by_product_uom/__manifest__.py

@ -0,0 +1,25 @@
# Copyright 2017, Grap
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Pos to weight by product uom",
"summary": "Make 'To Weight' default value"
" depending on product UoM settings",
"version": "12.0.1.0.0",
"website": "https://github.com/OCA/pos",
"author": "GRAP, Odoo Community Association (OCA)",
"development_status": "Beta",
"license": "AGPL-3",
"installable": True,
"depends": [
"point_of_sale",
],
"data": [
'views/view_uom_uom.xml',
'views/view_uom_category.xml',
],
'demo': [
'demo/res_groups.xml',
'demo/uom_category.xml',
'demo/uom_uom.xml',
]
}

11
pos_to_weight_by_product_uom/demo/res_groups.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017, Grap
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="res.groups" id="uom.group_uom">
<field name="users" eval="[(4, ref('base.user_admin'))]"/>
</record>
</odoo>

12
pos_to_weight_by_product_uom/demo/uom_category.xml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017, Grap
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="uom.category" id="uom_category_to_weigh">
<field name="name">Demo - New Category To Weigh</field>
<field name="to_weigh">True</field>
</record>
</odoo>

11
pos_to_weight_by_product_uom/demo/uom_uom.xml

@ -0,0 +1,11 @@
<!-- Copyright 2017, Grap
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="uom.uom" id="uom_uom_to_weigh">
<field name="name">Demo - New Uom To Weigh</field>
<field name="category_id" ref="pos_to_weight_by_product_uom.uom_category_to_weigh"/>
</record>
</odoo>

60
pos_to_weight_by_product_uom/i18n/ca.po

@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Plantilla del producte"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Plantilla del producte"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/de.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Produktvorlage"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Produktvorlage"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr "Maßeinheit des Produkts"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

60
pos_to_weight_by_product_uom/i18n/es.po

@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Plantilla de producto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr "Unidad de medida"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/es_MX.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/"
"es_MX/)\n"
"Language: es_MX\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Plantilla del producto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Plantilla del producto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

60
pos_to_weight_by_product_uom/i18n/fi.po

@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Tuotteen malli"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Tuotteen malli"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

58
pos_to_weight_by_product_uom/i18n/fr.po

@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-13 12:19+0000\n"
"PO-Revision-Date: 2017-11-13 12:19+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr "Demo - Nouvelle Catégorie à peser"
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr "Demo - Nouvelle UdM à peser"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Modèle d'article"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr "Unité de mesure d'article"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr "Catégorie d'UdM d'article"
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr "À peser"

61
pos_to_weight_by_product_uom/i18n/fr_CH.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (Switzerland) (https://www.transifex.com/oca/"
"teams/23907/fr_CH/)\n"
"Language: fr_CH\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Template de produit"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Template de produit"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/hr.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Predložak proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Predložak proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

62
pos_to_weight_by_product_uom/i18n/hr_HR.po

@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Predložak proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Predložak proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

60
pos_to_weight_by_product_uom/i18n/it.po

@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Template prodotto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Template prodotto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

56
pos_to_weight_by_product_uom/i18n/pos_to_weight_by_product_uom.pot

@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
msgid "Product"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0
#: field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

62
pos_to_weight_by_product_uom/i18n/pt_BR.po

@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Felipe Lopes <ti@trojahntoppel.com.br>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: Felipe Lopes <ti@trojahntoppel.com.br>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Produto Modelo"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Produto Modelo"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr "Unidade de medida do produto"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/ro.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Produs șablon"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Produs șablon"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

62
pos_to_weight_by_product_uom/i18n/sl.po

@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-09 08:33+0000\n"
"PO-Revision-Date: 2017-12-09 08:33+0000\n"
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr "Demo - nova kategorija za tehtanje"
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr "Demo - nova EM za tehtanje"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Predloga proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Predloga proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr "EM proizvoda"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr "Kateg. EM proizvoda"
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr "Nastavite 'za tehtanje' pri vsakem proizvodu te kategorije"
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr "Za tehtanje"

61
pos_to_weight_by_product_uom/i18n/tr_TR.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
"tr_TR/)\n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Ürün şablonu"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Ürün şablonu"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/vi_VN.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/"
"teams/23907/vi_VN/)\n"
"Language: vi_VN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "Mẫu sản phẩm"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "Mẫu sản phẩm"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

61
pos_to_weight_by_product_uom/i18n/zh_CN.po

@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_to_weight_by_product_uom
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-08 04:01+0000\n"
"PO-Revision-Date: 2017-12-08 04:01+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/"
"zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: pos_to_weight_by_product_uom
#: model:product.uom.categ,name:pos_to_weight_by_product_uom.product_uom_categ_to_weigh
msgid "Demo - New Category To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:product.uom,name:pos_to_weight_by_product_uom.product_uom_to_weigh
msgid "Demo - New Uom To Weigh"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_product
#, fuzzy
msgid "Product"
msgstr "产品模板"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_template
msgid "Product Template"
msgstr "产品模板"
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom
msgid "Product Unit of Measure"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: model:ir.model,name:pos_to_weight_by_product_uom.model_product_uom_categ
msgid "Product uom categ"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: view:product.uom.categ:pos_to_weight_by_product_uom.product_uom_categ_form_view_inherit_pos_to_weight_by_product_uom
msgid "Set 'to weigh' in each product of this category"
msgstr ""
#. module: pos_to_weight_by_product_uom
#: field:product.uom,to_weigh:0 field:product.uom.categ,to_weigh:0
msgid "To weigh"
msgstr ""

5
pos_to_weight_by_product_uom/models/__init__.py

@ -0,0 +1,5 @@
from . import product_product
from . import product_template
from . import uom_uom
from . import uom_category

16
pos_to_weight_by_product_uom/models/product_product.py

@ -0,0 +1,16 @@
# Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class ProductProduct(models.Model):
_inherit = 'product.product'
@api.onchange('uom_id', 'uom_po_id')
def _onchange_uom(self):
res = super(ProductProduct, self)._onchange_uom()
if self.uom_id:
self.to_weight = self.uom_id.to_weigh
return res

15
pos_to_weight_by_product_uom/models/product_template.py

@ -0,0 +1,15 @@
# Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
# @author: Quentin DUPONT <quentin.dupont@grap.coop>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class ProductTemplate(models.Model):
_inherit = 'product.template'
@api.onchange('uom_id')
def _onchange_uom_id(self):
res = super(ProductTemplate, self)._onchange_uom_id()
if self.uom_id:
self.to_weight = self.uom_id.to_weigh
return res

17
pos_to_weight_by_product_uom/models/uom_category.py

@ -0,0 +1,17 @@
# Copyright 2017, Grap
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models, api
class UomCategory(models.Model):
_inherit = 'uom.category'
to_weigh = fields.Boolean('To weigh', default=False)
@api.multi
def action_recompute_to_weigh(self):
for categ in self:
domain = [('uom_id.category_id', '=', categ.id)]
products = self.env['product.template'].search(domain)
products.write({'to_weight': categ.to_weigh})

12
pos_to_weight_by_product_uom/models/uom_uom.py

@ -0,0 +1,12 @@
# Copyright 2017, Grap
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class UomUom(models.Model):
_inherit = 'uom.uom'
to_weigh = fields.Boolean(
related='category_id.to_weigh',
readonly=True)

14
pos_to_weight_by_product_uom/readme/CONFIGURE.rst

@ -0,0 +1,14 @@
* active settings "Allow using different units of measure" in Settings > Configuration > Sales > Quotations and Sales Orders > Product Features
* During the creation of a category, tick the box 'To weigh'.
.. image:: ../static/description/uom_categ_change_toweigh.png
:alt: Change the field 'To weigh' for every category
:width: 400
* You can set every product existing with the new 'To weigh' parameter
.. image:: ../static/description/uom_categ_button_toweigh.png
:alt: Set 'to weigh' in each product of this category
:width: 900

2
pos_to_weight_by_product_uom/readme/CONTRIBUTORS.rst

@ -0,0 +1,2 @@
* Quentin Dupont, GRAP <quentin.dupont@grap.coop> (http://www.grap.coop/)
* Sylvain LE GAL <https://twitter.com/legalsylvain>

30
pos_to_weight_by_product_uom/readme/DESCRIPTION.rst

@ -0,0 +1,30 @@
At the moment, when we create a new product and choose the unity of measure **kg**,
we have to tick the checkbox 'To Weigh With Scale' in the Point of Sale part.
We want to speed the process of creating a new product, avoiding filling manually this parameter.
This module adds the field **'To weigh'** in UOM categories (set to **false** by default).
.. image:: ../static/description/uom_categ_toweigh.png
:alt: Categories of unities of measure
:width: 900
**→** This field affects every unities contained in this category.
.. image:: ../static/description/uom_toweigh.png
:alt: Unities of measure with field 'To weigh'
:width: 900
**→** **AND** it is linked with the parameter **to_weight** in product.template used for example in the Point of Sale app.
.. image:: ../static/description/uom_pos_change_toweigh_checked.png
:alt: Change the field 'to weigh' for every product
:width: 300
* You **CAN'T** change 'To weigh' for one UOM → You have to change in Category and affect all UOM of this category.
.. image:: ../static/description/uom_change_toweigh.png
:alt: Can't change the field 'to weigh' for one unity of measure
:width: 900

5
pos_to_weight_by_product_uom/readme/USAGE.rst

@ -0,0 +1,5 @@
You're able to change this field for a specific product (in tab Sales).
.. image:: ../static/description/uom_pos_change_toweigh.png
:alt: Change the field 'to weigh' for a specific
:width: 300

BIN
pos_to_weight_by_product_uom/static/description/icon.png

After

Width: 809  |  Height: 809  |  Size: 477 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_categ_button_toweigh.png

After

Width: 558  |  Height: 214  |  Size: 17 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_categ_change_toweigh.png

After

Width: 560  |  Height: 168  |  Size: 13 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_categ_toweigh.png

After

Width: 649  |  Height: 320  |  Size: 19 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_change_toweigh.png

After

Width: 780  |  Height: 272  |  Size: 22 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_pos_change_toweigh.png

After

Width: 286  |  Height: 185  |  Size: 9.9 KiB

BIN
pos_to_weight_by_product_uom/static/description/uom_pos_change_toweigh_checked.png

After

Width: 290  |  Height: 188  |  Size: 10 KiB

28
pos_to_weight_by_product_uom/views/view_uom_category.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Grap, OCA
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_uom_category_form" model="ir.ui.view">
<field name="model">uom.category</field>
<field name="inherit_id" ref="uom.product_uom_categ_form_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="to_weigh" />
<button name="action_recompute_to_weigh" string="Set 'to weigh' in each product of this category" type="object"/>
</field>
</field>
</record>
<record id="view_uom_category_tree" model="ir.ui.view">
<field name="model">uom.category</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="to_weigh" />
</tree>
</field>
</record>
</odoo>

27
pos_to_weight_by_product_uom/views/view_uom_uom.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Grap, OCA
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_uom_uom_form" model="ir.ui.view">
<field name="model">uom.uom</field>
<field name="inherit_id" ref="uom.product_uom_form_view"/>
<field name="arch" type="xml">
<field name="active" position="after">
<field name="to_weigh" />
</field>
</field>
</record>
<record id="view_uom_uom_tree" model="ir.ui.view">
<field name="model">uom.uom</field>
<field name="inherit_id" ref="uom.product_uom_tree_view"/>
<field name="arch" type="xml">
<field name="category_id" position="after">
<field name="to_weigh" />
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save