From 4c93dbb04d090f8a3ffe3f5c2f621f3d57fffd86 Mon Sep 17 00:00:00 2001 From: alfredo Date: Tue, 21 Oct 2014 12:22:41 +0200 Subject: [PATCH 01/65] [NEW product_variant_default_code] --- product_variant_default_code/__init__.py | 18 +++++ product_variant_default_code/__openerp__.py | 39 +++++++++ product_variant_default_code/i18n/es.po | 37 +++++++++ .../i18n/product_variant_default_code.pot | 37 +++++++++ .../models/__init__.py | 18 +++++ .../models/product.py | 80 +++++++++++++++++++ .../views/product_attribute_value_view.xml | 25 ++++++ .../views/product_view.xml | 15 ++++ 8 files changed, 269 insertions(+) create mode 100644 product_variant_default_code/__init__.py create mode 100644 product_variant_default_code/__openerp__.py create mode 100644 product_variant_default_code/i18n/es.po create mode 100644 product_variant_default_code/i18n/product_variant_default_code.pot create mode 100644 product_variant_default_code/models/__init__.py create mode 100644 product_variant_default_code/models/product.py create mode 100644 product_variant_default_code/views/product_attribute_value_view.xml create mode 100644 product_variant_default_code/views/product_view.xml diff --git a/product_variant_default_code/__init__.py b/product_variant_default_code/__init__.py new file mode 100644 index 000000000..c58ee95de --- /dev/null +++ b/product_variant_default_code/__init__.py @@ -0,0 +1,18 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import models diff --git a/product_variant_default_code/__openerp__.py b/product_variant_default_code/__openerp__.py new file mode 100644 index 000000000..3e2a0f02b --- /dev/null +++ b/product_variant_default_code/__openerp__.py @@ -0,0 +1,39 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +{ + "name": "Product Variant Default Code", + "version": "1.0", + "author": "OdooMRP team", + "category": "Product", + "website": "http://www.odoomrp.com", + "description": """ + This module adds: + + 1.- In 'product.attribute.value' object is added the new field + 'Attribute Code'. + + 2.- Reference code field of product is calculated automatically, taking as + the value of the new field 'Attribute Code'. + """, + "depends": ['product', + ], + "data": ['views/product_attribute_value_view.xml', + 'views/product_view.xml', + ], + "installable": True +} diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po new file mode 100644 index 000000000..96ec8a0c9 --- /dev/null +++ b/product_variant_default_code/i18n/es.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-12 16:00+0000\n" +"PO-Revision-Date: 2014-11-12 17:02+0100\n" +"Last-Translator: Alfredo \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "Código atributo" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Producto" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: product_variant_default_code +#: field:product.template,template_default_code:0 +msgid "Template Internal Reference" +msgstr "Referencia interna plantilla" + diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot new file mode 100644 index 000000000..e0d93ebad --- /dev/null +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-11-12 16:00+0000\n" +"PO-Revision-Date: 2014-11-12 16:00+0000\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: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,template_default_code:0 +msgid "Template Internal Reference" +msgstr "" + diff --git a/product_variant_default_code/models/__init__.py b/product_variant_default_code/models/__init__.py new file mode 100644 index 000000000..80e209b41 --- /dev/null +++ b/product_variant_default_code/models/__init__.py @@ -0,0 +1,18 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import product diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py new file mode 100644 index 000000000..f1f30def1 --- /dev/null +++ b/product_variant_default_code/models/product.py @@ -0,0 +1,80 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from openerp import models, fields, api + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + default_code = fields.Char(string='Internal Reference') + template_default_code = fields.Char(string='Template Internal Reference') + + @api.one + def write(self, vals): + product_obj = self.env['product.product'] + result = super(ProductTemplate, self).write(vals) + if 'template_default_code' in vals: + cond = [('product_tmpl_id', '=', self.id)] + products = product_obj.search(cond) + for product in products: + my_code = False + for attribute_value in product.attribute_value_ids: + if not my_code: + my_code = attribute_value.attribute_code + else: + my_code += '/' + attribute_value.attribute_code + default_code = (self.template_default_code, '') + if my_code: + default_code += ' - ' + my_code + product.default_code = default_code + return result + + +class ProductProduct(models.Model): + _inherit = 'product.product' + + @api.model + def create(self, values): + product_tmpl_id = values.get('product_tmpl_id', False) + attribute_value_ids = values.get('attribute_value_ids', False) + product = super(ProductProduct, self).create(values) + if product_tmpl_id and attribute_value_ids: + my_code = False + for attribute_value in product.attribute_value_ids: + if attribute_value.attribute_code: + if not my_code: + my_code = attribute_value.attribute_code + else: + my_code += '/' + attribute_value.attribute_code + default_code = product.template_default_code + if my_code: + default_code += ' - ' + my_code + product.default_code = default_code + return product + + +class ProductAttributeValue(models.Model): + _inherit = 'product.attribute.value' + + @api.onchange('name') + def onchange_name(self): + if self.name: + self.attribute_code = self.name[0:1] + + attribute_code = fields.Char( + string='Attribute Code', default=onchange_name) diff --git a/product_variant_default_code/views/product_attribute_value_view.xml b/product_variant_default_code/views/product_attribute_value_view.xml new file mode 100644 index 000000000..09702c583 --- /dev/null +++ b/product_variant_default_code/views/product_attribute_value_view.xml @@ -0,0 +1,25 @@ + + + + + variants.template.tree.view.inh.variantdefaultcode + product.attribute.value + + + + + + + + + variants.tree.view.inh.variantdefaultcode + product.attribute.value + + + + + + + + + diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml new file mode 100644 index 000000000..8b77d4777 --- /dev/null +++ b/product_variant_default_code/views/product_view.xml @@ -0,0 +1,15 @@ + + + + + product.template.only.form.view.inh.variantdefaultcode + product.template + + + + + + + + + From 6cf04577391d8db582402a176e9aff8d99d37574 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 18 Nov 2014 01:19:26 +0100 Subject: [PATCH 02/65] [FIX] product_variant_default_code: Fixed some problems and enhance code --- product_variant_default_code/i18n/es.po | 17 +++----- .../i18n/product_variant_default_code.pot | 13 ++----- .../models/product.py | 39 +++++++------------ .../views/product_view.xml | 3 +- 4 files changed, 26 insertions(+), 46 deletions(-) diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 96ec8a0c9..60d465314 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -21,17 +21,12 @@ msgid "Attribute Code" msgstr "Código atributo" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product -msgid "Product" -msgstr "Producto" +#: field:product.template,default_prefix:0 +msgid "Reference prefix" +msgstr "Prefijo de la referencia" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Plantilla de producto" - -#. module: product_variant_default_code -#: field:product.template,template_default_code:0 -msgid "Template Internal Reference" -msgstr "Referencia interna plantilla" +#: help:product.template,default_prefix:0 +msgid "Prefix for using when building internal references for the variants generated from this template" +msgstr "Prefijo para usar cuando se construyen las referencias internas para las variantes generadas desde esta plantilla" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index e0d93ebad..dec4139b4 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -21,17 +21,12 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product -msgid "Product" +#: field:product.template,default_prefix:0 +msgid "Reference prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "" - -#. module: product_variant_default_code -#: field:product.template,template_default_code:0 -msgid "Template Internal Reference" +#: help:product.template,default_prefix:0 +msgid "Prefix for using when building internal references for the variants generated from this template" msgstr "" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index f1f30def1..9d7ec0051 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -21,26 +21,23 @@ class ProductTemplate(models.Model): _inherit = 'product.template' - default_code = fields.Char(string='Internal Reference') - template_default_code = fields.Char(string='Template Internal Reference') + default_prefix = fields.Char( + string='Reference prefix', + help='Prefix for using when building internal references for the ' + 'variants generated from this template') @api.one def write(self, vals): product_obj = self.env['product.product'] result = super(ProductTemplate, self).write(vals) - if 'template_default_code' in vals: + if 'default_prefix' in vals: cond = [('product_tmpl_id', '=', self.id)] products = product_obj.search(cond) for product in products: - my_code = False - for attribute_value in product.attribute_value_ids: - if not my_code: - my_code = attribute_value.attribute_code - else: - my_code += '/' + attribute_value.attribute_code - default_code = (self.template_default_code, '') - if my_code: - default_code += ' - ' + my_code + default_code = self.default_prefix or '' + for value in product.attribute_value_ids: + if value.attribute_code: + default_code += '/%s' % value.attribute_code product.default_code = default_code return result @@ -50,20 +47,12 @@ class ProductProduct(models.Model): @api.model def create(self, values): - product_tmpl_id = values.get('product_tmpl_id', False) - attribute_value_ids = values.get('attribute_value_ids', False) product = super(ProductProduct, self).create(values) - if product_tmpl_id and attribute_value_ids: - my_code = False - for attribute_value in product.attribute_value_ids: - if attribute_value.attribute_code: - if not my_code: - my_code = attribute_value.attribute_code - else: - my_code += '/' + attribute_value.attribute_code - default_code = product.template_default_code - if my_code: - default_code += ' - ' + my_code + default_code = product.default_prefix or '' + for value in product.attribute_value_ids: + if value.attribute_code: + default_code += '/%s' % value.attribute_code + if default_code: product.default_code = default_code return product diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 8b77d4777..852b84e57 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -7,7 +7,8 @@ - + From 47c3a269f63559616744cd6547b20f013e9406e5 Mon Sep 17 00:00:00 2001 From: alfredo Date: Thu, 20 Nov 2014 16:04:46 +0100 Subject: [PATCH 03/65] [IMP product_variant_default_code] --- product_variant_default_code/models/product.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 9d7ec0051..d970f85f5 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -67,3 +67,10 @@ def onchange_name(self): attribute_code = fields.Char( string='Attribute Code', default=onchange_name) + + @api.model + def create(self, values): + if 'attribute_code' not in values: + values['attribute_code'] = values.get('name', '')[0:1] + value = super(ProductAttributeValue, self).create(values) + return value From 646e2035d5e9881bf602498a7fe1a5b58121bc9f Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 29 Dec 2014 14:53:03 +0800 Subject: [PATCH 04/65] setup a mask to control the output of variant default code --- product_variant_default_code/README.rst | 22 ++++ product_variant_default_code/__openerp__.py | 16 +-- .../models/product.py | 115 +++++++++++++++--- .../views/product_view.xml | 4 +- 4 files changed, 126 insertions(+), 31 deletions(-) create mode 100644 product_variant_default_code/README.rst diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst new file mode 100644 index 000000000..211642547 --- /dev/null +++ b/product_variant_default_code/README.rst @@ -0,0 +1,22 @@ +Product Variant Default Code(product_variant_default_code) +----------------------------------------------------------- + +#. In 'product.template' object new field 'Variant reference mask' is added + +#. In 'product.attribute.value' object new field 'Attribute Code' is added. + +#. When creating a new product template without specifying the 'Variant reference mask', a default value for 'Variant reference mask' will be automatically generated according to the attribute line settings on the product template. The mask will then be used as an instruction to generate default code of each product variant of the product template with the corresponding Attribute Code (of the attribute value) inserted. Besides the default value, 'Variant refernce mask' can be configure to your liking, make sure puting Attribut Name inside '[]' mark. + +#. Example: + +Creating a product named 'A' with two attributes, 'Size' and 'Color':: + + Product: A + Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, 'r', 'y', 'b' are the corresponding code + Size: L (l), XL(x) + +The automatically generated default value for the Variant reference mask will be `[Color]-[Size]` and then the 'default code' on the variants will be something like `r-l` `b-l` `r-x` ... + +If you like, you can change the mask value whatever you like. You can even have the attribute name appear more than once in the mask such as , `fancyA/[Size]~[Color]~[Size]`, when saved the default code on variants will be something like `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL") + + diff --git a/product_variant_default_code/__openerp__.py b/product_variant_default_code/__openerp__.py index 3e2a0f02b..3528f6925 100644 --- a/product_variant_default_code/__openerp__.py +++ b/product_variant_default_code/__openerp__.py @@ -17,19 +17,13 @@ ############################################################################## { "name": "Product Variant Default Code", - "version": "1.0", - "author": "OdooMRP team", + "version": "2.0", + "author": "Shine IT(http://www.openerp.cn), OdooMRP team", + "contributors": [ + "Tony Gu", + ], "category": "Product", "website": "http://www.odoomrp.com", - "description": """ - This module adds: - - 1.- In 'product.attribute.value' object is added the new field - 'Attribute Code'. - - 2.- Reference code field of product is calculated automatically, taking as - the value of the new field 'Attribute Code'. - """, "depends": ['product', ], "data": ['views/product_attribute_value_view.xml', diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index d970f85f5..310f00888 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -15,30 +15,106 @@ # along with this program. If not, see http://www.gnu.org/licenses/. # ############################################################################## -from openerp import models, fields, api +from openerp import models, fields, api, _ +from openerp.exceptions import except_orm +import re +from string import Template +from collections import defaultdict + +DEFAULT_REFERENCE_SEPERATOR = '-' +PLACE_HOLDER_4_MISSING_VALUE = '/' + + +class ReferenceMask(Template): + pattern = r'''\[(?: + (?P\[) | + (?P[^\]]+?)\] | + (?P[^\]]+?)\] | + (?P) + )''' + + +def extract_token(s): + pattern = re.compile(r'\[([^\]]+?)\]') + return set(pattern.findall(s)) + + +def sanitize_reference_mask(product, mask): + tokens = extract_token(mask) + attribute_names = set() + for line in product.attribute_line_ids: + attribute_names.add(line.attribute_id.name) + if not tokens.issubset(attribute_names): + raise except_orm(_('Error'), _('Found unrecognized attribute name in ' + '"Variant Reference Mask"')) + + +def render_default_code(product, mask): + product_attrs = defaultdict(str) + reference_mask = ReferenceMask(mask) + for value in product.attribute_value_ids: + if value.attribute_code: + product_attrs[value.attribute_id.name] += value.attribute_code + all_attrs = extract_token(mask) + missing_attrs = all_attrs - set(product_attrs.keys()) + missing = dict.fromkeys(missing_attrs, PLACE_HOLDER_4_MISSING_VALUE) + product_attrs.update(missing) + default_code = reference_mask.safe_substitute(product_attrs) + product.default_code = default_code class ProductTemplate(models.Model): _inherit = 'product.template' - default_prefix = fields.Char( - string='Reference prefix', - help='Prefix for using when building internal references for the ' - 'variants generated from this template') + reference_mask = fields.Char( + string='Variant reference mask', + help='Reference mask for building internal references of a ' + 'variant generated from this template.\n' + + 'Example:\n' + 'A product named ABC with 2 attributes: Size and Color:\n' + + 'Product: ABC\n' + 'Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are ' + 'the attribute value, `r`, `y`, `b` are the corresponding code\n' + 'Size: L (l), XL(x)\n' + + 'When setting Variant reference mask to `[Color]-[Size]`, the ' + 'default code on the variants will be something like `r-l` ' + '`b-l` `r-x` ...\n' + + 'If you like, You can even have the attribute name appear more' + ' than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]`' + ' When saved, the default code on variants will be something like' + ' `fancyA/l~r~l` (for variant with Color "Red" and Size "L") ' + '`fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\n' + + 'Note: make sure characters "[,]" do not appear in your ' + 'attribute name') + + @api.model + def create(self, vals): + product = self.new(vals) + if not vals.get('reference_mask') and product.attribute_line_ids: + attribute_names = [] + for line in product.attribute_line_ids: + attribute_names.append("[{}]".format(line.attribute_id.name)) + default_mask = DEFAULT_REFERENCE_SEPERATOR.join(attribute_names) + vals['reference_mask'] = default_mask + elif vals.get('reference_mask'): + sanitize_reference_mask(product, vals['reference_mask']) + return super(ProductTemplate, self).create(vals) @api.one def write(self, vals): - product_obj = self.env['product.product'] result = super(ProductTemplate, self).write(vals) - if 'default_prefix' in vals: + if vals.get('reference_mask'): + sanitize_reference_mask(self, vals['reference_mask']) + product_obj = self.env['product.product'] cond = [('product_tmpl_id', '=', self.id)] products = product_obj.search(cond) for product in products: - default_code = self.default_prefix or '' - for value in product.attribute_value_ids: - if value.attribute_code: - default_code += '/%s' % value.attribute_code - product.default_code = default_code + render_default_code(product, vals['reference_mask']) return result @@ -48,15 +124,18 @@ class ProductProduct(models.Model): @api.model def create(self, values): product = super(ProductProduct, self).create(values) - default_code = product.default_prefix or '' - for value in product.attribute_value_ids: - if value.attribute_code: - default_code += '/%s' % value.attribute_code - if default_code: - product.default_code = default_code + if product.reference_mask: + render_default_code(product, product.reference_mask) return product +class ProductAttribute(models.Model): + _inherit = 'product.attribute' + + _sql_constraints = [ + ('number_uniq', 'unique(name)', _('Attribute Name must be unique!'))] + + class ProductAttributeValue(models.Model): _inherit = 'product.attribute.value' diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 852b84e57..a445854a9 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -7,8 +7,8 @@ - + From 57b6d142ee6311059cc6c2565f38b4e96b9fccaf Mon Sep 17 00:00:00 2001 From: alfredo Date: Fri, 16 Jan 2015 12:14:02 +0100 Subject: [PATCH 05/65] [FIX product_variant_default_code] --- product_variant_default_code/README.rst | 35 ++++++--- product_variant_default_code/i18n/es.po | 73 +++++++++++++++++-- .../i18n/product_variant_default_code.pot | 59 +++++++++++++-- .../models/product.py | 49 +++++++++++-- .../views/product_view.xml | 10 +++ 5 files changed, 194 insertions(+), 32 deletions(-) diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index 211642547..cbc999b9d 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -1,22 +1,37 @@ Product Variant Default Code(product_variant_default_code) ----------------------------------------------------------- -#. In 'product.template' object new field 'Variant reference mask' is added +In 'product.template' object new field 'Variant reference mask' is added -#. In 'product.attribute.value' object new field 'Attribute Code' is added. +In 'product.attribute.value' object new field 'Attribute Code' is added. -#. When creating a new product template without specifying the 'Variant reference mask', a default value for 'Variant reference mask' will be automatically generated according to the attribute line settings on the product template. The mask will then be used as an instruction to generate default code of each product variant of the product template with the corresponding Attribute Code (of the attribute value) inserted. Besides the default value, 'Variant refernce mask' can be configure to your liking, make sure puting Attribut Name inside '[]' mark. +When creating a new product template without specifying the 'Variant reference +mask', a default value for 'Variant reference mask' will be automatically +generated according to the attribute line settings on the product template. +The mask will then be used as an instruction to generate default code of each +product variant of the product template with the corresponding Attribute Code +(of the attribute value) inserted. Besides the default value, 'Variant +reference mask' can be configure to your liking, make sure puting Attribut Name +inside '[]' mark. -#. Example: +Example: Creating a product named 'A' with two attributes, 'Size' and 'Color':: Product: A - Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, 'r', 'y', 'b' are the corresponding code + Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute + value, 'r', 'y', 'b' are the corresponding code Size: L (l), XL(x) -The automatically generated default value for the Variant reference mask will be `[Color]-[Size]` and then the 'default code' on the variants will be something like `r-l` `b-l` `r-x` ... - -If you like, you can change the mask value whatever you like. You can even have the attribute name appear more than once in the mask such as , `fancyA/[Size]~[Color]~[Size]`, when saved the default code on variants will be something like `fancyA/l~r~l` (for variant with Color "Red" and Size "L") `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL") - - +The automatically generated default value for the Variant reference mask will +be `[Color]-[Size]` and then the 'default code' on the variants will be +something like `r-l` `b-l` `r-x` ... + +If you like, you can change the mask value whatever you like. You can even have +the attribute name appear more than once in the mask such as , +`fancyA/[Size]~[Color]~[Size]`, when saved the default code on variants will be +something like `fancyA/l~r~l` (for variant with Color "Red" and Size "L") +`fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL"). + +when the code attribute is changed, it automatically regenerates the 'default +code'. diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 60d465314..4b0d337c7 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-12 16:00+0000\n" -"PO-Revision-Date: 2014-11-12 17:02+0100\n" +"POT-Creation-Date: 2015-01-21 11:56+0000\n" +"PO-Revision-Date: 2015-01-21 12:58+0100\n" "Last-Translator: Alfredo \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -21,12 +21,69 @@ msgid "Attribute Code" msgstr "Código atributo" #. module: product_variant_default_code -#: field:product.template,default_prefix:0 -msgid "Reference prefix" -msgstr "Prefijo de la referencia" +#: code:addons/product_variant_default_code/models/product.py:152 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "El nombre del atributo debe ser único!." #. module: product_variant_default_code -#: help:product.template,default_prefix:0 -msgid "Prefix for using when building internal references for the variants generated from this template" -msgstr "Prefijo para usar cuando se construyen las referencias internas para las variantes generadas desde esta plantilla" +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "Error" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "Encontrado un nombre de atribuco no reconocido en la \"Referencia máscara variante\"" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "Código manual" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Producto" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "Atributo de producto" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" +"Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\n" +"Ejemplo:\n" +"El producto llamado A con 2 atributos: tamaño y color:\n" +"Producto: ABC\n" +"Color: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\n" +"Tamaño: L (l), XL(x)\n" +"Al configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\n" +"Si lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\n" +"Nota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "Referencia máscara variante" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index dec4139b4..20e82fab8 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-11-12 16:00+0000\n" -"PO-Revision-Date: 2014-11-12 16:00+0000\n" +"POT-Creation-Date: 2015-01-21 11:56+0000\n" +"PO-Revision-Date: 2015-01-21 11:56+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -21,12 +21,59 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: field:product.template,default_prefix:0 -msgid "Reference prefix" +#: code:addons/product_variant_default_code/models/product.py:152 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: help:product.template,default_prefix:0 -msgid "Prefix for using when building internal references for the variants generated from this template" +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" msgstr "" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 310f00888..54b84b47d 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -21,7 +21,7 @@ from string import Template from collections import defaultdict -DEFAULT_REFERENCE_SEPERATOR = '-' +DEFAULT_REFERENCE_SEPARATOR = '-' PLACE_HOLDER_4_MISSING_VALUE = '/' @@ -99,7 +99,7 @@ def create(self, vals): attribute_names = [] for line in product.attribute_line_ids: attribute_names.append("[{}]".format(line.attribute_id.name)) - default_mask = DEFAULT_REFERENCE_SEPERATOR.join(attribute_names) + default_mask = DEFAULT_REFERENCE_SEPARATOR.join(attribute_names) vals['reference_mask'] = default_mask elif vals.get('reference_mask'): sanitize_reference_mask(product, vals['reference_mask']) @@ -107,20 +107,31 @@ def create(self, vals): @api.one def write(self, vals): + product_obj = self.env['product.product'] + if 'reference_mask' in vals and not vals['reference_mask']: + if self.attribute_line_ids: + attribute_names = [] + for line in self.attribute_line_ids: + attribute_names.append("[{}]".format( + line.attribute_id.name)) + default_mask = DEFAULT_REFERENCE_SEPARATOR.join( + attribute_names) + vals['reference_mask'] = default_mask result = super(ProductTemplate, self).write(vals) if vals.get('reference_mask'): - sanitize_reference_mask(self, vals['reference_mask']) - product_obj = self.env['product.product'] - cond = [('product_tmpl_id', '=', self.id)] + cond = [('product_tmpl_id', '=', self.id), + ('manual_code', '=', False)] products = product_obj.search(cond) for product in products: - render_default_code(product, vals['reference_mask']) + render_default_code(product, product.reference_mask) return result class ProductProduct(models.Model): _inherit = 'product.product' + manual_code = fields.Boolean(string='Manual code') + @api.model def create(self, values): product = super(ProductProduct, self).create(values) @@ -128,6 +139,11 @@ def create(self, values): render_default_code(product, product.reference_mask) return product + @api.one + @api.onchange('default_code') + def onchange_default_code(self): + self.manual_code = bool(self.default_code) + class ProductAttribute(models.Model): _inherit = 'product.attribute' @@ -139,10 +155,11 @@ class ProductAttribute(models.Model): class ProductAttributeValue(models.Model): _inherit = 'product.attribute.value' + @api.one @api.onchange('name') def onchange_name(self): if self.name: - self.attribute_code = self.name[0:1] + self.attribute_code = self.name[0:2] attribute_code = fields.Char( string='Attribute Code', default=onchange_name) @@ -150,6 +167,22 @@ def onchange_name(self): @api.model def create(self, values): if 'attribute_code' not in values: - values['attribute_code'] = values.get('name', '')[0:1] + values['attribute_code'] = values.get('name', '')[0:2] value = super(ProductAttributeValue, self).create(values) return value + + @api.one + def write(self, vals): + attribute_line_obj = self.env['product.attribute.line'] + product_obj = self.env['product.product'] + result = super(ProductAttributeValue, self).write(vals) + if 'attribute_code' in vals: + cond = [('attribute_id', '=', self.attribute_id.id)] + attribute_lines = attribute_line_obj.search(cond) + for line in attribute_lines: + cond = [('product_tmpl_id', '=', line.product_tmpl_id.id), + ('manual_code', '=', False)] + products = product_obj.search(cond) + for product in products: + render_default_code(product, product.reference_mask) + return result diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index a445854a9..041b4a5b2 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -12,5 +12,15 @@ + + product.normal.form.view.inh.variantdefaultcode + product.product + + + + + + + From 37f424ce444f2eb5fd3549f3e3bc3c0fd8c8f819 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 22 Feb 2015 05:18:57 +0100 Subject: [PATCH 06/65] [FIX] product_variant_default_code: Fix error when no reference mask is provided --- product_variant_default_code/__openerp__.py | 7 +++++-- product_variant_default_code/models/product.py | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/product_variant_default_code/__openerp__.py b/product_variant_default_code/__openerp__.py index 3528f6925..927de3fdf 100644 --- a/product_variant_default_code/__openerp__.py +++ b/product_variant_default_code/__openerp__.py @@ -18,9 +18,12 @@ { "name": "Product Variant Default Code", "version": "2.0", - "author": "Shine IT(http://www.openerp.cn), OdooMRP team", + "author": "OdooMRP team," + "Avanzosc," + "Serv. Tecnol. Avanzados - Pedro M. Baeza," + "Shine IT(http://www.openerp.cn)", "contributors": [ - "Tony Gu", + "Tony Gu ", ], "category": "Product", "website": "http://www.odoomrp.com", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 54b84b47d..eaf715cd1 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -123,7 +123,8 @@ def write(self, vals): ('manual_code', '=', False)] products = product_obj.search(cond) for product in products: - render_default_code(product, product.reference_mask) + if product.reference_mask: + render_default_code(product, product.reference_mask) return result @@ -184,5 +185,6 @@ def write(self, vals): ('manual_code', '=', False)] products = product_obj.search(cond) for product in products: - render_default_code(product, product.reference_mask) + if product.reference_mask: + render_default_code(product, product.reference_mask) return result From 0bb07de711c909c156383c14799f6182fd149836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Mozeti=C4=8D?= Date: Sat, 15 Aug 2015 18:53:19 +0200 Subject: [PATCH 07/65] Slovene translations of odoomrp modules --- product_variant_default_code/i18n/es.po | 34 ++++----- product_variant_default_code/i18n/fr.po | 81 ++++++++++++++++++++++ product_variant_default_code/i18n/it.po | 81 ++++++++++++++++++++++ product_variant_default_code/i18n/pt_BR.po | 81 ++++++++++++++++++++++ product_variant_default_code/i18n/ro.po | 81 ++++++++++++++++++++++ product_variant_default_code/i18n/sl.po | 81 ++++++++++++++++++++++ 6 files changed, 418 insertions(+), 21 deletions(-) create mode 100644 product_variant_default_code/i18n/fr.po create mode 100644 product_variant_default_code/i18n/it.po create mode 100644 product_variant_default_code/i18n/pt_BR.po create mode 100644 product_variant_default_code/i18n/ro.po create mode 100644 product_variant_default_code/i18n/sl.po diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 4b0d337c7..2154c92fa 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -1,19 +1,21 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code -# +# * product_variant_default_code +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-21 11:56+0000\n" -"PO-Revision-Date: 2015-01-21 12:58+0100\n" -"Last-Translator: Alfredo \n" -"Language-Team: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-09 10:50+0000\n" +"Last-Translator: Pedro M. Baeza \n" +"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code #: field:product.attribute.value,attribute_code:0 @@ -21,7 +23,7 @@ msgid "Attribute Code" msgstr "Código atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:152 +#: code:addons/product_variant_default_code/models/product.py:153 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -71,19 +73,9 @@ msgid "" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" "If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" -msgstr "" -"Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\n" -"Ejemplo:\n" -"El producto llamado A con 2 atributos: tamaño y color:\n" -"Producto: ABC\n" -"Color: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\n" -"Tamaño: L (l), XL(x)\n" -"Al configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\n" -"Si lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\n" -"Nota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" +msgstr "Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\nEjemplo:\nEl producto llamado A con 2 atributos: tamaño y color:\nProducto: ABC\nColor: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\nTamaño: L (l), XL(x)\nAl configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\nSi lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\nNota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" #. module: product_variant_default_code #: field:product.template,reference_mask:0 msgid "Variant reference mask" msgstr "Referencia máscara variante" - diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po new file mode 100644 index 000000000..3d17ceec4 --- /dev/null +++ b/product_variant_default_code/i18n/fr.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-09-10 16:43+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (http://www.transifex.com/oca/odoomrp-wip-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:153 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Article" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po new file mode 100644 index 000000000..7468f2a73 --- /dev/null +++ b/product_variant_default_code/i18n/it.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-09-10 16:43+0000\n" +"Last-Translator: <>\n" +"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:153 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Prodotto " + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Template prodotto" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po new file mode 100644 index 000000000..0d6b443f2 --- /dev/null +++ b/product_variant_default_code/i18n/pt_BR.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-10-20 14:37+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:153 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "Erro" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Produto" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Produto Modelo" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po new file mode 100644 index 000000000..afd639449 --- /dev/null +++ b/product_variant_default_code/i18n/ro.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-09-10 16:43+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:153 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Produs" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "Atribute produs" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Produs șablon" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po new file mode 100644 index 000000000..417ba2302 --- /dev/null +++ b/product_variant_default_code/i18n/sl.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-09-20 19:02+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: product_variant_default_code +#: field:product.attribute.value,attribute_code:0 +msgid "Attribute Code" +msgstr "Koda atributa" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:153 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "Naziv atributa mora biti unikaten!" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Error" +msgstr "Napaka" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:48 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" + +#. module: product_variant_default_code +#: field:product.product,manual_code:0 +msgid "Manual code" +msgstr "Ročna koda" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "Proizvod" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "Atribut proizvoda" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Predloga proizvoda" + +#. module: product_variant_default_code +#: help:product.template,reference_mask:0 +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "Masla sklica za gradnjo internih sklicev variante po tej predlogi.\nPrimer:\nProizvod z nazivom ABC z 2 atributoma: velikost in barva:\nProduct: ABC\nBarva: Rdeča(r), Rumena(y), Črna(b) #Rdeča, rumena, črna so vrednosti atributa, `r`, `y`, `b` so pripadajoče kode\nVelikost: L (l), XL(x)\nKo se nastavlja maska sklica variante na `[Barva]-[Velikost]`, je privzeta koda variant nekaj, kakor `r-l` `b-l` `r-x` ...\nČe želite, se lahko naziv atributa večkrat pojavlja v maski. Kot npr., `fancyA/[Velikost]~[Barva]~[Velikost]` Ob shranjevanju bo privzeta koda variant, nekaj kakor `fancyA/l~r~l` (za varianto z barvo \"Rdeča\" in velikostjo \"L\") `fancyA/x~y~x` (za varianto z barvo \"Rumena\" in velikostjo \"XL\")\nOpomba: znaki \"[,]\" se ne smejo pojavljati v nazivu atributa" + +#. module: product_variant_default_code +#: field:product.template,reference_mask:0 +msgid "Variant reference mask" +msgstr "Maska sklica variante" From 2c0141defd357c1b9715a79f4c51e350272f2ccc Mon Sep 17 00:00:00 2001 From: Zambu Date: Wed, 23 Dec 2015 08:30:29 +0100 Subject: [PATCH 08/65] [REF] product_variant_default_code: Modular programming on method render_default_code Separate the default code assignment in 2 steps, one obtains the code and the other set this value on product. Now is easier to extend this method. --- product_variant_default_code/models/product.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index eaf715cd1..f278d16ef 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -49,7 +49,7 @@ def sanitize_reference_mask(product, mask): '"Variant Reference Mask"')) -def render_default_code(product, mask): +def get_rendered_default_code(product, mask): product_attrs = defaultdict(str) reference_mask = ReferenceMask(mask) for value in product.attribute_value_ids: @@ -60,7 +60,11 @@ def render_default_code(product, mask): missing = dict.fromkeys(missing_attrs, PLACE_HOLDER_4_MISSING_VALUE) product_attrs.update(missing) default_code = reference_mask.safe_substitute(product_attrs) - product.default_code = default_code + return default_code + + +def render_default_code(product, mask): + product.default_code = get_rendered_default_code(product, mask) class ProductTemplate(models.Model): From 058176b5e6a4b855cc298d4ad3c71862285ad0bc Mon Sep 17 00:00:00 2001 From: David Vidal Date: Tue, 25 Jul 2017 18:23:36 +0200 Subject: [PATCH 09/65] [MIG] product_variant_default_code: Migration to 10.0 --- product_variant_default_code/README.rst | 127 ++++++++++++++---- product_variant_default_code/__init__.py | 17 +-- product_variant_default_code/__manifest__.py | 25 ++++ product_variant_default_code/__openerp__.py | 36 ----- .../i18n/product_variant_default_code.pot | 79 ----------- .../models/__init__.py | 17 +-- .../models/product.py | 72 ++++------ .../tests/__init__.py | 3 + .../tests/test_variant_default_code.py | 125 +++++++++++++++++ .../views/product_attribute_value_view.xml | 23 ++-- .../views/product_view.xml | 28 ++-- 11 files changed, 309 insertions(+), 243 deletions(-) create mode 100644 product_variant_default_code/__manifest__.py delete mode 100644 product_variant_default_code/__openerp__.py delete mode 100644 product_variant_default_code/i18n/product_variant_default_code.pot create mode 100644 product_variant_default_code/tests/__init__.py create mode 100644 product_variant_default_code/tests/test_variant_default_code.py diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index cbc999b9d..e5abe94dc 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -1,37 +1,112 @@ -Product Variant Default Code(product_variant_default_code) ------------------------------------------------------------ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 -In 'product.template' object new field 'Variant reference mask' is added +============================ +Product Variant Default Code +============================ -In 'product.attribute.value' object new field 'Attribute Code' is added. +This module allows to define a reference mask on the product templates so the +variants references are automatically set. For example: -When creating a new product template without specifying the 'Variant reference -mask', a default value for 'Variant reference mask' will be automatically -generated according to the attribute line settings on the product template. -The mask will then be used as an instruction to generate default code of each -product variant of the product template with the corresponding Attribute Code -(of the attribute value) inserted. Besides the default value, 'Variant -reference mask' can be configure to your liking, make sure puting Attribut Name -inside '[]' mark. +- Product template: Jacket +- Attributes: + - Color: White, Black + - Size: M, L +- Reference mask: `JKT01-[Color]-[Size]` + +- Reference on variants: + + - `JKT01-Wh-M` Jacket White M + - `JKT01-Bl-M` Jacket Black M + - `JKT01-Wh-L` Jacket White L + - `JKT01-Bl-L` Jacket Black L + +Configuration +============= + +To set the reference mask up on any product template 'Variant reference mask' +new field. + +When creating a new product template without specifying the *Variant reference +mask*, a default value for *Variant reference mask* will be automatically +generated according to the attribute line settings on the product template (if +any). The mask will then be used as an instruction to generate default code of +each product variant of the product template with the corresponding *Attribute +Code* (of the attribute value) inserted. Besides the default value, *Variant +reference mask* can be configured to your liking, make sure putting the +*Attribute Name* inside `[]` marks (it is case sensitive). Example: -Creating a product named 'A' with two attributes, 'Size' and 'Color':: +Creating a product named *Jacket* with two attributes, *Size* and *Color*:: - Product: A - Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute - value, 'r', 'y', 'b' are the corresponding code - Size: L (l), XL(x) + Product: Jacket + Color: Black(Bl), White(Wh) # Black and White are the attribute values; + 'Bl' and 'Wh' are the corresponding codes + Size: L (L), XL(XL) The automatically generated default value for the Variant reference mask will -be `[Color]-[Size]` and then the 'default code' on the variants will be -something like `r-l` `b-l` `r-x` ... +be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, +`Wh-L`, `Bl-XL` and `Wh-XL`. + +The mask value can be fully custumizedwhatever you like. You can even have +the attribute name appear more than once in the mask such as, +`Jacket/[Size]~[Color]~[Size]`, and the generated code on variants will be +something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). + +When the code attribute is changed, it automatically regenerates the 'default +code' on all variants affected. + +Avoiding mask in variants +------------------------- + +You can avoid this behavior or force a manual default_code on variant. To do +so, go to *Product Variants > [any variant you want to set up]* and set +manually its reference code. The field `manual code` will be set to on and the +variant internal reference will no longer be changed by this module. + +Unset `manual code` and the reference code will be unlocked again. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/137/10.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Alfredo de la Fuente +* Pedro M. Baeza +* Tony Gu +* David Vidal + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. -If you like, you can change the mask value whatever you like. You can even have -the attribute name appear more than once in the mask such as , -`fancyA/[Size]~[Color]~[Size]`, when saved the default code on variants will be -something like `fancyA/l~r~l` (for variant with Color "Red" and Size "L") -`fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL"). +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. -when the code attribute is changed, it automatically regenerates the 'default -code'. +To contribute to this module, please visit https://odoo-community.org. diff --git a/product_variant_default_code/__init__.py b/product_variant_default_code/__init__.py index c58ee95de..21ff7c22f 100644 --- a/product_variant_default_code/__init__.py +++ b/product_variant_default_code/__init__.py @@ -1,18 +1,3 @@ # -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## + from . import models diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py new file mode 100644 index 000000000..3a5550b18 --- /dev/null +++ b/product_variant_default_code/__manifest__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Copyright 2014 AvancOSC - Alfredo de la Fuente +# Copyright 2014 Tecnativa - Pedro M. Baeza +# Copyright 2014 Shine IT - Tony Gu +# Copyright 2017 Tecnativa - David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + 'name': 'Product Variant Default Code', + 'version': '10.0.1.0.0', + 'author': 'AvancOSC,' + 'Shine IT,' + 'Tecnativa,' + 'Odoo Community Association (OCA)', + 'website': 'https://odoo-community.org/', + 'license': 'AGPL-3', + 'category': 'Product', + 'depends': [ + 'product', + ], + 'data': [ + 'views/product_attribute_value_view.xml', + 'views/product_view.xml', + ], + 'installable': True +} diff --git a/product_variant_default_code/__openerp__.py b/product_variant_default_code/__openerp__.py deleted file mode 100644 index 927de3fdf..000000000 --- a/product_variant_default_code/__openerp__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -{ - "name": "Product Variant Default Code", - "version": "2.0", - "author": "OdooMRP team," - "Avanzosc," - "Serv. Tecnol. Avanzados - Pedro M. Baeza," - "Shine IT(http://www.openerp.cn)", - "contributors": [ - "Tony Gu ", - ], - "category": "Product", - "website": "http://www.odoomrp.com", - "depends": ['product', - ], - "data": ['views/product_attribute_value_view.xml', - 'views/product_view.xml', - ], - "installable": True -} diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot deleted file mode 100644 index 20e82fab8..000000000 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ /dev/null @@ -1,79 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * product_variant_default_code -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-01-21 11:56+0000\n" -"PO-Revision-Date: 2015-01-21 11:56+0000\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: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 -msgid "Attribute Code" -msgstr "" - -#. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:152 -#: sql_constraint:product.attribute:0 -#, python-format -msgid "Attribute Name must be unique!" -msgstr "" - -#. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" -msgstr "" - -#. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" -msgstr "" - -#. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product -msgid "Product" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute -msgid "Product Attribute" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "" - -#. module: product_variant_default_code -#: help:product.template,reference_mask:0 -msgid "Reference mask for building internal references of a variant generated from this template.\n" -"Example:\n" -"A product named ABC with 2 attributes: Size and Color:\n" -"Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" -"Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" -"Note: make sure characters \"[,]\" do not appear in your attribute name" -msgstr "" - -#. module: product_variant_default_code -#: field:product.template,reference_mask:0 -msgid "Variant reference mask" -msgstr "" - diff --git a/product_variant_default_code/models/__init__.py b/product_variant_default_code/models/__init__.py index 80e209b41..ca4e74d45 100644 --- a/product_variant_default_code/models/__init__.py +++ b/product_variant_default_code/models/__init__.py @@ -1,18 +1,3 @@ # -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## + from . import product diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index f278d16ef..7cd56eb20 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -1,22 +1,12 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from openerp import models, fields, api, _ -from openerp.exceptions import except_orm +# -*- coding: utf-8 -*- +# Copyright 2014 AvancOSC - Alfredo de la Fuente +# Copyright 2014 Tecnativa - Pedro M. Baeza +# Copyright 2014 Shine IT - Tony Gu +# Copyright 2017 Tecnativa - David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models +from odoo.exceptions import UserError import re from string import Template from collections import defaultdict @@ -45,8 +35,8 @@ def sanitize_reference_mask(product, mask): for line in product.attribute_line_ids: attribute_names.add(line.attribute_id.name) if not tokens.issubset(attribute_names): - raise except_orm(_('Error'), _('Found unrecognized attribute name in ' - '"Variant Reference Mask"')) + raise UserError(_('Found unrecognized attribute name in "Variant ' + 'Reference Mask"')) def get_rendered_default_code(product, mask): @@ -109,7 +99,6 @@ def create(self, vals): sanitize_reference_mask(product, vals['reference_mask']) return super(ProductTemplate, self).create(vals) - @api.one def write(self, vals): product_obj = self.env['product.product'] if 'reference_mask' in vals and not vals['reference_mask']: @@ -138,13 +127,12 @@ class ProductProduct(models.Model): manual_code = fields.Boolean(string='Manual code') @api.model - def create(self, values): - product = super(ProductProduct, self).create(values) + def create(self, vals): + product = super(ProductProduct, self).create(vals) if product.reference_mask: render_default_code(product, product.reference_mask) return product - @api.one @api.onchange('default_code') def onchange_default_code(self): self.manual_code = bool(self.default_code) @@ -160,35 +148,29 @@ class ProductAttribute(models.Model): class ProductAttributeValue(models.Model): _inherit = 'product.attribute.value' - @api.one @api.onchange('name') def onchange_name(self): if self.name: self.attribute_code = self.name[0:2] attribute_code = fields.Char( - string='Attribute Code', default=onchange_name) + string='Attribute Code', + default=onchange_name, + ) @api.model - def create(self, values): - if 'attribute_code' not in values: - values['attribute_code'] = values.get('name', '')[0:2] - value = super(ProductAttributeValue, self).create(values) - return value + def create(self, vals): + if 'attribute_code' not in vals: + vals['attribute_code'] = vals.get('name', '')[0:2] + return super(ProductAttributeValue, self).create(vals) - @api.one def write(self, vals): - attribute_line_obj = self.env['product.attribute.line'] - product_obj = self.env['product.product'] + if 'attribute_code' not in vals: + return super(ProductAttributeValue, self).write(vals) result = super(ProductAttributeValue, self).write(vals) - if 'attribute_code' in vals: - cond = [('attribute_id', '=', self.attribute_id.id)] - attribute_lines = attribute_line_obj.search(cond) - for line in attribute_lines: - cond = [('product_tmpl_id', '=', line.product_tmpl_id.id), - ('manual_code', '=', False)] - products = product_obj.search(cond) - for product in products: - if product.reference_mask: - render_default_code(product, product.reference_mask) + # Rewrite reference on all product variants affected + for product in self.mapped('product_ids').filtered( + lambda x: x.product_tmpl_id.reference_mask and not + x.manual_code): + render_default_code(product, product.reference_mask) return result diff --git a/product_variant_default_code/tests/__init__.py b/product_variant_default_code/tests/__init__.py new file mode 100644 index 000000000..eb572e14b --- /dev/null +++ b/product_variant_default_code/tests/__init__.py @@ -0,0 +1,3 @@ +# -*- encoding: utf-8 -*- + +from . import test_variant_default_code diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py new file mode 100644 index 000000000..3ed0cd1e1 --- /dev/null +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Tecnativa - David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.exceptions import UserError +from odoo.tests import common + + +class TestVariantDefaultCode(common.SavepointCase): + + @classmethod + def setUpClass(cls): + super(TestVariantDefaultCode, cls).setUpClass() + cls.attr1 = cls.env['product.attribute'].create({'name': 'TSize'}) + cls.attr2 = cls.env['product.attribute'].create({'name': 'TColor'}) + cls.attr1_1 = cls.env['product.attribute.value'].create({ + 'name': 'L', 'attribute_id': cls.attr1.id + }) + cls.attr1_2 = cls.env['product.attribute.value'].create({ + 'name': 'XL', 'attribute_id': cls.attr1.id + }) + cls.attr2_1 = cls.env['product.attribute.value'].create({ + 'name': 'Red', 'attribute_id': cls.attr2.id + }) + cls.attr2_2 = cls.env['product.attribute.value'].create({ + 'name': 'Green', 'attribute_id': cls.attr2.id + }) + cls.template1 = cls.env['product.template'].create({ + 'name': 'Jacket', + 'attribute_line_ids': [ + (0, 0, {'attribute_id': cls.attr1.id, + 'value_ids': [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])] + }), + (0, 0, {'attribute_id': cls.attr2.id, + 'value_ids': [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])] + }), + ], + }) + # This one with a preset reference mask + cls.template2 = cls.env['product.template'].create({ + 'name': 'Pants', + 'attribute_line_ids': [ + (0, 0, {'attribute_id': cls.attr1.id, + 'value_ids': [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])] + }), + (0, 0, {'attribute_id': cls.attr2.id, + 'value_ids': [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])] + }), + ], + 'reference_mask': 'P01/[TSize][TColor]', + }) + + def test_01_check_default_codes(self): + # As no mask was set, a default one should be: + self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') + # Check that variants code are generated according to rules + for product in self.template1.mapped('product_variant_ids'): + expected_code = (product.attribute_value_ids[0].name[0:2] + + '-' + product.attribute_value_ids[1].name[0:2]) + self.assertEqual(product.default_code, expected_code) + + def test_02_check_default_codes_preexistent_mask(self): + for product in self.template2.mapped('product_variant_ids'): + expected_code = ('P01/' + + product.attribute_value_ids[0].name[0:2] + + product.attribute_value_ids[1].name[0:2]) + self.assertEqual(product.default_code, expected_code) + + def test_03_reset_reference_mask_to_default(self): + # Erase the previous mask: 'P01/[TSize][TColor]' + self.template2.reference_mask = '' + # Mask is set to default now: + self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') + + def test_04_custom_reference_mask(self): + self.template1.reference_mask = u'JKTÜ/[TColor]#[TSize]' + for product in self.template1.mapped('product_variant_ids'): + expected_code = (u'JKTÜ/' + + product.attribute_value_ids[1].name[0:2] + '#' + + product.attribute_value_ids[0].name[0:2]) + self.assertEqual(product.default_code, expected_code) + + def test_05_manual_code(self): + self.assertEqual(self.template1.product_variant_ids[0].manual_code, + False) + self.template1.product_variant_ids[0].default_code = 'CANT-TOUCH-THIS' + self.template1.product_variant_ids[0].onchange_default_code() + self.assertEqual(self.template1.product_variant_ids[0].manual_code, + True) + # Set a reference mask and check the other variants are changed + self.template1.reference_mask = 'J[TColor][TSize]' + for product in self.template1.mapped('product_variant_ids')[1:]: + expected_code = ('J' + + product.attribute_value_ids[1].name[0:2] + + product.attribute_value_ids[0].name[0:2]) + self.assertEqual(product.default_code, expected_code) + # But this one isn't: + self.assertEqual(self.template1.product_variant_ids[0].default_code, + 'CANT-TOUCH-THIS') + + def test_06_attribute_value_code_change_propagation(self): + self.attr1_1.attribute_code = 'OO' + # Check that the change spreads to every product + for product in self.attr1_1.mapped('product_ids'): + self.assertTrue('OO' in product.default_code) + + def test_07_attribute_value_name_change(self): + self.attr1_1.name = 'Odoo' + self.attr1_1.onchange_name() + self.assertEqual(self.attr1_1.attribute_code, 'Od') + # Check that the change spreads to every product + for product in self.attr1_1.mapped('product_ids'): + self.assertTrue('Od' in product.default_code) + + def test_08_sanitize_exception(self): + with self.assertRaises(UserError): + self.env['product.template'].create({ + 'name': 'Shirt', + 'attribute_line_ids': [ + (0, 0, {'attribute_id': self.attr1.id, + 'value_ids': [(6, 0, [self.attr1_1.id])] + }), + ], + 'reference_mask': 'FAIL:[TSize][TWrongAttr]', + }) diff --git a/product_variant_default_code/views/product_attribute_value_view.xml b/product_variant_default_code/views/product_attribute_value_view.xml index 09702c583..b3e70ed28 100644 --- a/product_variant_default_code/views/product_attribute_value_view.xml +++ b/product_variant_default_code/views/product_attribute_value_view.xml @@ -1,18 +1,11 @@ - - - - variants.template.tree.view.inh.variantdefaultcode - product.attribute.value - - - - - + + + + + variants.tree.view.inh.variantdefaultcode - - - variants.tree.view.inh.variantdefaultcode product.attribute.value @@ -21,5 +14,5 @@ - - + + diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 041b4a5b2..15b037587 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -1,19 +1,27 @@ - - - - product.template.only.form.view.inh.variantdefaultcode + + + + + product.template.only.form.view.inh.variantdefaultcode + product.template - + + attrs="{'invisible': + [('attribute_line_ids', '=', [])]}"/> - - product.normal.form.view.inh.variantdefaultcode + + + product.normal.form.view.inh.variantdefaultcode + product.product @@ -22,5 +30,5 @@ - - + + From 215166fb984b5f99267becbfed9baa5331a173ae Mon Sep 17 00:00:00 2001 From: David Vidal Date: Thu, 14 Sep 2017 10:36:29 +0200 Subject: [PATCH 10/65] [IMP] Attribute code integration --- product_variant_default_code/README.rst | 5 ++ product_variant_default_code/__manifest__.py | 1 + product_variant_default_code/i18n/es.po | 64 ++++++++++++------- product_variant_default_code/i18n/fr.po | 2 +- product_variant_default_code/i18n/it.po | 2 +- product_variant_default_code/i18n/pt_BR.po | 2 +- product_variant_default_code/i18n/ro.po | 2 +- product_variant_default_code/i18n/sl.po | 2 +- .../models/product.py | 38 ++++++++--- .../tests/test_variant_default_code.py | 20 +++++- .../views/product_attribute_value_view.xml | 2 +- .../views/product_attribute_view.xml | 28 ++++++++ 12 files changed, 128 insertions(+), 40 deletions(-) create mode 100644 product_variant_default_code/views/product_attribute_view.xml diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index e5abe94dc..b7219ce6d 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -58,6 +58,11 @@ something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). When the code attribute is changed, it automatically regenerates the 'default code' on all variants affected. +Aditionally, a product attribute can be set and so it will be appended to the +product `default_code`. In the first example, setting a `Color` code to `CO` +would give `default_code` like this: `COBl-L`, `COWh-L`, `COBl-XL` and +`COWh-XL`. + Avoiding mask in variants ------------------------- diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 3a5550b18..3aaea16e5 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -19,6 +19,7 @@ ], 'data': [ 'views/product_attribute_value_view.xml', + 'views/product_attribute_view.xml', 'views/product_view.xml', ], 'installable': True diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 2154c92fa..4dff391c9 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -1,48 +1,48 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code -# -# Translators: +# * product_variant_default_code +# msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-10-09 10:50+0000\n" -"Last-Translator: Pedro M. Baeza \n" -"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" +"POT-Creation-Date: 2017-09-14 08:33+0000\n" +"PO-Revision-Date: 2017-09-14 10:34+0200\n" +"Last-Translator: David \n" +"Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" "Language: es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.8.7.1\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" -msgstr "Código atributo" +msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: code:addons/product_variant_default_code/models/product.py:151 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "El nombre del atributo debe ser único!." #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" -msgstr "Error" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "Código de valor de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "Encontrado un nombre de atribuco no reconocido en la \"Referencia máscara variante\"" #. module: product_variant_default_code -#: field:product.product,manual_code:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_delivery_carrier_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code msgid "Manual code" msgstr "Código manual" @@ -62,7 +62,9 @@ msgid "Product Template" msgstr "Plantilla de producto" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_delivery_carrier_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -73,9 +75,25 @@ msgid "" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" "If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" -msgstr "Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\nEjemplo:\nEl producto llamado A con 2 atributos: tamaño y color:\nProducto: ABC\nColor: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\nTamaño: L (l), XL(x)\nAl configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\nSi lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\nNota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" +msgstr "" +"Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\n" +"Ejemplo:\n" +"El producto llamado A con 2 atributos: tamaño y color:\n" +"Producto: ABC\n" +"Color: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\n" +"Tamaño: L (l), XL(x)\n" +"Al configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\n" +"Si lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\n" +"Nota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_delivery_carrier_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" -msgstr "Referencia máscara variante" +msgstr "Máscara de referencia para la variante" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index 3d17ceec4..7e1704bc9 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: field:product.attribute.value,code:0 msgid "Attribute Code" msgstr "" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 7468f2a73..aa2fc2960 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: field:product.attribute.value,code:0 msgid "Attribute Code" msgstr "" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index 0d6b443f2..aff99a45b 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: field:product.attribute.value,code:0 msgid "Attribute Code" msgstr "" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index afd639449..ab665c0fd 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: field:product.attribute.value,code:0 msgid "Attribute Code" msgstr "" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index 417ba2302..6dc98164b 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: product_variant_default_code -#: field:product.attribute.value,attribute_code:0 +#: field:product.attribute.value,code:0 msgid "Attribute Code" msgstr "Koda atributa" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 7cd56eb20..dfc0c5d64 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -43,8 +43,10 @@ def get_rendered_default_code(product, mask): product_attrs = defaultdict(str) reference_mask = ReferenceMask(mask) for value in product.attribute_value_ids: - if value.attribute_code: - product_attrs[value.attribute_id.name] += value.attribute_code + if value.attribute_id.code: + product_attrs[value.attribute_id.name] += value.attribute_id.code + if value.code: + product_attrs[value.attribute_id.name] += value.code all_attrs = extract_token(mask) missing_attrs = all_attrs - set(product_attrs.keys()) missing = dict.fromkeys(missing_attrs, PLACE_HOLDER_4_MISSING_VALUE) @@ -141,9 +143,25 @@ def onchange_default_code(self): class ProductAttribute(models.Model): _inherit = 'product.attribute' + code = fields.Char( + string='Attribute Code', + ) + _sql_constraints = [ ('number_uniq', 'unique(name)', _('Attribute Name must be unique!'))] + def write(self, vals): + if 'code' not in vals: + return super(ProductAttribute, self).write(vals) + result = super(ProductAttribute, self).write(vals) + # Rewrite reference on all product variants affected + for product in self.mapped('attribute_line_ids').mapped( + 'product_tmpl_id').mapped('product_variant_ids').filtered( + lambda x: x.product_tmpl_id.reference_mask and not + x.manual_code): + render_default_code(product, product.reference_mask) + return result + class ProductAttributeValue(models.Model): _inherit = 'product.attribute.value' @@ -151,26 +169,28 @@ class ProductAttributeValue(models.Model): @api.onchange('name') def onchange_name(self): if self.name: - self.attribute_code = self.name[0:2] + self.code = self.name[0:2] - attribute_code = fields.Char( - string='Attribute Code', + code = fields.Char( + string='Attribute Value Code', default=onchange_name, + oldname='attribute_code', ) @api.model def create(self, vals): - if 'attribute_code' not in vals: - vals['attribute_code'] = vals.get('name', '')[0:2] + if 'code' not in vals: + vals['code'] = vals.get('name', '')[0:2] return super(ProductAttributeValue, self).create(vals) def write(self, vals): - if 'attribute_code' not in vals: + if 'code' not in vals: return super(ProductAttributeValue, self).write(vals) result = super(ProductAttributeValue, self).write(vals) # Rewrite reference on all product variants affected for product in self.mapped('product_ids').filtered( lambda x: x.product_tmpl_id.reference_mask and not - x.manual_code): + x.manual_code + ).mapped('product_tmpl_id').mapped('product_variant_ids'): render_default_code(product, product.reference_mask) return result diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 3ed0cd1e1..0eb662e60 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -99,7 +99,7 @@ def test_05_manual_code(self): 'CANT-TOUCH-THIS') def test_06_attribute_value_code_change_propagation(self): - self.attr1_1.attribute_code = 'OO' + self.attr1_1.code = 'OO' # Check that the change spreads to every product for product in self.attr1_1.mapped('product_ids'): self.assertTrue('OO' in product.default_code) @@ -107,7 +107,7 @@ def test_06_attribute_value_code_change_propagation(self): def test_07_attribute_value_name_change(self): self.attr1_1.name = 'Odoo' self.attr1_1.onchange_name() - self.assertEqual(self.attr1_1.attribute_code, 'Od') + self.assertEqual(self.attr1_1.code, 'Od') # Check that the change spreads to every product for product in self.attr1_1.mapped('product_ids'): self.assertTrue('Od' in product.default_code) @@ -123,3 +123,19 @@ def test_08_sanitize_exception(self): ], 'reference_mask': 'FAIL:[TSize][TWrongAttr]', }) + + def test_09_code_change_propagation(self): + self.attr1.code = 'AC' + # Check that the change spreads to every product + for product in self.attr1.mapped('attribute_line_ids').mapped( + 'product_tmpl_id').mapped('product_variant_ids'): + self.assertTrue('AC' in product.default_code) + + def test_10_code_change_propagation_archived_variant(self): + self.template1.product_variant_ids[0].active = False + self.attr1.code = 'o_o' + self.assertTrue( + 'o_o' in self.template1.product_variant_ids[0].default_code) + self.attr1_1.code = '^_^' + self.assertTrue( + '^_^' in self.template1.product_variant_ids[0].default_code) diff --git a/product_variant_default_code/views/product_attribute_value_view.xml b/product_variant_default_code/views/product_attribute_value_view.xml index b3e70ed28..e302b3c66 100644 --- a/product_variant_default_code/views/product_attribute_value_view.xml +++ b/product_variant_default_code/views/product_attribute_value_view.xml @@ -10,7 +10,7 @@ - + diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml new file mode 100644 index 000000000..01dc87eab --- /dev/null +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -0,0 +1,28 @@ + + + + + + product.attribute + + + + + + + + + + product.attribute + + + + + + + + + From dc582b5cc3ef4aaf6d833cbb555e2fb97a2a81a2 Mon Sep 17 00:00:00 2001 From: David Vidal Date: Wed, 20 Sep 2017 18:27:31 +0200 Subject: [PATCH 11/65] [IMP] Merge product_code_builder functionalities --- product_variant_default_code/__manifest__.py | 3 + .../data/ir_config_parameter.xml | 16 ++++++ .../models/__init__.py | 5 +- .../models/product.py | 46 +++++++++------ .../models/sale_config_settings.py | 18 ++++++ .../security/product_security.xml | 9 +++ .../tests/test_variant_default_code.py | 36 ++++++++---- .../views/product_view.xml | 57 ++++++++++--------- .../views/sale_config_settings_view.xml | 15 +++++ 9 files changed, 149 insertions(+), 56 deletions(-) create mode 100644 product_variant_default_code/data/ir_config_parameter.xml create mode 100644 product_variant_default_code/models/sale_config_settings.py create mode 100644 product_variant_default_code/security/product_security.xml create mode 100644 product_variant_default_code/views/sale_config_settings_view.xml diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 3aaea16e5..5a9f29f51 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -21,6 +21,9 @@ 'views/product_attribute_value_view.xml', 'views/product_attribute_view.xml', 'views/product_view.xml', + 'views/sale_config_settings_view.xml', + 'data/ir_config_parameter.xml', + 'security/product_security.xml', ], 'installable': True } diff --git a/product_variant_default_code/data/ir_config_parameter.xml b/product_variant_default_code/data/ir_config_parameter.xml new file mode 100644 index 000000000..4e236df05 --- /dev/null +++ b/product_variant_default_code/data/ir_config_parameter.xml @@ -0,0 +1,16 @@ + + + + + default_reference_separator + - + + + + default_reference_missing_placeholder + / + + + diff --git a/product_variant_default_code/models/__init__.py b/product_variant_default_code/models/__init__.py index ca4e74d45..09f147f5a 100644 --- a/product_variant_default_code/models/__init__.py +++ b/product_variant_default_code/models/__init__.py @@ -1,3 +1,6 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- +# Copyright 2017 Tecnativa - David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import product +from . import sale_config_settings diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index dfc0c5d64..3898a994f 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -11,9 +11,6 @@ from string import Template from collections import defaultdict -DEFAULT_REFERENCE_SEPARATOR = '-' -PLACE_HOLDER_4_MISSING_VALUE = '/' - class ReferenceMask(Template): pattern = r'''\[(?: @@ -49,7 +46,10 @@ def get_rendered_default_code(product, mask): product_attrs[value.attribute_id.name] += value.code all_attrs = extract_token(mask) missing_attrs = all_attrs - set(product_attrs.keys()) - missing = dict.fromkeys(missing_attrs, PLACE_HOLDER_4_MISSING_VALUE) + missing = dict.fromkeys( + missing_attrs, + product.env['ir.config_parameter'].get_param( + 'default_reference_missing_placeholder')) product_attrs.update(missing) default_code = reference_mask.safe_substitute(product_attrs) return default_code @@ -62,6 +62,10 @@ def render_default_code(product, mask): class ProductTemplate(models.Model): _inherit = 'product.template' + prefix_code = fields.Char( + string='Prefix code', + help='Add prefix to product variant default code', + ) reference_mask = fields.Char( string='Variant reference mask', help='Reference mask for building internal references of a ' @@ -88,30 +92,36 @@ class ProductTemplate(models.Model): 'Note: make sure characters "[,]" do not appear in your ' 'attribute name') + def _get_default_mask(self): + attribute_names = [] + default_reference_separator = self.env[ + 'ir.config_parameter'].get_param('default_reference_separator') + for line in self.attribute_line_ids: + attribute_names.append("[{}]".format(line.attribute_id.name)) + default_mask = (self.prefix_code or '' + + default_reference_separator.join(attribute_names)) + return default_mask + @api.model def create(self, vals): product = self.new(vals) - if not vals.get('reference_mask') and product.attribute_line_ids: - attribute_names = [] - for line in product.attribute_line_ids: - attribute_names.append("[{}]".format(line.attribute_id.name)) - default_mask = DEFAULT_REFERENCE_SEPARATOR.join(attribute_names) - vals['reference_mask'] = default_mask + if (not vals.get('reference_mask') and product.attribute_line_ids or + not self.user_has_groups( + 'product_variant_default_code.group_product_default_code' + )): + vals['reference_mask'] = product._get_default_mask() elif vals.get('reference_mask'): sanitize_reference_mask(product, vals['reference_mask']) return super(ProductTemplate, self).create(vals) def write(self, vals): product_obj = self.env['product.product'] - if 'reference_mask' in vals and not vals['reference_mask']: + if ('reference_mask' in vals and not vals['reference_mask'] or not + self.user_has_groups( + 'product_variant_default_code.group_product_default_code' + )): if self.attribute_line_ids: - attribute_names = [] - for line in self.attribute_line_ids: - attribute_names.append("[{}]".format( - line.attribute_id.name)) - default_mask = DEFAULT_REFERENCE_SEPARATOR.join( - attribute_names) - vals['reference_mask'] = default_mask + vals['reference_mask'] = self._get_default_mask() result = super(ProductTemplate, self).write(vals) if vals.get('reference_mask'): cond = [('product_tmpl_id', '=', self.id), diff --git a/product_variant_default_code/models/sale_config_settings.py b/product_variant_default_code/models/sale_config_settings.py new file mode 100644 index 000000000..7ac44fd12 --- /dev/null +++ b/product_variant_default_code/models/sale_config_settings.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Tecnativa - David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class SaleConfiguration(models.TransientModel): + _inherit = 'sale.config.settings' + + group_product_default_code = fields.Selection([ + (0, 'Automask'), + (1, 'Manual Mask')], + string='Product Default Code behaviour', + help='Set behaviour of codes', + implied_group='product_variant_default_code' + '.group_product_default_code', + ) diff --git a/product_variant_default_code/security/product_security.xml b/product_variant_default_code/security/product_security.xml new file mode 100644 index 000000000..a03337786 --- /dev/null +++ b/product_variant_default_code/security/product_security.xml @@ -0,0 +1,9 @@ + + + + + Product Default Code Behavior + + + + diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 0eb662e60..4a2aceb6b 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -11,6 +11,7 @@ class TestVariantDefaultCode(common.SavepointCase): @classmethod def setUpClass(cls): super(TestVariantDefaultCode, cls).setUpClass() + cls.sale_setting = cls.env['sale.config.settings'].create({}) cls.attr1 = cls.env['product.attribute'].create({'name': 'TSize'}) cls.attr2 = cls.env['product.attribute'].create({'name': 'TColor'}) cls.attr1_1 = cls.env['product.attribute.value'].create({ @@ -55,15 +56,21 @@ def test_01_check_default_codes(self): self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') # Check that variants code are generated according to rules for product in self.template1.mapped('product_variant_ids'): - expected_code = (product.attribute_value_ids[0].name[0:2] + - '-' + product.attribute_value_ids[1].name[0:2]) + expected_code = ( + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1).name[0:2] + '-' + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2).name[0:2]) self.assertEqual(product.default_code, expected_code) def test_02_check_default_codes_preexistent_mask(self): + self.sale_setting.group_product_default_code = 1 for product in self.template2.mapped('product_variant_ids'): - expected_code = ('P01/' + - product.attribute_value_ids[0].name[0:2] + - product.attribute_value_ids[1].name[0:2]) + expected_code = ( + 'P01/' + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1).name[0:2] + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2).name[0:2]) self.assertEqual(product.default_code, expected_code) def test_03_reset_reference_mask_to_default(self): @@ -73,14 +80,18 @@ def test_03_reset_reference_mask_to_default(self): self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') def test_04_custom_reference_mask(self): + self.sale_setting.group_product_default_code = 1 self.template1.reference_mask = u'JKTÜ/[TColor]#[TSize]' for product in self.template1.mapped('product_variant_ids'): - expected_code = (u'JKTÜ/' + - product.attribute_value_ids[1].name[0:2] + '#' + - product.attribute_value_ids[0].name[0:2]) + expected_code = ( + u'JKTÜ/' + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2).name[0:2] + '#' + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1).name[0:2]) self.assertEqual(product.default_code, expected_code) def test_05_manual_code(self): + self.sale_setting.group_product_default_code = 1 self.assertEqual(self.template1.product_variant_ids[0].manual_code, False) self.template1.product_variant_ids[0].default_code = 'CANT-TOUCH-THIS' @@ -90,9 +101,11 @@ def test_05_manual_code(self): # Set a reference mask and check the other variants are changed self.template1.reference_mask = 'J[TColor][TSize]' for product in self.template1.mapped('product_variant_ids')[1:]: - expected_code = ('J' + - product.attribute_value_ids[1].name[0:2] + - product.attribute_value_ids[0].name[0:2]) + expected_code = ( + 'J' + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2).name[0:2] + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1).name[0:2]) self.assertEqual(product.default_code, expected_code) # But this one isn't: self.assertEqual(self.template1.product_variant_ids[0].default_code, @@ -113,6 +126,7 @@ def test_07_attribute_value_name_change(self): self.assertTrue('Od' in product.default_code) def test_08_sanitize_exception(self): + self.sale_setting.group_product_default_code = 1 with self.assertRaises(UserError): self.env['product.template'].create({ 'name': 'Shirt', diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 15b037587..582a9bbe6 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -1,34 +1,39 @@ - - - product.template.only.form.view.inh.variantdefaultcode - - product.template - - - - + + product.template.only.form.view.inh.variantdefaultcode + + product.template + + + + - - - - - - product.normal.form.view.inh.variantdefaultcode + - product.product - - - - - + + + + + + product.normal.form.view.inh.variantdefaultcode + + product.product + + + + - + + diff --git a/product_variant_default_code/views/sale_config_settings_view.xml b/product_variant_default_code/views/sale_config_settings_view.xml new file mode 100644 index 000000000..3657554f4 --- /dev/null +++ b/product_variant_default_code/views/sale_config_settings_view.xml @@ -0,0 +1,15 @@ + + + + + sale settings default code + sale.config.settings + + + + + + + + + From 3ef6ded127d5534ae29c24f0f5d74cdc347fecd7 Mon Sep 17 00:00:00 2001 From: David Beal Date: Wed, 11 Oct 2017 17:15:54 +0200 Subject: [PATCH 12/65] [IMP] dependency, field name, complete view * IMP dependency, field name, complete view * FIX move sale.settings to base settings * IMP reference mask use untranslate attribute names * FIX some tests with @chienandalu remarks --- product_variant_default_code/README.rst | 15 +++++- product_variant_default_code/__init__.py | 2 +- product_variant_default_code/__manifest__.py | 6 ++- .../demo/attribute_demo.xml | 19 ++++++++ .../models/__init__.py | 2 +- ..._config_settings.py => config_settings.py} | 7 +-- .../models/product.py | 47 +++++++++++++------ .../tests/__init__.py | 2 +- .../tests/test_variant_default_code.py | 12 +++-- .../views/config_settings_view.xml | 16 +++++++ .../views/product_view.xml | 26 +++++----- .../views/sale_config_settings_view.xml | 15 ------ 12 files changed, 114 insertions(+), 55 deletions(-) create mode 100644 product_variant_default_code/demo/attribute_demo.xml rename product_variant_default_code/models/{sale_config_settings.py => config_settings.py} (68%) create mode 100644 product_variant_default_code/views/config_settings_view.xml delete mode 100644 product_variant_default_code/views/sale_config_settings_view.xml diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index b7219ce6d..f3cc1da3c 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -6,7 +6,10 @@ Product Variant Default Code ============================ -This module allows to define a reference mask on the product templates so the +This module automatically generate Product Reference (default_code) +according to attributes data with a configurable behavior. + +It defines a reference mask on the product templates so the variants references are automatically set. For example: - Product template: Jacket @@ -50,7 +53,7 @@ The automatically generated default value for the Variant reference mask will be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, `Wh-L`, `Bl-XL` and `Wh-XL`. -The mask value can be fully custumizedwhatever you like. You can even have +The mask value can be fully customized whatever you like. You can even have the attribute name appear more than once in the mask such as, `Jacket/[Size]~[Color]~[Size]`, and the generated code on variants will be something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). @@ -77,6 +80,13 @@ Unset `manual code` and the reference code will be unlocked again. :alt: Try me on Runbot :target: https://runbot.odoo-community.org/runbot/137/10.0 + +Known issues / Roadmap +====================== + +In case of attribute name update, related mask are not updated. + + Bug Tracker =========== @@ -100,6 +110,7 @@ Contributors * Pedro M. Baeza * Tony Gu * David Vidal +* David Beal Maintainer ---------- diff --git a/product_variant_default_code/__init__.py b/product_variant_default_code/__init__.py index 21ff7c22f..cde864bae 100644 --- a/product_variant_default_code/__init__.py +++ b/product_variant_default_code/__init__.py @@ -1,3 +1,3 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- from . import models diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 5a9f29f51..37ecbf0ea 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -3,6 +3,7 @@ # Copyright 2014 Tecnativa - Pedro M. Baeza # Copyright 2014 Shine IT - Tony Gu # Copyright 2017 Tecnativa - David Vidal +# Copyright 2017 Akretion - David Beal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Variant Default Code', @@ -21,9 +22,12 @@ 'views/product_attribute_value_view.xml', 'views/product_attribute_view.xml', 'views/product_view.xml', - 'views/sale_config_settings_view.xml', + 'views/config_settings_view.xml', 'data/ir_config_parameter.xml', 'security/product_security.xml', ], + 'demo': [ + 'demo/attribute_demo.xml', + ], 'installable': True } diff --git a/product_variant_default_code/demo/attribute_demo.xml b/product_variant_default_code/demo/attribute_demo.xml new file mode 100644 index 000000000..bff9b53d7 --- /dev/null +++ b/product_variant_default_code/demo/attribute_demo.xml @@ -0,0 +1,19 @@ + + + + + + M + + + + + C + + + + + W + + + diff --git a/product_variant_default_code/models/__init__.py b/product_variant_default_code/models/__init__.py index 09f147f5a..a7c8121d9 100644 --- a/product_variant_default_code/models/__init__.py +++ b/product_variant_default_code/models/__init__.py @@ -3,4 +3,4 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import product -from . import sale_config_settings +from . import config_settings diff --git a/product_variant_default_code/models/sale_config_settings.py b/product_variant_default_code/models/config_settings.py similarity index 68% rename from product_variant_default_code/models/sale_config_settings.py rename to product_variant_default_code/models/config_settings.py index 7ac44fd12..22db8f016 100644 --- a/product_variant_default_code/models/sale_config_settings.py +++ b/product_variant_default_code/models/config_settings.py @@ -5,14 +5,15 @@ from odoo import fields, models -class SaleConfiguration(models.TransientModel): - _inherit = 'sale.config.settings' +class BaseConfiguration(models.TransientModel): + _inherit = 'base.config.settings' group_product_default_code = fields.Selection([ (0, 'Automask'), (1, 'Manual Mask')], string='Product Default Code behaviour', - help='Set behaviour of codes', + help='Set behaviour of codes (depends on variant use: ' + 'see Sales/Purchases configuration)', implied_group='product_variant_default_code' '.group_product_default_code', ) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 3898a994f..5faa69f30 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -27,10 +27,12 @@ def extract_token(s): def sanitize_reference_mask(product, mask): + main_lang = product._guess_main_lang() tokens = extract_token(mask) attribute_names = set() for line in product.attribute_line_ids: - attribute_names.add(line.attribute_id.name) + attribute_names.add( + line.attribute_id.with_context(lang=main_lang).name) if not tokens.issubset(attribute_names): raise UserError(_('Found unrecognized attribute name in "Variant ' 'Reference Mask"')) @@ -39,11 +41,13 @@ def sanitize_reference_mask(product, mask): def get_rendered_default_code(product, mask): product_attrs = defaultdict(str) reference_mask = ReferenceMask(mask) + main_lang = product.product_tmpl_id._guess_main_lang() for value in product.attribute_value_ids: + attr_name = value.attribute_id.with_context(lang=main_lang).name if value.attribute_id.code: - product_attrs[value.attribute_id.name] += value.attribute_id.code + product_attrs[attr_name] += value.attribute_id.code if value.code: - product_attrs[value.attribute_id.name] += value.code + product_attrs[attr_name] += value.code all_attrs = extract_token(mask) missing_attrs = all_attrs - set(product_attrs.keys()) missing = dict.fromkeys( @@ -62,12 +66,12 @@ def render_default_code(product, mask): class ProductTemplate(models.Model): _inherit = 'product.template' - prefix_code = fields.Char( - string='Prefix code', - help='Add prefix to product variant default code', + code_prefix = fields.Char( + string='Reference Prefix', oldname='prefix_code', + help='Add prefix to product variant reference (default code)', ) reference_mask = fields.Char( - string='Variant reference mask', + string='Variant reference mask', copy=False, help='Reference mask for building internal references of a ' 'variant generated from this template.\n' @@ -84,12 +88,14 @@ class ProductTemplate(models.Model): '`b-l` `r-x` ...\n' 'If you like, You can even have the attribute name appear more' - ' than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]`' - ' When saved, the default code on variants will be something like' + ' than once in the mask. Such as,' + '`fancyA/[Size]~[Color]~[Size]`\n' + ' When saved, the default code on variants will be ' + 'something like \n' ' `fancyA/l~r~l` (for variant with Color "Red" and Size "L") ' - '`fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")\n' + ' `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")' - 'Note: make sure characters "[,]" do not appear in your ' + '\nNote: make sure characters "[,]" do not appear in your ' 'attribute name') def _get_default_mask(self): @@ -97,8 +103,8 @@ def _get_default_mask(self): default_reference_separator = self.env[ 'ir.config_parameter'].get_param('default_reference_separator') for line in self.attribute_line_ids: - attribute_names.append("[{}]".format(line.attribute_id.name)) - default_mask = (self.prefix_code or '' + + attribute_names.append(u"[{}]".format(line.attribute_id.name)) + default_mask = (self.code_prefix or '' + default_reference_separator.join(attribute_names)) return default_mask @@ -132,11 +138,24 @@ def write(self, vals): render_default_code(product, product.reference_mask) return result + @api.model + def _guess_main_lang(self): + """ Used by get_rendered_default_code() + """ + english = self.env.ref('base.lang_en') + if english.active: + return english.code + else: + # Naive/simple implementation: + # you may inherit to override it in your custom code + # to return the language code of your choice + return self.env['res.lang'].search([], limit=1).code + class ProductProduct(models.Model): _inherit = 'product.product' - manual_code = fields.Boolean(string='Manual code') + manual_code = fields.Boolean(string='Manual Reference') @api.model def create(self, vals): diff --git a/product_variant_default_code/tests/__init__.py b/product_variant_default_code/tests/__init__.py index eb572e14b..71c112f14 100644 --- a/product_variant_default_code/tests/__init__.py +++ b/product_variant_default_code/tests/__init__.py @@ -1,3 +1,3 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- from . import test_variant_default_code diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 4a2aceb6b..ae8cc3a6c 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -11,7 +11,8 @@ class TestVariantDefaultCode(common.SavepointCase): @classmethod def setUpClass(cls): super(TestVariantDefaultCode, cls).setUpClass() - cls.sale_setting = cls.env['sale.config.settings'].create({}) + cls.group_default_code = cls.env.ref( + 'product_variant_default_code.group_product_default_code') cls.attr1 = cls.env['product.attribute'].create({'name': 'TSize'}) cls.attr2 = cls.env['product.attribute'].create({'name': 'TColor'}) cls.attr1_1 = cls.env['product.attribute.value'].create({ @@ -64,7 +65,8 @@ def test_01_check_default_codes(self): self.assertEqual(product.default_code, expected_code) def test_02_check_default_codes_preexistent_mask(self): - self.sale_setting.group_product_default_code = 1 + self.env.user.groups_id |= self.group_default_code + self.template2.reference_mask = 'P01/[TSize][TColor]' for product in self.template2.mapped('product_variant_ids'): expected_code = ( 'P01/' + product.attribute_value_ids.filtered( @@ -80,7 +82,7 @@ def test_03_reset_reference_mask_to_default(self): self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') def test_04_custom_reference_mask(self): - self.sale_setting.group_product_default_code = 1 + self.env.user.groups_id |= self.group_default_code self.template1.reference_mask = u'JKTÜ/[TColor]#[TSize]' for product in self.template1.mapped('product_variant_ids'): expected_code = ( @@ -91,7 +93,7 @@ def test_04_custom_reference_mask(self): self.assertEqual(product.default_code, expected_code) def test_05_manual_code(self): - self.sale_setting.group_product_default_code = 1 + self.env.user.groups_id |= self.group_default_code self.assertEqual(self.template1.product_variant_ids[0].manual_code, False) self.template1.product_variant_ids[0].default_code = 'CANT-TOUCH-THIS' @@ -126,7 +128,7 @@ def test_07_attribute_value_name_change(self): self.assertTrue('Od' in product.default_code) def test_08_sanitize_exception(self): - self.sale_setting.group_product_default_code = 1 + self.env.user.groups_id |= self.group_default_code with self.assertRaises(UserError): self.env['product.template'].create({ 'name': 'Shirt', diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml new file mode 100644 index 000000000..61df30ae4 --- /dev/null +++ b/product_variant_default_code/views/config_settings_view.xml @@ -0,0 +1,16 @@ + + + + + base.config.settings + + + + + + + + + + + diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 582a9bbe6..db8a65f88 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -1,20 +1,16 @@ - - - product.template.only.form.view.inh.variantdefaultcode - + product.template - - @@ -22,11 +18,7 @@ - - - product.normal.form.view.inh.variantdefaultcode - + product.product @@ -36,4 +28,14 @@ + + product.product + + + + + + + + diff --git a/product_variant_default_code/views/sale_config_settings_view.xml b/product_variant_default_code/views/sale_config_settings_view.xml deleted file mode 100644 index 3657554f4..000000000 --- a/product_variant_default_code/views/sale_config_settings_view.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - sale settings default code - sale.config.settings - - - - - - - - - From f05cee8df603abeff5a4f12df86af0bc13dbd734 Mon Sep 17 00:00:00 2001 From: Daniel-CA Date: Wed, 21 Feb 2018 17:43:07 +0100 Subject: [PATCH 13/65] [MIG] product_variant_default_code --- product_variant_default_code/README.rst | 3 +- product_variant_default_code/__manifest__.py | 3 +- product_variant_default_code/i18n/ar.po | 140 +++++++++++++++++ product_variant_default_code/i18n/ca.po | 140 +++++++++++++++++ product_variant_default_code/i18n/de.po | 140 +++++++++++++++++ product_variant_default_code/i18n/es.po | 102 +++++++++---- product_variant_default_code/i18n/es_MX.po | 140 +++++++++++++++++ product_variant_default_code/i18n/fi.po | 140 +++++++++++++++++ product_variant_default_code/i18n/fr.po | 91 +++++++++-- product_variant_default_code/i18n/fr_CH.po | 140 +++++++++++++++++ product_variant_default_code/i18n/hr.po | 140 +++++++++++++++++ product_variant_default_code/i18n/hr_HR.po | 141 ++++++++++++++++++ product_variant_default_code/i18n/it.po | 94 +++++++++--- product_variant_default_code/i18n/nl_NL.po | 140 +++++++++++++++++ product_variant_default_code/i18n/pt_BR.po | 93 +++++++++--- product_variant_default_code/i18n/ro.po | 91 +++++++++-- product_variant_default_code/i18n/sl.po | 97 +++++++++--- product_variant_default_code/i18n/tr_TR.po | 140 +++++++++++++++++ product_variant_default_code/i18n/vi_VN.po | 140 +++++++++++++++++ product_variant_default_code/i18n/zh_CN.po | 140 +++++++++++++++++ .../models/config_settings.py | 2 +- .../models/product.py | 13 +- .../views/config_settings_view.xml | 13 +- 23 files changed, 2153 insertions(+), 130 deletions(-) create mode 100644 product_variant_default_code/i18n/ar.po create mode 100644 product_variant_default_code/i18n/ca.po create mode 100644 product_variant_default_code/i18n/de.po create mode 100644 product_variant_default_code/i18n/es_MX.po create mode 100644 product_variant_default_code/i18n/fi.po create mode 100644 product_variant_default_code/i18n/fr_CH.po create mode 100644 product_variant_default_code/i18n/hr.po create mode 100644 product_variant_default_code/i18n/hr_HR.po create mode 100644 product_variant_default_code/i18n/nl_NL.po create mode 100644 product_variant_default_code/i18n/tr_TR.po create mode 100644 product_variant_default_code/i18n/vi_VN.po create mode 100644 product_variant_default_code/i18n/zh_CN.po diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index f3cc1da3c..769256222 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -106,11 +106,12 @@ Images Contributors ------------ -* Alfredo de la Fuente +* Alfredo de la Fuente * Pedro M. Baeza * Tony Gu * David Vidal * David Beal +* Daniel Campos Maintainer ---------- diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 37ecbf0ea..1b03d109a 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -4,10 +4,11 @@ # Copyright 2014 Shine IT - Tony Gu # Copyright 2017 Tecnativa - David Vidal # Copyright 2017 Akretion - David Beal +# Copyright 2018 AvancOSC - Daniel Campos # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Variant Default Code', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'author': 'AvancOSC,' 'Shine IT,' 'Tecnativa,' diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po new file mode 100644 index 000000000..d903c849b --- /dev/null +++ b/product_variant_default_code/i18n/ar.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# abdullah alsabi , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: abdullah alsabi , 2017\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "المنتج" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po new file mode 100644 index 000000000..5990ef24b --- /dev/null +++ b/product_variant_default_code/i18n/ca.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Plantilla del producte" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po new file mode 100644 index 000000000..966fdd5b2 --- /dev/null +++ b/product_variant_default_code/i18n/de.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Produktvorlage" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 4dff391c9..5b24edfd3 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -1,21 +1,29 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code -# +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +# Luis M. Ontalba , 2017 msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-09-14 08:33+0000\n" -"PO-Revision-Date: 2017-09-14 10:34+0200\n" -"Last-Translator: David \n" -"Language-Team: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: Luis M. Ontalba , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" +"Content-Transfer-Encoding: \n" "Language: es\n" -"X-Generator: Poedit 1.8.7.1\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code @@ -23,7 +31,7 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:151 +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -35,19 +43,31 @@ msgid "Attribute Value Code" msgstr "Código de valor de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" -msgstr "Encontrado un nombre de atribuco no reconocido en la \"Referencia máscara variante\"" +msgstr "" +"Encontrado un nombre de atribuco no reconocido en la \"Referencia máscara " +"variante\"" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_delivery_carrier_manual_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code -msgid "Manual code" -msgstr "Código manual" +msgid "Manual Reference" +msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Producto" @@ -56,13 +76,28 @@ msgstr "Producto" msgid "Product Attribute" msgstr "Atributo de producto" +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" msgstr "Plantilla de producto" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_delivery_carrier_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" @@ -73,26 +108,35 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" -"Máscara de referencia para la construcción de referencias internas de una variante generada a partir de esta plantilla.\n" -"Ejemplo:\n" -"El producto llamado A con 2 atributos: tamaño y color:\n" -"Producto: ABC\n" -"Color: Rojo(Ro), Amarillo(Am), Negro(Ne) #Rojo, Amarillo, Negro de atribulo valor, `Ro`, `Am`, `Ne` son el código correspondiente\n" -"Tamaño: L (l), XL(x)\n" -"Al configurar la máscara de referencia Variante de `[Color]-[Tamaño]`, el código predeterminado en las variantes será algo así como `Ro-l` `Ne-l` `Ro-x` ...\n" -"Si lo desea, usted puede incluso tener el nombre del atributo aparece más de una vez en la máscara. Tal como , `fancyA/[Size]~[Color]~[Size]`Cuando se guarda, el código predeterminado en variantes será algo así como `fancyA/l~r~l` (para variante con Color \"Rojo\" y tamaño \"L\") `fancyA/x~y~x` (para variante con Color \"Amarillo\" y tamaño \"XL\")\n" -"Nota: Asegúrese de caracteres \"[,]\" no aparecen en el nombre del atributo" - -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_delivery_carrier_reference_mask + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "Máscara de referencia para la variante" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "product.attribute.value" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po new file mode 100644 index 000000000..ade6e53b0 --- /dev/null +++ b/product_variant_default_code/i18n/es_MX.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Plantilla del producto" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po new file mode 100644 index 000000000..b337359df --- /dev/null +++ b/product_variant_default_code/i18n/fi.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Tuotteen malli" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index 7e1704bc9..d378be614 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -3,14 +3,15 @@ # * product_variant_default_code # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-09-10 16:43+0000\n" -"Last-Translator: <>\n" -"Language-Team: French (http://www.transifex.com/oca/odoomrp-wip-8-0/language/fr/)\n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,36 +19,52 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,code:0 +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Article" @@ -56,13 +73,30 @@ msgstr "Article" msgid "Product Attribute" msgstr "" +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" +msgstr "Modèle de produit" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -71,11 +105,36 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po new file mode 100644 index 000000000..dabc51daa --- /dev/null +++ b/product_variant_default_code/i18n/fr_CH.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_CH\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Template de produit" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po new file mode 100644 index 000000000..170f0a85e --- /dev/null +++ b/product_variant_default_code/i18n/hr.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\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: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Predložak proizvoda" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po new file mode 100644 index 000000000..7f50c5ad3 --- /dev/null +++ b/product_variant_default_code/i18n/hr_HR.po @@ -0,0 +1,141 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# Bole , 2017 +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_HR\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: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "Proizvod" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Predložak proizvoda" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index aa2fc2960..ad99b209c 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -3,14 +3,16 @@ # * product_variant_default_code # # Translators: +# OCA Transbot , 2017 +# Paolo Valier , 2018 msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-09-10 16:43+0000\n" -"Last-Translator: <>\n" -"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/it/)\n" +"POT-Creation-Date: 2017-12-30 08:37+0000\n" +"PO-Revision-Date: 2017-12-30 08:37+0000\n" +"Last-Translator: Paolo Valier , 2018\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,42 +20,68 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,code:0 -msgid "Attribute Code" +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "Codice Attributo" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "Codice Valore Attributo" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Prodotto " #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute msgid "Product Attribute" +msgstr "Attributo Prodotto" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" msgstr "" #. module: product_variant_default_code @@ -62,7 +90,14 @@ msgid "Product Template" msgstr "Template prodotto" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -71,11 +106,36 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "[attribute3]-[attribute1]" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "base.config.settings" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po new file mode 100644 index 000000000..b3fb280c6 --- /dev/null +++ b/product_variant_default_code/i18n/nl_NL.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Productsjabloon" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index aff99a45b..13a0ddf08 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -3,14 +3,15 @@ # * product_variant_default_code # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-10-20 14:37+0000\n" -"Last-Translator: danimaribeiro \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,36 +19,52 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: field:product.attribute.value,code:0 +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" -msgstr "Erro" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Produto" @@ -56,13 +73,30 @@ msgstr "Produto" msgid "Product Attribute" msgstr "" +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" msgstr "Produto Modelo" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -71,11 +105,36 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index ab665c0fd..c496a271c 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -3,14 +3,15 @@ # * product_variant_default_code # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-09-10 16:43+0000\n" -"Last-Translator: <>\n" -"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/ro/)\n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,36 +19,52 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" #. module: product_variant_default_code -#: field:product.attribute.value,code:0 +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Produs" @@ -56,13 +73,30 @@ msgstr "Produs" msgid "Product Attribute" msgstr "Atribute produs" +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" msgstr "Produs șablon" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -71,11 +105,36 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index 6dc98164b..88f5418ac 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -3,14 +3,15 @@ # * product_variant_default_code # # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-09-20 19:02+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,36 +19,52 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: product_variant_default_code -#: field:product.attribute.value,code:0 +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:153 +#: code:addons/product_variant_default_code/models/product.py:180 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" msgstr "Naziv atributa mora biti unikaten!" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 -#, python-format -msgid "Error" -msgstr "Napaka" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:48 +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" #. module: product_variant_default_code -#: field:product.product,manual_code:0 -msgid "Manual code" -msgstr "Ročna koda" +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Proizvod" @@ -56,13 +73,30 @@ msgstr "Proizvod" msgid "Product Attribute" msgstr "Atribut proizvoda" +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" msgstr "Predloga proizvoda" #. module: product_variant_default_code -#: help:product.template,reference_mask:0 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" @@ -71,11 +105,36 @@ msgid "" "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" "When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as , `fancyA/[Size]~[Color]~[Size]` When saved, the default code on variants will be something like `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" -msgstr "Masla sklica za gradnjo internih sklicev variante po tej predlogi.\nPrimer:\nProizvod z nazivom ABC z 2 atributoma: velikost in barva:\nProduct: ABC\nBarva: Rdeča(r), Rumena(y), Črna(b) #Rdeča, rumena, črna so vrednosti atributa, `r`, `y`, `b` so pripadajoče kode\nVelikost: L (l), XL(x)\nKo se nastavlja maska sklica variante na `[Barva]-[Velikost]`, je privzeta koda variant nekaj, kakor `r-l` `b-l` `r-x` ...\nČe želite, se lahko naziv atributa večkrat pojavlja v maski. Kot npr., `fancyA/[Velikost]~[Barva]~[Velikost]` Ob shranjevanju bo privzeta koda variant, nekaj kakor `fancyA/l~r~l` (za varianto z barvo \"Rdeča\" in velikostjo \"L\") `fancyA/x~y~x` (za varianto z barvo \"Rumena\" in velikostjo \"XL\")\nOpomba: znaki \"[,]\" se ne smejo pojavljati v nazivu atributa" +msgstr "" #. module: product_variant_default_code -#: field:product.template,reference_mask:0 +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" msgstr "Maska sklica variante" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po new file mode 100644 index 000000000..829b05437 --- /dev/null +++ b/product_variant_default_code/i18n/tr_TR.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Ürün şablonu" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po new file mode 100644 index 000000000..bfc57c784 --- /dev/null +++ b/product_variant_default_code/i18n/vi_VN.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/teams/23907/vi_VN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi_VN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "Mẫu sản phẩm" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po new file mode 100644 index 000000000..54e40a38b --- /dev/null +++ b/product_variant_default_code/i18n/zh_CN.po @@ -0,0 +1,140 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-23 03:56+0000\n" +"PO-Revision-Date: 2017-12-23 03:56+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:180 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:37 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:base.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "产品模板" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +msgid "" +"Set behaviour of codes (depends on variant use: see Sales/Purchases " +"configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_base_config_settings +msgid "base.config.settings" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" diff --git a/product_variant_default_code/models/config_settings.py b/product_variant_default_code/models/config_settings.py index 22db8f016..800c9cbea 100644 --- a/product_variant_default_code/models/config_settings.py +++ b/product_variant_default_code/models/config_settings.py @@ -6,7 +6,7 @@ class BaseConfiguration(models.TransientModel): - _inherit = 'base.config.settings' + _inherit = 'res.config.settings' group_product_default_code = fields.Selection([ (0, 'Automask'), diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 5faa69f30..d76f72474 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -3,6 +3,7 @@ # Copyright 2014 Tecnativa - Pedro M. Baeza # Copyright 2014 Shine IT - Tony Gu # Copyright 2017 Tecnativa - David Vidal +# Copyright 2018 Avanzosc S.L. - Daniel Campos # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models @@ -104,7 +105,7 @@ def _get_default_mask(self): 'ir.config_parameter'].get_param('default_reference_separator') for line in self.attribute_line_ids: attribute_names.append(u"[{}]".format(line.attribute_id.name)) - default_mask = (self.code_prefix or '' + + default_mask = ((self.code_prefix or '') + default_reference_separator.join(attribute_names)) return default_mask @@ -184,10 +185,10 @@ def write(self, vals): return super(ProductAttribute, self).write(vals) result = super(ProductAttribute, self).write(vals) # Rewrite reference on all product variants affected - for product in self.mapped('attribute_line_ids').mapped( - 'product_tmpl_id').mapped('product_variant_ids').filtered( - lambda x: x.product_tmpl_id.reference_mask and not - x.manual_code): + for product in self.mapped( + 'attribute_line_ids.product_tmpl_id.product_variant_ids').\ + filtered(lambda x: x.product_tmpl_id.reference_mask and not + x.manual_code): render_default_code(product, product.reference_mask) return result @@ -220,6 +221,6 @@ def write(self, vals): for product in self.mapped('product_ids').filtered( lambda x: x.product_tmpl_id.reference_mask and not x.manual_code - ).mapped('product_tmpl_id').mapped('product_variant_ids'): + ).mapped('product_tmpl_id.product_variant_ids'): render_default_code(product, product.reference_mask) return result diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index 61df30ae4..f5149670e 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -2,14 +2,13 @@ - base.config.settings - + res.config.settings + - - - - - + + + From 45fcedb679ca2d19e5ce9fb9ce3c7d955943dfaa Mon Sep 17 00:00:00 2001 From: Quentin THEURET Date: Thu, 7 Jun 2018 15:16:48 +0200 Subject: [PATCH 14/65] [IMP+FIX] product_variant_default_code: Several things: * [IMP] Improve French (fr) translation * [FIX] Fixed bad display of config. settings * [FIX] Display product attribute value code when open the product attribute form view from product form view --- product_variant_default_code/i18n/ar.po | 55 ++++--- product_variant_default_code/i18n/ca.po | 52 ++++--- product_variant_default_code/i18n/de.po | 52 ++++--- product_variant_default_code/i18n/es.po | 54 ++++--- product_variant_default_code/i18n/es_MX.po | 55 ++++--- product_variant_default_code/i18n/fi.po | 52 ++++--- product_variant_default_code/i18n/fr.po | 123 +++++++++------ product_variant_default_code/i18n/fr_CH.po | 55 ++++--- product_variant_default_code/i18n/hr.po | 55 ++++--- product_variant_default_code/i18n/hr_HR.po | 58 ++++--- product_variant_default_code/i18n/it.po | 55 ++++--- product_variant_default_code/i18n/nl_NL.po | 55 ++++--- .../i18n/product_variant_default_code.pot | 143 ++++++++++++++++++ product_variant_default_code/i18n/pt_BR.po | 55 ++++--- product_variant_default_code/i18n/ro.po | 55 ++++--- product_variant_default_code/i18n/sl.po | 55 ++++--- product_variant_default_code/i18n/tr_TR.po | 55 ++++--- product_variant_default_code/i18n/vi_VN.po | 55 ++++--- product_variant_default_code/i18n/zh_CN.po | 55 ++++--- .../views/config_settings_view.xml | 18 ++- .../views/product_attribute_view.xml | 13 ++ 21 files changed, 858 insertions(+), 367 deletions(-) create mode 100644 product_variant_default_code/i18n/product_variant_default_code.pot diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index d903c849b..a4df635b2 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # abdullah alsabi , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: abdullah alsabi , 2017\n" "Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "المنتج" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "المنتج" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index 5990ef24b..d34113fc9 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +42,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +69,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +83,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +93,12 @@ msgstr "" msgid "Product Template" msgstr "Plantilla del producte" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Plantilla del producte" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +109,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +146,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index 966fdd5b2..d2d9eebb6 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +42,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +69,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +83,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +93,12 @@ msgstr "" msgid "Product Template" msgstr "Produktvorlage" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Produktvorlage" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +109,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +146,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 5b24edfd3..653e7fec0 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 # Luis M. Ontalba , 2017 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: Luis M. Ontalba , 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" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -43,12 +43,17 @@ msgid "Attribute Value Code" msgstr "Código de valor de atributo" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" @@ -56,7 +61,7 @@ msgstr "" "variante\"" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -67,7 +72,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Producto" @@ -82,7 +86,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -91,6 +96,12 @@ msgstr "" msgid "Product Template" msgstr "Plantilla de producto" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Atributo de producto" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -101,21 +112,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -132,12 +148,12 @@ msgstr "Máscara de referencia para la variante" msgid "[attribute3]-[attribute1]" msgstr "" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" -msgstr "" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "product.attribute.value" msgstr "product.attribute.value" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" +msgstr "" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index ade6e53b0..57b58aa7b 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\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" -"Language: es_MX\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Plantilla del producto" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Plantilla del producto" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index b337359df..d4884a01e 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,10 +12,10 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +42,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +69,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +83,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +93,12 @@ msgstr "" msgid "Product Template" msgstr "Tuotteen malli" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Tuotteen malli" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +109,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +146,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index d378be614..d7a24e1f9 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -1,140 +1,177 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code -# -# Translators: -# OCA Transbot , 2017 +# * product_variant_default_code +# msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-23 03:56+0000\n" -"PO-Revision-Date: 2017-12-23 03:56+0000\n" -"Last-Translator: OCA Transbot , 2017\n" -"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"POT-Creation-Date: 2018-06-07 12:42+0000\n" +"PO-Revision-Date: 2018-06-07 12:42+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" -"Language: fr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Plural-Forms: \n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" +"Ajouter un préfixe à la référence de la variante de produit (default code)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code msgid "Attribute Code" -msgstr "" +msgstr "Code de l'attribut" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" -msgstr "" +msgstr "Le nom de l'attribut doit être unique !" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code msgid "Attribute Value Code" -msgstr "" +msgstr "Code valeur de l'attribut" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" +msgstr "Masque automatique" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" +"Nom d'attribut non reconnu trouvé dans \"Masque de référence de la variante\"" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" -msgstr "" +msgstr "Masque manuel" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code msgid "Manual Reference" -msgstr "" +msgstr "Référence manuelle" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Article" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute msgid "Product Attribute" -msgstr "" +msgstr "Attribut de l'article" #. module: product_variant_default_code #: model:res.groups,name:product_variant_default_code.group_product_default_code msgid "Product Default Code Behavior" -msgstr "" +msgstr "Comportement du code par défaut du produit" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" -msgstr "" +msgstr "Comportement du code par défaut du produit" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" -msgstr "Modèle de produit" +msgstr "Modèle d'article" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Attribut de l'article" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix msgid "Reference Prefix" -msgstr "" +msgstr "Préfixe de la référence" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +"Masque de référence pour construire les références internes des variantes " +"génénées depuis ce modèle.\n" +"Exemple:\n" +"Un produit nommé ABC avec 2 attributs : Taille et Couleur :\n" +"Produit: ABC\n" +"Couleur: Rouge(r), Jaune(j), Noir(n) #Rouge, Jaune, Noir sont les valeurs " +"d'attributes, `r`, `j`, `n` sont les codes correspondants\n" +"Taille: L (l), XL(x)\n" +"Quand vous mettez en place un masque de référence de la variante `[Couleur]-" +"[Taille]`, le code par défaut de la variante sera quelque chose comme `r-l` " +"`n-l` `r-x` ...\n" +"Si vous préférez, vous pouvez aussi avoir le nom de l'attribut qui apparait " +"plusieurs fois dans le masque. Comme,`fancyA/[Taille]~[Couleur]~[Taille]`\n" +" Quand il est enregistré, le code par défaut sur la variante sera quelque " +"chose comme \n" +" `fancyA/l~r~l` (pour la variante avec Couleur \"Rouge\" et Taille \"L\") " +"`fancyA/x~y~x` (pour la variante avec Couleur \"Jaune\" et Taille\"XL\")\n" +"Note : assurez-vous que les caractères \"[,]\" n'apparaissent pas dans le " +"nom de l'attribut" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" +"Définir le comportement des codes (dépend de l'utilisation des variantes : " +"voir la configuration Achats/Ventes" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask msgid "Variant reference mask" -msgstr "" +msgstr "Masque de référence de la variante" #. module: product_variant_default_code #: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" -msgstr "" +msgstr "[attribute3]-[attribute1]" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "product.attribute.value" -msgstr "" +msgstr "product.attribute.value" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" +msgstr "res.config.settings" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index dabc51daa..ba0d33f77 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/fr_CH/)\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" -"Language: fr_CH\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Template de produit" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Template de produit" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index 170f0a85e..22b44c4a7 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: hr\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" +"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: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Predložak proizvoda" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Predložak proizvoda" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index 7f50c5ad3..2f4c1e4b3 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # Bole , 2017 # OCA Transbot , 2017 @@ -12,12 +12,14 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\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" -"Language: hr_HR\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" +"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: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix @@ -31,7 +33,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -43,18 +45,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -65,7 +72,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Proizvod" @@ -80,7 +86,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -89,6 +96,12 @@ msgstr "" msgid "Product Template" msgstr "Predložak proizvoda" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Predložak proizvoda" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -99,21 +112,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -131,11 +149,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index ad99b209c..e1f65b9a9 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 # Paolo Valier , 2018 @@ -13,10 +13,10 @@ msgstr "" "PO-Revision-Date: 2017-12-30 08:37+0000\n" "Last-Translator: Paolo Valier , 2018\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" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Codice Attributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -43,18 +43,23 @@ msgid "Attribute Value Code" msgstr "Codice Valore Attributo" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -65,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Prodotto " @@ -80,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -89,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Template prodotto" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Attributo Prodotto" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -99,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,12 +146,13 @@ msgstr "" msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" -msgstr "base.config.settings" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "product.attribute.value" msgstr "product.attribute.value" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +#, fuzzy +msgid "res.config.settings" +msgstr "base.config.settings" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index b3fb280c6..7c24311dd 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # Peter Hageman , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: Peter Hageman , 2017\n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl_NL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Productsjabloon" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Productsjabloon" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot new file mode 100644 index 000000000..cd88f3ff4 --- /dev/null +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -0,0 +1,143 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:181 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:res.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:res.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product Variants" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +msgid "Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" +msgstr "" + diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index 13a0ddf08..75ddb4234 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\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" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Produto" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Produto Modelo" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Produto Modelo" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index c496a271c..56f4c4dd4 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Produs" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Produs șablon" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Atribute produs" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index 88f5418ac..a6b7bbec4 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,11 +12,12 @@ msgstr "" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 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" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "Proizvod" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Predloga proizvoda" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Atribut proizvoda" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index 829b05437..9b01dcc9c 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\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" -"Language: tr_TR\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Ürün şablonu" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Ürün şablonu" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index bfc57c784..18b1964ac 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/teams/23907/vi_VN/)\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" -"Language: vi_VN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "Mẫu sản phẩm" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "Mẫu sản phẩm" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index 54e40a38b..3577793ff 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * product_variant_default_code -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-12-23 03:56+0000\n" "PO-Revision-Date: 2017-12-23 03:56+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\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" -"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code @@ -30,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:180 +#: code:addons/product_variant_default_code/models/product.py:181 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" @@ -42,18 +43,23 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:37 +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:base.config.settings,group_product_default_code:0 +#: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" msgstr "" @@ -64,7 +70,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product" msgstr "" @@ -79,7 +84,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -88,6 +94,12 @@ msgstr "" msgid "Product Template" msgstr "产品模板" +#. module: product_variant_default_code +#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#, fuzzy +msgid "Product Variants" +msgstr "产品模板" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix @@ -98,21 +110,26 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask msgid "" -"Reference mask for building internal references of a variant generated from this template.\n" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_base_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -130,11 +147,11 @@ msgid "[attribute3]-[attribute1]" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_base_config_settings -msgid "base.config.settings" +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "product.attribute.value" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "res.config.settings" msgstr "" diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index f5149670e..51c2027b4 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -5,9 +5,21 @@ res.config.settings - - - diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index 01dc87eab..61341e082 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -25,4 +25,17 @@ + + product.attribute + + + + + + + + + + + From ea89d677fb7f8ae2f7882ae40ce5365035312111 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 7 Nov 2018 19:54:05 +0100 Subject: [PATCH 15/65] [FIX] product_variant_default_code: Read parameters with sudo() As needed in v11 --- product_variant_default_code/i18n/ar.po | 2 +- product_variant_default_code/i18n/ca.po | 2 +- product_variant_default_code/i18n/de.po | 2 +- product_variant_default_code/i18n/es.po | 2 +- product_variant_default_code/i18n/es_MX.po | 2 +- product_variant_default_code/i18n/fi.po | 2 +- product_variant_default_code/i18n/fr.po | 2 +- product_variant_default_code/i18n/fr_CH.po | 2 +- product_variant_default_code/i18n/hr.po | 2 +- product_variant_default_code/i18n/hr_HR.po | 2 +- product_variant_default_code/i18n/it.po | 2 +- product_variant_default_code/i18n/nl_NL.po | 2 +- .../i18n/product_variant_default_code.pot | 2 +- product_variant_default_code/i18n/pt_BR.po | 2 +- product_variant_default_code/i18n/ro.po | 2 +- product_variant_default_code/i18n/sl.po | 2 +- product_variant_default_code/i18n/tr_TR.po | 2 +- product_variant_default_code/i18n/vi_VN.po | 2 +- product_variant_default_code/i18n/zh_CN.po | 2 +- product_variant_default_code/models/product.py | 5 +++-- .../static/description/icon.png | Bin 0 -> 9455 bytes 21 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 product_variant_default_code/static/description/icon.png diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index a4df635b2..16344c775 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index d34113fc9..7bdea4b2b 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index d2d9eebb6..a4b2aa3c8 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 653e7fec0..78ae12a85 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index 57b58aa7b..b0fc4a772 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index d4884a01e..f9ba3a0ce 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index d7a24e1f9..d8e680c24 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -29,7 +29,7 @@ msgid "Attribute Code" msgstr "Code de l'attribut" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index ba0d33f77..000ae1df1 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index 22b44c4a7..abd276192 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index 2f4c1e4b3..48356990d 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -33,7 +33,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index e1f65b9a9..e1619f64f 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Codice Attributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index 7c24311dd..1fc105c40 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index cd88f3ff4..7b03d2485 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -25,7 +25,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index 75ddb4234..cd9332686 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index 56f4c4dd4..e38df8f60 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index a6b7bbec4..69210d124 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index 9b01dcc9c..489e44b8c 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index 18b1964ac..5fe898bc3 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index 3577793ff..9bb6812ed 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:181 +#: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index d76f72474..2243e5824 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -53,7 +53,7 @@ def get_rendered_default_code(product, mask): missing_attrs = all_attrs - set(product_attrs.keys()) missing = dict.fromkeys( missing_attrs, - product.env['ir.config_parameter'].get_param( + product.env['ir.config_parameter'].sudo().get_param( 'default_reference_missing_placeholder')) product_attrs.update(missing) default_code = reference_mask.safe_substitute(product_attrs) @@ -102,7 +102,8 @@ class ProductTemplate(models.Model): def _get_default_mask(self): attribute_names = [] default_reference_separator = self.env[ - 'ir.config_parameter'].get_param('default_reference_separator') + 'ir.config_parameter' + ].sudo().get_param('default_reference_separator') for line in self.attribute_line_ids: attribute_names.append(u"[{}]".format(line.attribute_id.name)) default_mask = ((self.code_prefix or '') + diff --git a/product_variant_default_code/static/description/icon.png b/product_variant_default_code/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz# z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K= z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C zuVl&0duN<;uOsB3%T9Fp8t{ED108<+W(nOZd?gDnfNBC3>M8WE61$So|P zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1 zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_ zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8 zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ> zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD z#z-)AXwSRY?OPefw^iI+ z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$ z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6 zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+ z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC) zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x! zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8 z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n= z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@ zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y< zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6 zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6% z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(| z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6 z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d} z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB z z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 From 159aa883feecc041f6c958d83e145bed5ac5fcbd Mon Sep 17 00:00:00 2001 From: Mikel Arregi Date: Tue, 24 Sep 2019 15:40:06 +0200 Subject: [PATCH 16/65] [MIG] product_variant_default_code: Migration to 12.0 --- product_variant_default_code/__manifest__.py | 6 +- product_variant_default_code/i18n/ar.po | 54 ++++++++--------- product_variant_default_code/i18n/ca.po | 54 ++++++++--------- product_variant_default_code/i18n/de.po | 54 ++++++++--------- product_variant_default_code/i18n/es.po | 57 ++++++++++-------- product_variant_default_code/i18n/es_MX.po | 54 ++++++++--------- product_variant_default_code/i18n/fi.po | 54 ++++++++--------- product_variant_default_code/i18n/fr.po | 59 +++++++++++-------- product_variant_default_code/i18n/fr_CH.po | 54 ++++++++--------- product_variant_default_code/i18n/hr.po | 54 ++++++++--------- product_variant_default_code/i18n/hr_HR.po | 54 ++++++++--------- product_variant_default_code/i18n/it.po | 59 ++++++++++--------- product_variant_default_code/i18n/nl_NL.po | 54 ++++++++--------- .../i18n/product_variant_default_code.pot | 56 +++++++++--------- product_variant_default_code/i18n/pt_BR.po | 54 ++++++++--------- product_variant_default_code/i18n/ro.po | 54 ++++++++--------- product_variant_default_code/i18n/sl.po | 56 +++++++++--------- product_variant_default_code/i18n/tr_TR.po | 54 ++++++++--------- product_variant_default_code/i18n/vi_VN.po | 54 ++++++++--------- product_variant_default_code/i18n/zh_CN.po | 54 ++++++++--------- .../models/product.py | 9 +-- .../tests/test_variant_default_code.py | 8 ++- .../views/product_attribute_view.xml | 3 - 23 files changed, 545 insertions(+), 524 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 1b03d109a..75762033d 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Variant Default Code', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'author': 'AvancOSC,' 'Shine IT,' 'Tecnativa,' @@ -20,12 +20,12 @@ 'product', ], 'data': [ + 'security/product_security.xml', + 'data/ir_config_parameter.xml', 'views/product_attribute_value_view.xml', 'views/product_attribute_view.xml', 'views/product_view.xml', 'views/config_settings_view.xml', - 'data/ir_config_parameter.xml', - 'security/product_security.xml', ], 'demo': [ 'demo/attribute_demo.xml', diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index 16344c775..87ee631e6 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -20,13 +20,13 @@ msgstr "" "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "المنتج" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index 7bdea4b2b..a3b2c3a61 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -19,13 +19,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -37,7 +37,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -47,7 +52,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -63,7 +73,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -83,8 +93,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -94,20 +104,20 @@ msgid "Product Template" msgstr "Plantilla del producte" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Plantilla del producte" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -128,29 +138,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index a4b2aa3c8..8d0212845 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -19,13 +19,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -37,7 +37,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -47,7 +52,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -63,7 +73,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -83,8 +93,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -94,20 +104,20 @@ msgid "Product Template" msgstr "Produktvorlage" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Produktvorlage" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -128,29 +138,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 78ae12a85..4130fad35 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "Código de atributo" @@ -38,7 +38,14 @@ msgid "Attribute Name must be unique!" msgstr "El nombre del atributo debe ser único!." #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +#, fuzzy +#| msgid "Attribute Value Code" +msgid "Attribute Value" +msgstr "Código de valor de atributo" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "Código de valor de atributo" @@ -48,7 +55,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -66,7 +78,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -86,8 +98,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -97,20 +109,20 @@ msgid "Product Template" msgstr "Plantilla de producto" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Atributo de producto" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -131,29 +143,22 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "Máscara de referencia para la variante" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "product.attribute.value" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" +#~ msgid "product.attribute.value" +#~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index b0fc4a772..8f4767ac4 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Plantilla del producto" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Plantilla del producto" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index f9ba3a0ce..86375df34 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -19,13 +19,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -37,7 +37,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -47,7 +52,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -63,7 +73,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -83,8 +93,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -94,20 +104,20 @@ msgid "Product Template" msgstr "Tuotteen malli" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Tuotteen malli" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -128,29 +138,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index d8e680c24..a2e2a4d17 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -17,14 +17,14 @@ msgstr "" "Plural-Forms: \n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" "Ajouter un préfixe à la référence de la variante de produit (default code)" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "Code de l'attribut" @@ -36,7 +36,14 @@ msgid "Attribute Name must be unique!" msgstr "Le nom de l'attribut doit être unique !" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +#, fuzzy +#| msgid "Attribute Value Code" +msgid "Attribute Value" +msgstr "Code valeur de l'attribut" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "Code valeur de l'attribut" @@ -46,7 +53,14 @@ msgid "Automask" msgstr "Masque automatique" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +#, fuzzy +#| msgid "res.config.settings" +msgid "Config Settings" +msgstr "res.config.settings" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -63,7 +77,7 @@ msgid "Manual Mask" msgstr "Masque manuel" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "Référence manuelle" @@ -83,8 +97,8 @@ msgid "Product Default Code Behavior" msgstr "Comportement du code par défaut du produit" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "Comportement du code par défaut du produit" @@ -94,20 +108,20 @@ msgid "Product Template" msgstr "Modèle d'article" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Attribut de l'article" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "Préfixe de la référence" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -147,7 +161,7 @@ msgstr "" "nom de l'attribut" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" @@ -156,22 +170,15 @@ msgstr "" "voir la configuration Achats/Ventes" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "Masque de référence de la variante" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "product.attribute.value" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "res.config.settings" +#~ msgid "product.attribute.value" +#~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index 000ae1df1..c7cada9b9 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Template de produit" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Template de produit" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index abd276192..8f8b5eb70 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -20,13 +20,13 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Predložak proizvoda" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Predložak proizvoda" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index 48356990d..0e77d00a1 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -22,13 +22,13 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -40,7 +40,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -50,7 +55,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -66,7 +76,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -86,8 +96,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -97,20 +107,20 @@ msgid "Product Template" msgstr "Predložak proizvoda" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Predložak proizvoda" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -131,29 +141,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index e1619f64f..fa81c546b 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "Codice Attributo" @@ -38,7 +38,14 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +#, fuzzy +#| msgid "Attribute Value Code" +msgid "Attribute Value" +msgstr "Codice Valore Attributo" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "Codice Valore Attributo" @@ -48,7 +55,13 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +#, fuzzy +msgid "Config Settings" +msgstr "base.config.settings" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +77,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +97,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +108,20 @@ msgid "Product Template" msgstr "Template prodotto" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Attributo Prodotto" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,30 +142,22 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "product.attribute.value" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -#, fuzzy -msgid "res.config.settings" -msgstr "base.config.settings" +#~ msgid "product.attribute.value" +#~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index 1fc105c40..fa868ddf6 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Productsjabloon" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Productsjabloon" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 7b03d2485..5596ca355 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,13 +14,13 @@ msgstr "" "Plural-Forms: \n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -32,7 +32,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -42,7 +47,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -58,7 +68,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -78,8 +88,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -89,19 +99,19 @@ msgid "Product Template" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Variants" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" @@ -116,28 +126,18 @@ msgid "Reference mask for building internal references of a variant generated fr msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" - diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index cd9332686..70db6fa7d 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Produto Modelo" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Produto Modelo" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index e38df8f60..e7e4a6ae3 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -20,13 +20,13 @@ msgstr "" "2:1));\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Produs șablon" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Atribute produs" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index 69210d124..fe1c454a3 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -20,13 +20,13 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "Koda atributa" @@ -38,7 +38,14 @@ msgid "Attribute Name must be unique!" msgstr "Naziv atributa mora biti unikaten!" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +#, fuzzy +#| msgid "Attribute Code" +msgid "Attribute Value" +msgstr "Koda atributa" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +55,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +76,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +96,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +107,20 @@ msgid "Product Template" msgstr "Predloga proizvoda" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Atribut proizvoda" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +141,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "Maska sklica variante" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index 489e44b8c..c397cf6f9 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Ürün şablonu" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Ürün şablonu" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index 5fe898bc3..cd6e1ead7 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "Mẫu sản phẩm" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "Mẫu sản phẩm" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index 9bb6812ed..1dd2f5621 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -20,13 +20,13 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" msgstr "" @@ -38,7 +38,12 @@ msgid "Attribute Name must be unique!" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" msgstr "" @@ -48,7 +53,12 @@ msgid "Automask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" msgstr "" @@ -64,7 +74,7 @@ msgid "Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_manual_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" @@ -84,8 +94,8 @@ msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings_group_product_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" msgstr "" @@ -95,20 +105,20 @@ msgid "Product Template" msgstr "产品模板" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration #, fuzzy msgid "Product Variants" msgstr "产品模板" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_code_prefix -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,help:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask msgid "" "Reference mask for building internal references of a variant generated from " "this template.\n" @@ -129,29 +139,19 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings_group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "" "Set behaviour of codes (depends on variant use: see Sales/Purchases " "configuration)" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product_reference_mask -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template_reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" msgstr "" #. module: product_variant_default_code -#: model:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_attribute_value -msgid "product.attribute.value" -msgstr "" - -#. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "res.config.settings" -msgstr "" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 2243e5824..3f6bddc5a 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -219,9 +219,10 @@ def write(self, vals): return super(ProductAttributeValue, self).write(vals) result = super(ProductAttributeValue, self).write(vals) # Rewrite reference on all product variants affected - for product in self.mapped('product_ids').filtered( - lambda x: x.product_tmpl_id.reference_mask and not - x.manual_code - ).mapped('product_tmpl_id.product_variant_ids'): + for product in self.env['product.product'].search( + [('attribute_value_ids', 'in', self.ids)]).filtered( + lambda x: x.product_tmpl_id.reference_mask and not + x.manual_code + ).mapped('product_tmpl_id.product_variant_ids'): render_default_code(product, product.reference_mask) return result diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index ae8cc3a6c..549407e21 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -116,15 +116,19 @@ def test_05_manual_code(self): def test_06_attribute_value_code_change_propagation(self): self.attr1_1.code = 'OO' # Check that the change spreads to every product - for product in self.attr1_1.mapped('product_ids'): + products = self.env['product.product'].search([ + ('attribute_value_ids', '=', self.attr1_1.id)]) + for product in products: self.assertTrue('OO' in product.default_code) def test_07_attribute_value_name_change(self): self.attr1_1.name = 'Odoo' self.attr1_1.onchange_name() self.assertEqual(self.attr1_1.code, 'Od') + products = self.env['product.product'].search([ + ('attribute_value_ids', '=', self.attr1_1.id)]) # Check that the change spreads to every product - for product in self.attr1_1.mapped('product_ids'): + for product in products: self.assertTrue('Od' in product.default_code) def test_08_sanitize_exception(self): diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index 61341e082..cb63c4cf4 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -32,9 +32,6 @@ - - - From fc6ab640eea901f22b04511fcf8146ca89542b88 Mon Sep 17 00:00:00 2001 From: Bole Date: Wed, 4 Dec 2019 10:23:53 +0000 Subject: [PATCH 17/65] Translated using Weblate (Croatian) Currently translated at 63.6% (14 of 22 strings) Translation: product-variant-12.0/product-variant-12.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-12-0/product-variant-12-0-product_variant_default_code/hr/ --- product_variant_default_code/i18n/hr.po | 35 +++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index 8f8b5eb70..a650c9019 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -9,58 +9,59 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-23 03:56+0000\n" -"PO-Revision-Date: 2017-12-23 03:56+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"PO-Revision-Date: 2019-12-04 14:04+0000\n" +"Last-Translator: Bole \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" +"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" +"X-Generator: Weblate 3.9.1\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" -msgstr "" +msgstr "Dodaj prefix na referencu varijante proizvoda (šifru)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" -msgstr "" +msgstr "Šifra atributa" #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:182 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" -msgstr "" +msgstr "Šifra atributa mora biti jedinstvena!" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "Attribute Value" -msgstr "" +msgstr "Vrijednost atributa" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" -msgstr "" +msgstr "Šifra vrijednosti atributa" #. module: product_variant_default_code #: selection:res.config.settings,group_product_default_code:0 msgid "Automask" -msgstr "" +msgstr "Auto-maskiranje" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" -msgstr "" +msgstr "Postavke" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" -msgstr "" +msgstr "Definira kako želite upravljati zadanom šifrom varijante" #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:38 @@ -71,27 +72,27 @@ msgstr "" #. module: product_variant_default_code #: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" -msgstr "" +msgstr "Ručna maska" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" -msgstr "" +msgstr "Ručna šifra" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product msgid "Product" -msgstr "" +msgstr "Proizvod" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute msgid "Product Attribute" -msgstr "" +msgstr "Atribut proizvoda" #. module: product_variant_default_code #: model:res.groups,name:product_variant_default_code.group_product_default_code msgid "Product Default Code Behavior" -msgstr "" +msgstr "Zadano ponašanje šifre proizvoda" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code From dce9ee4a81905971b87e34833d47b0ba6c3f2e6b Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Thu, 20 Feb 2020 10:07:13 -0500 Subject: [PATCH 18/65] [FIX] product_variant_default_code: fix product.template write to accept multiple recordset --- product_variant_default_code/__manifest__.py | 2 +- product_variant_default_code/i18n/ar.po | 2 +- product_variant_default_code/i18n/ca.po | 2 +- product_variant_default_code/i18n/de.po | 2 +- product_variant_default_code/i18n/es.po | 2 +- product_variant_default_code/i18n/es_MX.po | 2 +- product_variant_default_code/i18n/fi.po | 2 +- product_variant_default_code/i18n/fr.po | 2 +- product_variant_default_code/i18n/fr_CH.po | 2 +- product_variant_default_code/i18n/hr.po | 6 +++--- product_variant_default_code/i18n/hr_HR.po | 2 +- product_variant_default_code/i18n/it.po | 2 +- product_variant_default_code/i18n/nl_NL.po | 2 +- .../i18n/product_variant_default_code.pot | 2 +- product_variant_default_code/i18n/pt_BR.po | 2 +- product_variant_default_code/i18n/ro.po | 2 +- product_variant_default_code/i18n/sl.po | 2 +- product_variant_default_code/i18n/tr_TR.po | 2 +- product_variant_default_code/i18n/vi_VN.po | 2 +- product_variant_default_code/i18n/zh_CN.po | 2 +- product_variant_default_code/models/product.py | 12 ++++++++---- 21 files changed, 30 insertions(+), 26 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 75762033d..f6e527b6a 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Variant Default Code', - 'version': '12.0.1.0.0', + 'version': '12.0.1.0.1', 'author': 'AvancOSC,' 'Shine IT,' 'Tecnativa,' diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index 87ee631e6..d8a3c393f 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index a3b2c3a61..975c9e707 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index 8d0212845..2e4b20558 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 4130fad35..b2a208050 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index 8f4767ac4..90324f48b 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index 86375df34..8ea799f60 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -30,7 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index a2e2a4d17..635408fd3 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -29,7 +29,7 @@ msgid "Attribute Code" msgstr "Code de l'attribut" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index c7cada9b9..fc63236c9 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index a650c9019..a6fada007 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -16,8 +16,8 @@ msgstr "" "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" +"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" "X-Generator: Weblate 3.9.1\n" #. module: product_variant_default_code @@ -32,7 +32,7 @@ msgid "Attribute Code" msgstr "Šifra atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index 0e77d00a1..d6e38aa6e 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -33,7 +33,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index fa81c546b..89b97e507 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Codice Attributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index fa868ddf6..36b52e66b 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 5596ca355..7e76f0823 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -25,7 +25,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index 70db6fa7d..bcc51ee55 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index e7e4a6ae3..0fd13ede8 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index fe1c454a3..b9d95870d 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index c397cf6f9..bca28908c 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index cd6e1ead7..ab004f523 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index 1dd2f5621..e462083ff 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -31,7 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:182 +#: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 3f6bddc5a..37c0daa78 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -123,14 +123,18 @@ def create(self, vals): return super(ProductTemplate, self).create(vals) def write(self, vals): + with_variants = self.env['product.template'] product_obj = self.env['product.product'] if ('reference_mask' in vals and not vals['reference_mask'] or not self.user_has_groups( 'product_variant_default_code.group_product_default_code' )): - if self.attribute_line_ids: - vals['reference_mask'] = self._get_default_mask() - result = super(ProductTemplate, self).write(vals) + with_variants = self.filtered("attribute_line_ids") + for template in with_variants: + new_dict = dict(vals) + new_dict['reference_mask'] = template._get_default_mask() + super(ProductTemplate, template).write(new_dict) + super(ProductTemplate, self - with_variants).write(vals) if vals.get('reference_mask'): cond = [('product_tmpl_id', '=', self.id), ('manual_code', '=', False)] @@ -138,7 +142,7 @@ def write(self, vals): for product in products: if product.reference_mask: render_default_code(product, product.reference_mask) - return result + return True @api.model def _guess_main_lang(self): From 6742e03911f46f3b0f35157e6ace70968f318ff9 Mon Sep 17 00:00:00 2001 From: Pedro Castro Silva Date: Tue, 2 Jun 2020 17:46:55 +0000 Subject: [PATCH 19/65] Added translation using Weblate (Portuguese) --- product_variant_default_code/i18n/pt.po | 143 ++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 product_variant_default_code/i18n/pt.po diff --git a/product_variant_default_code/i18n/pt.po b/product_variant_default_code/i18n/pt.po new file mode 100644 index 000000000..87c3d9cac --- /dev/null +++ b/product_variant_default_code/i18n/pt.po @@ -0,0 +1,143 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_default_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: pt\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: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix +msgid "Add prefix to product variant reference (default code)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code +msgid "Attribute Code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:186 +#: sql_constraint:product.attribute:0 +#, python-format +msgid "Attribute Name must be unique!" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute_value +msgid "Attribute Value" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code +msgid "Attribute Value Code" +msgstr "" + +#. module: product_variant_default_code +#: selection:res.config.settings,group_product_default_code:0 +msgid "Automask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Defines how you want to manage the Variant default code" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:38 +#, python-format +msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" +msgstr "" + +#. module: product_variant_default_code +#: selection:res.config.settings,group_product_default_code:0 +msgid "Manual Mask" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code +msgid "Manual Reference" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_attribute +msgid "Product Attribute" +msgstr "" + +#. module: product_variant_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code +msgid "Product Default Code Behavior" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product Default Code behaviour" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model,name:product_variant_default_code.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "Product Variants" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix +msgid "Reference Prefix" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask +msgid "Reference mask for building internal references of a variant generated from this template.\n" +"Example:\n" +"A product named ABC with 2 attributes: Size and Color:\n" +"Product: ABC\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Size: L (l), XL(x)\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +" When saved, the default code on variants will be something like \n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +"Note: make sure characters \"[,]\" do not appear in your attribute name" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask +msgid "Variant reference mask" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view +msgid "[attribute3]-[attribute1]" +msgstr "" From 9b2299a5bb2628e6223fe945b21bc2322873b4b8 Mon Sep 17 00:00:00 2001 From: Pedro Castro Silva Date: Tue, 2 Jun 2020 17:47:31 +0000 Subject: [PATCH 20/65] Translated using Weblate (Portuguese) Currently translated at 100.0% (22 of 22 strings) Translation: product-variant-12.0/product-variant-12.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-12-0/product-variant-12-0-product_variant_default_code/pt/ --- product_variant_default_code/i18n/pt.po | 62 +++++++++++++++++-------- 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/product_variant_default_code/i18n/pt.po b/product_variant_default_code/i18n/pt.po index 87c3d9cac..cf6c612df 100644 --- a/product_variant_default_code/i18n/pt.po +++ b/product_variant_default_code/i18n/pt.po @@ -6,109 +6,114 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-06-02 20:19+0000\n" +"Last-Translator: Pedro Castro Silva \n" "Language-Team: none\n" "Language: pt\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" +"X-Generator: Weblate 3.10\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" msgstr "" +"Adicionar prefixo à referência da variante de produto (código pré-definido)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code msgid "Attribute Code" -msgstr "" +msgstr "Código do Atributo" #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:186 #: sql_constraint:product.attribute:0 #, python-format msgid "Attribute Name must be unique!" -msgstr "" +msgstr "O Nome do Atributo tem que ser único!" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value msgid "Attribute Value" -msgstr "" +msgstr "Valor do Atributo" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code msgid "Attribute Value Code" -msgstr "" +msgstr "Código do Valor do Atributo" #. module: product_variant_default_code #: selection:res.config.settings,group_product_default_code:0 msgid "Automask" -msgstr "" +msgstr "Auto-máscara" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" -msgstr "" +msgstr "Config Configurações" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Defines how you want to manage the Variant default code" -msgstr "" +msgstr "Define como quer gerir o código pré-definido da Variante" #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:38 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" +"Foi encontrado um nome de atributo não reconhecido na \"Máscara de " +"Referência da Variante\"" #. module: product_variant_default_code #: selection:res.config.settings,group_product_default_code:0 msgid "Manual Mask" -msgstr "" +msgstr "Máscara Manual" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" -msgstr "" +msgstr "Referência Manual" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product msgid "Product" -msgstr "" +msgstr "Produto" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute msgid "Product Attribute" -msgstr "" +msgstr "Atributo de Produto" #. module: product_variant_default_code #: model:res.groups,name:product_variant_default_code.group_product_default_code msgid "Product Default Code Behavior" -msgstr "" +msgstr "Comportamento do Código Pré-definido do Produto" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Default Code behaviour" -msgstr "" +msgstr "Comportamento do Código Pré-definido do Produto" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" -msgstr "" +msgstr "Modelo de Produto" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration msgid "Product Variants" -msgstr "" +msgstr "Variantes de Produto" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" -msgstr "" +msgstr "Prefixo da Referência" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask @@ -125,19 +130,38 @@ msgid "Reference mask for building internal references of a variant generated fr " `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" +"Máscara da referência para a construção de referências internas de uma " +"variante gerada a partir deste modelo.\n" +"Exemplo:\n" +"Um produto chamado ABC com 2 atributos: Tamanho e Cor:\n" +"Produto: ABC\n" +"Cor: Vermelho(r), Amarelo(y), Preto(b) #Vermelho, Amarelo e Preto são os " +"valores do atributo, `r`, `y`, `b` são os códigos correspondentes\n" +"Tamanho: L (l), XL(x)\n" +"Definindo a máscara de referência da variante como `[Cor]-[Tamanho]`, o " +"código pré-definido nas variantes será algo como `r-l` `b-l` `r-x` ...\n" +"Se quiser, pode até ter o nome do atributo a aparecer mais do que uma vez na " +"máscara. P. ex.,`fancyA/[Tamanho]~[Cor]~[Tamanho]`\n" +"Uma vez gravado, o código pré-definido nas variantes será algo do tipo \n" +" `fancyA/l~r~l` (para a variante com Cor \"Vermelho\" e Tamanho \"L\") `" +"fancyA/x~y~x` (na variante com Cor \"Amarelo\" e Tamanho \"XL\")\n" +"Nota: certifique-se de que os caracteres \"[,]\" não aparecem no nome do seu " +"atributo" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" msgstr "" +"Definir o comportamento dos códigos (depende da utilização de variantes: " +"veja a configuração de Vendas/Compras)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" -msgstr "" +msgstr "Máscara de referência da variante" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" -msgstr "" +msgstr "[atributo3]-[atributo1]" From f3b0b95fcfbfee4423b27f5d59e75b2f621730b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Mon, 2 Nov 2020 14:22:51 +0000 Subject: [PATCH 21/65] [IMP] product_variant_default_code: black, isort, prettier TT26450 --- product_variant_default_code/README.rst | 87 +-- product_variant_default_code/__init__.py | 2 - product_variant_default_code/__manifest__.py | 41 +- .../data/ir_config_parameter.xml | 9 +- .../demo/attribute_demo.xml | 4 - .../models/__init__.py | 1 - .../models/config_settings.py | 17 +- .../models/product.py | 188 +++---- .../readme/CONFIGURATION.rst | 0 .../readme/CONTRIBUTORS.rst | 9 + .../readme/DESCRIPTION.rst | 18 + .../readme/ROADMAP.rst | 1 + product_variant_default_code/readme/USAGE.rst | 47 ++ .../security/product_security.xml | 6 +- .../static/description/index.html | 498 ++++++++++++++++++ .../tests/__init__.py | 2 - .../tests/test_variant_default_code.py | 249 +++++---- .../views/config_settings_view.xml | 13 +- .../views/product_attribute_value_view.xml | 30 +- .../views/product_attribute_view.xml | 19 +- .../views/product_view.xml | 30 +- 21 files changed, 948 insertions(+), 323 deletions(-) create mode 100644 product_variant_default_code/readme/CONFIGURATION.rst create mode 100644 product_variant_default_code/readme/CONTRIBUTORS.rst create mode 100644 product_variant_default_code/readme/DESCRIPTION.rst create mode 100644 product_variant_default_code/readme/ROADMAP.rst create mode 100644 product_variant_default_code/readme/USAGE.rst create mode 100644 product_variant_default_code/static/description/index.html diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index 769256222..624206bc6 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -1,11 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - ============================ Product Variant Default Code ============================ +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github + :target: https://github.com/OCA/product-variant/tree/13.0/product_variant_default_code + :alt: OCA/product-variant +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/product-variant-13-0/product-variant-13-0-product_variant_default_code + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/137/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior. @@ -25,8 +44,13 @@ variants references are automatically set. For example: - `JKT01-Wh-L` Jacket White L - `JKT01-Bl-L` Jacket Black L -Configuration -============= +**Table of contents** + +.. contents:: + :local: + +Usage +===== To set the reference mask up on any product template 'Variant reference mask' new field. @@ -48,7 +72,7 @@ Creating a product named *Jacket* with two attributes, *Size* and *Color*:: Color: Black(Bl), White(Wh) # Black and White are the attribute values; 'Bl' and 'Wh' are the corresponding codes Size: L (L), XL(XL) - + The automatically generated default value for the Variant reference mask will be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, `Wh-L`, `Bl-XL` and `Wh-XL`. @@ -67,7 +91,7 @@ would give `default_code` like this: `COBl-L`, `COWh-L`, `COBl-XL` and `COWh-XL`. Avoiding mask in variants -------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~ You can avoid this behavior or force a manual default_code on variant. To do so, go to *Product Variants > [any variant you want to set up]* and set @@ -76,54 +100,57 @@ variant internal reference will no longer be changed by this module. Unset `manual code` and the reference code will be unlocked again. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/137/10.0 - - Known issues / Roadmap ====================== -In case of attribute name update, related mask are not updated. +* In case of attribute name update, related mask are not updated. - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* AvancOSC +* Shine IT +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ * Alfredo de la Fuente -* Pedro M. Baeza * Tony Gu -* David Vidal * David Beal * Daniel Campos -Maintainer ----------- +* Tecnativa : + * David Vidal + * Pedro M. Baeza + * João Marques + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/product-variant `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_default_code/__init__.py b/product_variant_default_code/__init__.py index cde864bae..0650744f6 100644 --- a/product_variant_default_code/__init__.py +++ b/product_variant_default_code/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import models diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index f6e527b6a..ccc848b09 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -1,34 +1,27 @@ -# -*- coding: utf-8 -*- # Copyright 2014 AvancOSC - Alfredo de la Fuente # Copyright 2014 Tecnativa - Pedro M. Baeza # Copyright 2014 Shine IT - Tony Gu # Copyright 2017 Tecnativa - David Vidal # Copyright 2017 Akretion - David Beal # Copyright 2018 AvancOSC - Daniel Campos +# Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Product Variant Default Code', - 'version': '12.0.1.0.1', - 'author': 'AvancOSC,' - 'Shine IT,' - 'Tecnativa,' - 'Odoo Community Association (OCA)', - 'website': 'https://odoo-community.org/', - 'license': 'AGPL-3', - 'category': 'Product', - 'depends': [ - 'product', + "name": "Product Variant Default Code", + "version": "13.0.1.0.0", + "author": "AvancOSC," "Shine IT," "Tecnativa," "Odoo Community Association (OCA)", + "website": "https://odoo-community.org/", + "license": "AGPL-3", + "category": "Product", + "depends": ["product"], + "data": [ + "security/product_security.xml", + "data/ir_config_parameter.xml", + "views/product_attribute_value_view.xml", + "views/product_attribute_view.xml", + "views/product_view.xml", + "views/config_settings_view.xml", ], - 'data': [ - 'security/product_security.xml', - 'data/ir_config_parameter.xml', - 'views/product_attribute_value_view.xml', - 'views/product_attribute_view.xml', - 'views/product_view.xml', - 'views/config_settings_view.xml', - ], - 'demo': [ - 'demo/attribute_demo.xml', - ], - 'installable': True + "demo": ["demo/attribute_demo.xml"], + "installable": True, } diff --git a/product_variant_default_code/data/ir_config_parameter.xml b/product_variant_default_code/data/ir_config_parameter.xml index 4e236df05..21da4e991 100644 --- a/product_variant_default_code/data/ir_config_parameter.xml +++ b/product_variant_default_code/data/ir_config_parameter.xml @@ -1,16 +1,11 @@ - - + default_reference_separator - - - + default_reference_missing_placeholder / - diff --git a/product_variant_default_code/demo/attribute_demo.xml b/product_variant_default_code/demo/attribute_demo.xml index bff9b53d7..ae8d5f76b 100644 --- a/product_variant_default_code/demo/attribute_demo.xml +++ b/product_variant_default_code/demo/attribute_demo.xml @@ -1,19 +1,15 @@ - M - C - W - diff --git a/product_variant_default_code/models/__init__.py b/product_variant_default_code/models/__init__.py index a7c8121d9..267a23829 100644 --- a/product_variant_default_code/models/__init__.py +++ b/product_variant_default_code/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/product_variant_default_code/models/config_settings.py b/product_variant_default_code/models/config_settings.py index 800c9cbea..8a5c2be34 100644 --- a/product_variant_default_code/models/config_settings.py +++ b/product_variant_default_code/models/config_settings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -6,14 +5,12 @@ class BaseConfiguration(models.TransientModel): - _inherit = 'res.config.settings' + _inherit = "res.config.settings" - group_product_default_code = fields.Selection([ - (0, 'Automask'), - (1, 'Manual Mask')], - string='Product Default Code behaviour', - help='Set behaviour of codes (depends on variant use: ' - 'see Sales/Purchases configuration)', - implied_group='product_variant_default_code' - '.group_product_default_code', + group_product_default_code = fields.Selection( + selection=[("0", "Automask"), ("1", "Manual Mask")], + string="Product Default Code behaviour", + help="Set behaviour of codes (depends on variant use: " + "see Sales/Purchases configuration)", + implied_group="product_variant_default_code" ".group_product_default_code", ) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 37c0daa78..d8d1a9d74 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014 AvancOSC - Alfredo de la Fuente # Copyright 2014 Tecnativa - Pedro M. Baeza # Copyright 2014 Shine IT - Tony Gu @@ -6,24 +5,25 @@ # Copyright 2018 Avanzosc S.L. - Daniel Campos # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import _, api, fields, models -from odoo.exceptions import UserError import re -from string import Template from collections import defaultdict +from string import Template + +from odoo import _, api, fields, models +from odoo.exceptions import UserError class ReferenceMask(Template): - pattern = r'''\[(?: + pattern = r"""\[(?: (?P\[) | (?P[^\]]+?)\] | (?P[^\]]+?)\] | (?P) - )''' + )""" def extract_token(s): - pattern = re.compile(r'\[([^\]]+?)\]') + pattern = re.compile(r"\[([^\]]+?)\]") return set(pattern.findall(s)) @@ -32,11 +32,11 @@ def sanitize_reference_mask(product, mask): tokens = extract_token(mask) attribute_names = set() for line in product.attribute_line_ids: - attribute_names.add( - line.attribute_id.with_context(lang=main_lang).name) + attribute_names.add(line.attribute_id.with_context(lang=main_lang).name) if not tokens.issubset(attribute_names): - raise UserError(_('Found unrecognized attribute name in "Variant ' - 'Reference Mask"')) + raise UserError( + _('Found unrecognized attribute name in "Variant ' 'Reference Mask"') + ) def get_rendered_default_code(product, mask): @@ -53,8 +53,10 @@ def get_rendered_default_code(product, mask): missing_attrs = all_attrs - set(product_attrs.keys()) missing = dict.fromkeys( missing_attrs, - product.env['ir.config_parameter'].sudo().get_param( - 'default_reference_missing_placeholder')) + product.env["ir.config_parameter"] + .sudo() + .get_param("default_reference_missing_placeholder"), + ) product_attrs.update(missing) default_code = reference_mask.safe_substitute(product_attrs) return default_code @@ -65,79 +67,84 @@ def render_default_code(product, mask): class ProductTemplate(models.Model): - _inherit = 'product.template' + _inherit = "product.template" code_prefix = fields.Char( - string='Reference Prefix', oldname='prefix_code', - help='Add prefix to product variant reference (default code)', + string="Reference Prefix", + help="Add prefix to product variant reference (default code)", ) reference_mask = fields.Char( - string='Variant reference mask', copy=False, - help='Reference mask for building internal references of a ' - 'variant generated from this template.\n' - - 'Example:\n' - 'A product named ABC with 2 attributes: Size and Color:\n' - - 'Product: ABC\n' - 'Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are ' - 'the attribute value, `r`, `y`, `b` are the corresponding code\n' - 'Size: L (l), XL(x)\n' - - 'When setting Variant reference mask to `[Color]-[Size]`, the ' - 'default code on the variants will be something like `r-l` ' - '`b-l` `r-x` ...\n' - - 'If you like, You can even have the attribute name appear more' - ' than once in the mask. Such as,' - '`fancyA/[Size]~[Color]~[Size]`\n' - ' When saved, the default code on variants will be ' - 'something like \n' - ' `fancyA/l~r~l` (for variant with Color "Red" and Size "L") ' - ' `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")' - - '\nNote: make sure characters "[,]" do not appear in your ' - 'attribute name') + string="Variant reference mask", + copy=False, + help="Reference mask for building internal references of a " + "variant generated from this template.\n" + "Example:\n" + "A product named ABC with 2 attributes: Size and Color:\n" + "Product: ABC\n" + "Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are " + "the attribute value, `r`, `y`, `b` are the corresponding code\n" + "Size: L (l), XL(x)\n" + "When setting Variant reference mask to `[Color]-[Size]`, the " + "default code on the variants will be something like `r-l` " + "`b-l` `r-x` ...\n" + "If you like, You can even have the attribute name appear more" + " than once in the mask. Such as," + "`fancyA/[Size]~[Color]~[Size]`\n" + " When saved, the default code on variants will be " + "something like \n" + ' `fancyA/l~r~l` (for variant with Color "Red" and Size "L") ' + ' `fancyA/x~y~x` (for variant with Color "Yellow" and Size "XL")' + '\nNote: make sure characters "[,]" do not appear in your ' + "attribute name", + ) def _get_default_mask(self): attribute_names = [] - default_reference_separator = self.env[ - 'ir.config_parameter' - ].sudo().get_param('default_reference_separator') + default_reference_separator = ( + self.env["ir.config_parameter"] + .sudo() + .get_param("default_reference_separator") + ) for line in self.attribute_line_ids: attribute_names.append(u"[{}]".format(line.attribute_id.name)) - default_mask = ((self.code_prefix or '') + - default_reference_separator.join(attribute_names)) + default_mask = (self.code_prefix or "") + default_reference_separator.join( + attribute_names + ) return default_mask @api.model def create(self, vals): product = self.new(vals) - if (not vals.get('reference_mask') and product.attribute_line_ids or - not self.user_has_groups( - 'product_variant_default_code.group_product_default_code' - )): - vals['reference_mask'] = product._get_default_mask() - elif vals.get('reference_mask'): - sanitize_reference_mask(product, vals['reference_mask']) + if ( + not vals.get("reference_mask") + and product.attribute_line_ids + or not self.user_has_groups( + "product_variant_default_code.group_product_default_code" + ) + ): + vals["reference_mask"] = product._get_default_mask() + elif vals.get("reference_mask"): + sanitize_reference_mask(product, vals["reference_mask"]) return super(ProductTemplate, self).create(vals) def write(self, vals): - with_variants = self.env['product.template'] - product_obj = self.env['product.product'] - if ('reference_mask' in vals and not vals['reference_mask'] or not - self.user_has_groups( - 'product_variant_default_code.group_product_default_code' - )): + with_variants = self.env["product.template"] + product_obj = self.env["product.product"] + if ( + "reference_mask" in vals + and not vals["reference_mask"] + or not self.user_has_groups( + "product_variant_default_code.group_product_default_code" + ) + ): with_variants = self.filtered("attribute_line_ids") for template in with_variants: new_dict = dict(vals) - new_dict['reference_mask'] = template._get_default_mask() + new_dict["reference_mask"] = template._get_default_mask() super(ProductTemplate, template).write(new_dict) super(ProductTemplate, self - with_variants).write(vals) - if vals.get('reference_mask'): - cond = [('product_tmpl_id', '=', self.id), - ('manual_code', '=', False)] + if vals.get("reference_mask"): + cond = [("product_tmpl_id", "=", self.id), ("manual_code", "=", False)] products = product_obj.search(cond) for product in products: if product.reference_mask: @@ -148,20 +155,20 @@ def write(self, vals): def _guess_main_lang(self): """ Used by get_rendered_default_code() """ - english = self.env.ref('base.lang_en') + english = self.env.ref("base.lang_en") if english.active: return english.code else: # Naive/simple implementation: # you may inherit to override it in your custom code # to return the language code of your choice - return self.env['res.lang'].search([], limit=1).code + return self.env["res.lang"].search([], limit=1).code class ProductProduct(models.Model): - _inherit = 'product.product' + _inherit = "product.product" - manual_code = fields.Boolean(string='Manual Reference') + manual_code = fields.Boolean(string="Manual Reference") @api.model def create(self, vals): @@ -170,63 +177,58 @@ def create(self, vals): render_default_code(product, product.reference_mask) return product - @api.onchange('default_code') + @api.onchange("default_code") def onchange_default_code(self): self.manual_code = bool(self.default_code) class ProductAttribute(models.Model): - _inherit = 'product.attribute' + _inherit = "product.attribute" - code = fields.Char( - string='Attribute Code', - ) + code = fields.Char(string="Attribute Code",) _sql_constraints = [ - ('number_uniq', 'unique(name)', _('Attribute Name must be unique!'))] + ("number_uniq", "unique(name)", _("Attribute Name must be unique!")) + ] def write(self, vals): - if 'code' not in vals: + if "code" not in vals: return super(ProductAttribute, self).write(vals) result = super(ProductAttribute, self).write(vals) # Rewrite reference on all product variants affected for product in self.mapped( - 'attribute_line_ids.product_tmpl_id.product_variant_ids').\ - filtered(lambda x: x.product_tmpl_id.reference_mask and not - x.manual_code): + "attribute_line_ids.product_tmpl_id.product_variant_ids" + ).filtered(lambda x: x.product_tmpl_id.reference_mask and not x.manual_code): render_default_code(product, product.reference_mask) return result class ProductAttributeValue(models.Model): - _inherit = 'product.attribute.value' + _inherit = "product.attribute.value" - @api.onchange('name') + @api.onchange("name") def onchange_name(self): if self.name: self.code = self.name[0:2] - code = fields.Char( - string='Attribute Value Code', - default=onchange_name, - oldname='attribute_code', - ) + code = fields.Char(string="Attribute Value Code", default=onchange_name,) @api.model def create(self, vals): - if 'code' not in vals: - vals['code'] = vals.get('name', '')[0:2] + if "code" not in vals: + vals["code"] = vals.get("name", "")[0:2] return super(ProductAttributeValue, self).create(vals) def write(self, vals): - if 'code' not in vals: + if "code" not in vals: return super(ProductAttributeValue, self).write(vals) result = super(ProductAttributeValue, self).write(vals) # Rewrite reference on all product variants affected - for product in self.env['product.product'].search( - [('attribute_value_ids', 'in', self.ids)]).filtered( - lambda x: x.product_tmpl_id.reference_mask and not - x.manual_code - ).mapped('product_tmpl_id.product_variant_ids'): + for product in ( + self.env["product.product"] + .search([("attribute_value_ids", "in", self.ids)]) + .filtered(lambda x: x.product_tmpl_id.reference_mask and not x.manual_code) + .mapped("product_tmpl_id.product_variant_ids") + ): render_default_code(product, product.reference_mask) return result diff --git a/product_variant_default_code/readme/CONFIGURATION.rst b/product_variant_default_code/readme/CONFIGURATION.rst new file mode 100644 index 000000000..e69de29bb diff --git a/product_variant_default_code/readme/CONTRIBUTORS.rst b/product_variant_default_code/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..652eb45c1 --- /dev/null +++ b/product_variant_default_code/readme/CONTRIBUTORS.rst @@ -0,0 +1,9 @@ +* Alfredo de la Fuente +* Tony Gu +* David Beal +* Daniel Campos + +* Tecnativa : + * David Vidal + * Pedro M. Baeza + * João Marques diff --git a/product_variant_default_code/readme/DESCRIPTION.rst b/product_variant_default_code/readme/DESCRIPTION.rst new file mode 100644 index 000000000..36ddbda6d --- /dev/null +++ b/product_variant_default_code/readme/DESCRIPTION.rst @@ -0,0 +1,18 @@ +This module automatically generate Product Reference (default_code) +according to attributes data with a configurable behavior. + +It defines a reference mask on the product templates so the +variants references are automatically set. For example: + +- Product template: Jacket +- Attributes: + - Color: White, Black + - Size: M, L +- Reference mask: `JKT01-[Color]-[Size]` + +- Reference on variants: + + - `JKT01-Wh-M` Jacket White M + - `JKT01-Bl-M` Jacket Black M + - `JKT01-Wh-L` Jacket White L + - `JKT01-Bl-L` Jacket Black L diff --git a/product_variant_default_code/readme/ROADMAP.rst b/product_variant_default_code/readme/ROADMAP.rst new file mode 100644 index 000000000..79d630a39 --- /dev/null +++ b/product_variant_default_code/readme/ROADMAP.rst @@ -0,0 +1 @@ +* In case of attribute name update, related mask are not updated. diff --git a/product_variant_default_code/readme/USAGE.rst b/product_variant_default_code/readme/USAGE.rst new file mode 100644 index 000000000..84eea84e0 --- /dev/null +++ b/product_variant_default_code/readme/USAGE.rst @@ -0,0 +1,47 @@ +To set the reference mask up on any product template 'Variant reference mask' +new field. + +When creating a new product template without specifying the *Variant reference +mask*, a default value for *Variant reference mask* will be automatically +generated according to the attribute line settings on the product template (if +any). The mask will then be used as an instruction to generate default code of +each product variant of the product template with the corresponding *Attribute +Code* (of the attribute value) inserted. Besides the default value, *Variant +reference mask* can be configured to your liking, make sure putting the +*Attribute Name* inside `[]` marks (it is case sensitive). + +Example: + +Creating a product named *Jacket* with two attributes, *Size* and *Color*:: + + Product: Jacket + Color: Black(Bl), White(Wh) # Black and White are the attribute values; + 'Bl' and 'Wh' are the corresponding codes + Size: L (L), XL(XL) + +The automatically generated default value for the Variant reference mask will +be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, +`Wh-L`, `Bl-XL` and `Wh-XL`. + +The mask value can be fully customized whatever you like. You can even have +the attribute name appear more than once in the mask such as, +`Jacket/[Size]~[Color]~[Size]`, and the generated code on variants will be +something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). + +When the code attribute is changed, it automatically regenerates the 'default +code' on all variants affected. + +Aditionally, a product attribute can be set and so it will be appended to the +product `default_code`. In the first example, setting a `Color` code to `CO` +would give `default_code` like this: `COBl-L`, `COWh-L`, `COBl-XL` and +`COWh-XL`. + +Avoiding mask in variants +~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can avoid this behavior or force a manual default_code on variant. To do +so, go to *Product Variants > [any variant you want to set up]* and set +manually its reference code. The field `manual code` will be set to on and the +variant internal reference will no longer be changed by this module. + +Unset `manual code` and the reference code will be unlocked again. diff --git a/product_variant_default_code/security/product_security.xml b/product_variant_default_code/security/product_security.xml index a03337786..e8f0a3e1f 100644 --- a/product_variant_default_code/security/product_security.xml +++ b/product_variant_default_code/security/product_security.xml @@ -1,9 +1,7 @@ - + - Product Default Code Behavior - + - diff --git a/product_variant_default_code/static/description/index.html b/product_variant_default_code/static/description/index.html new file mode 100644 index 000000000..6346c4f09 --- /dev/null +++ b/product_variant_default_code/static/description/index.html @@ -0,0 +1,498 @@ + + + + + + +Product Variant Default Code + + + +
+

Product Variant Default Code

+ + +

Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runbot

+

This module automatically generate Product Reference (default_code) +according to attributes data with a configurable behavior.

+

It defines a reference mask on the product templates so the +variants references are automatically set. For example:

+
    +
  • Product template: Jacket
  • +
  • Attributes: +- Color: White, Black +- Size: M, L
  • +
  • Reference mask: JKT01-[Color]-[Size]
  • +
  • Reference on variants:
      +
    • JKT01-Wh-M Jacket White M
    • +
    • JKT01-Bl-M Jacket Black M
    • +
    • JKT01-Wh-L Jacket White L
    • +
    • JKT01-Bl-L Jacket Black L
    • +
    +
  • +
+

Table of contents

+ +
+

Usage

+

To set the reference mask up on any product template ‘Variant reference mask’ +new field.

+

When creating a new product template without specifying the Variant reference +mask, a default value for Variant reference mask will be automatically +generated according to the attribute line settings on the product template (if +any). The mask will then be used as an instruction to generate default code of +each product variant of the product template with the corresponding Attribute +Code (of the attribute value) inserted. Besides the default value, Variant +reference mask can be configured to your liking, make sure putting the +Attribute Name inside [] marks (it is case sensitive).

+

Example:

+

Creating a product named Jacket with two attributes, Size and Color:

+
+Product: Jacket
+Color: Black(Bl), White(Wh) # Black and White are the attribute values;
+                              'Bl' and 'Wh' are the corresponding codes
+Size: L (L), XL(XL)
+
+

The automatically generated default value for the Variant reference mask will +be [Color]-[Size] and so the ‘default code’ on the variants will be Bl-L, +Wh-L, Bl-XL and Wh-XL.

+

The mask value can be fully customized whatever you like. You can even have +the attribute name appear more than once in the mask such as, +Jacket/[Size]~[Color]~[Size], and the generated code on variants will be +something like Jacket/L~Bl~L (for variant with Color “Black” and Size “L”).

+

When the code attribute is changed, it automatically regenerates the ‘default +code’ on all variants affected.

+

Aditionally, a product attribute can be set and so it will be appended to the +product default_code. In the first example, setting a Color code to CO +would give default_code like this: COBl-L, COWh-L, COBl-XL and +COWh-XL.

+
+

Avoiding mask in variants

+

You can avoid this behavior or force a manual default_code on variant. To do +so, go to Product Variants > [any variant you want to set up] and set +manually its reference code. The field manual code will be set to on and the +variant internal reference will no longer be changed by this module.

+

Unset manual code and the reference code will be unlocked again.

+
+
+
+

Known issues / Roadmap

+
    +
  • In case of attribute name update, related mask are not updated.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • AvancOSC
  • +
  • Shine IT
  • +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/product-variant project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/product_variant_default_code/tests/__init__.py b/product_variant_default_code/tests/__init__.py index 71c112f14..d8bd61891 100644 --- a/product_variant_default_code/tests/__init__.py +++ b/product_variant_default_code/tests/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import test_variant_default_code diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 549407e21..5689703d7 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -7,155 +6,205 @@ class TestVariantDefaultCode(common.SavepointCase): - @classmethod def setUpClass(cls): super(TestVariantDefaultCode, cls).setUpClass() cls.group_default_code = cls.env.ref( - 'product_variant_default_code.group_product_default_code') - cls.attr1 = cls.env['product.attribute'].create({'name': 'TSize'}) - cls.attr2 = cls.env['product.attribute'].create({'name': 'TColor'}) - cls.attr1_1 = cls.env['product.attribute.value'].create({ - 'name': 'L', 'attribute_id': cls.attr1.id - }) - cls.attr1_2 = cls.env['product.attribute.value'].create({ - 'name': 'XL', 'attribute_id': cls.attr1.id - }) - cls.attr2_1 = cls.env['product.attribute.value'].create({ - 'name': 'Red', 'attribute_id': cls.attr2.id - }) - cls.attr2_2 = cls.env['product.attribute.value'].create({ - 'name': 'Green', 'attribute_id': cls.attr2.id - }) - cls.template1 = cls.env['product.template'].create({ - 'name': 'Jacket', - 'attribute_line_ids': [ - (0, 0, {'attribute_id': cls.attr1.id, - 'value_ids': [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])] - }), - (0, 0, {'attribute_id': cls.attr2.id, - 'value_ids': [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])] - }), - ], - }) + "product_variant_default_code.group_product_default_code" + ) + cls.attr1 = cls.env["product.attribute"].create({"name": "TSize"}) + cls.attr2 = cls.env["product.attribute"].create({"name": "TColor"}) + cls.attr1_1 = cls.env["product.attribute.value"].create( + {"name": "L", "attribute_id": cls.attr1.id} + ) + cls.attr1_2 = cls.env["product.attribute.value"].create( + {"name": "XL", "attribute_id": cls.attr1.id} + ) + cls.attr2_1 = cls.env["product.attribute.value"].create( + {"name": "Red", "attribute_id": cls.attr2.id} + ) + cls.attr2_2 = cls.env["product.attribute.value"].create( + {"name": "Green", "attribute_id": cls.attr2.id} + ) + cls.template1 = cls.env["product.template"].create( + { + "name": "Jacket", + "attribute_line_ids": [ + ( + 0, + 0, + { + "attribute_id": cls.attr1.id, + "value_ids": [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])], + }, + ), + ( + 0, + 0, + { + "attribute_id": cls.attr2.id, + "value_ids": [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])], + }, + ), + ], + } + ) # This one with a preset reference mask - cls.template2 = cls.env['product.template'].create({ - 'name': 'Pants', - 'attribute_line_ids': [ - (0, 0, {'attribute_id': cls.attr1.id, - 'value_ids': [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])] - }), - (0, 0, {'attribute_id': cls.attr2.id, - 'value_ids': [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])] - }), - ], - 'reference_mask': 'P01/[TSize][TColor]', - }) + cls.template2 = cls.env["product.template"].create( + { + "name": "Pants", + "attribute_line_ids": [ + ( + 0, + 0, + { + "attribute_id": cls.attr1.id, + "value_ids": [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])], + }, + ), + ( + 0, + 0, + { + "attribute_id": cls.attr2.id, + "value_ids": [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])], + }, + ), + ], + "reference_mask": "P01/[TSize][TColor]", + } + ) def test_01_check_default_codes(self): # As no mask was set, a default one should be: - self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') + self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") # Check that variants code are generated according to rules - for product in self.template1.mapped('product_variant_ids'): + for product in self.template1.mapped("product_variant_ids"): expected_code = ( product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1).name[0:2] + '-' + - product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2).name[0:2]) + lambda x: x.attribute_id == self.attr1 + ).name[0:2] + + "-" + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2 + ).name[0:2] + ) self.assertEqual(product.default_code, expected_code) def test_02_check_default_codes_preexistent_mask(self): self.env.user.groups_id |= self.group_default_code - self.template2.reference_mask = 'P01/[TSize][TColor]' - for product in self.template2.mapped('product_variant_ids'): + self.template2.reference_mask = "P01/[TSize][TColor]" + for product in self.template2.mapped("product_variant_ids"): expected_code = ( - 'P01/' + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1).name[0:2] + - product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2).name[0:2]) + "P01/" + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1 + ).name[0:2] + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2 + ).name[0:2] + ) self.assertEqual(product.default_code, expected_code) def test_03_reset_reference_mask_to_default(self): # Erase the previous mask: 'P01/[TSize][TColor]' - self.template2.reference_mask = '' + self.template2.reference_mask = "" # Mask is set to default now: - self.assertEqual(self.template1.reference_mask, '[TSize]-[TColor]') + self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") def test_04_custom_reference_mask(self): self.env.user.groups_id |= self.group_default_code - self.template1.reference_mask = u'JKTÜ/[TColor]#[TSize]' - for product in self.template1.mapped('product_variant_ids'): + self.template1.reference_mask = u"JKTÜ/[TColor]#[TSize]" + for product in self.template1.mapped("product_variant_ids"): expected_code = ( - u'JKTÜ/' + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2).name[0:2] + '#' + - product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1).name[0:2]) + u"JKTÜ/" + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2 + ).name[0:2] + + "#" + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1 + ).name[0:2] + ) self.assertEqual(product.default_code, expected_code) def test_05_manual_code(self): self.env.user.groups_id |= self.group_default_code - self.assertEqual(self.template1.product_variant_ids[0].manual_code, - False) - self.template1.product_variant_ids[0].default_code = 'CANT-TOUCH-THIS' + self.assertEqual(self.template1.product_variant_ids[0].manual_code, False) + self.template1.product_variant_ids[0].default_code = "CANT-TOUCH-THIS" self.template1.product_variant_ids[0].onchange_default_code() - self.assertEqual(self.template1.product_variant_ids[0].manual_code, - True) + self.assertEqual(self.template1.product_variant_ids[0].manual_code, True) # Set a reference mask and check the other variants are changed - self.template1.reference_mask = 'J[TColor][TSize]' - for product in self.template1.mapped('product_variant_ids')[1:]: + self.template1.reference_mask = "J[TColor][TSize]" + for product in self.template1.mapped("product_variant_ids")[1:]: expected_code = ( - 'J' + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2).name[0:2] + - product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1).name[0:2]) + "J" + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr2 + ).name[0:2] + + product.attribute_value_ids.filtered( + lambda x: x.attribute_id == self.attr1 + ).name[0:2] + ) self.assertEqual(product.default_code, expected_code) # But this one isn't: - self.assertEqual(self.template1.product_variant_ids[0].default_code, - 'CANT-TOUCH-THIS') + self.assertEqual( + self.template1.product_variant_ids[0].default_code, "CANT-TOUCH-THIS" + ) def test_06_attribute_value_code_change_propagation(self): - self.attr1_1.code = 'OO' + self.attr1_1.code = "OO" # Check that the change spreads to every product - products = self.env['product.product'].search([ - ('attribute_value_ids', '=', self.attr1_1.id)]) + products = self.env["product.product"].search( + [("attribute_value_ids", "=", self.attr1_1.id)] + ) for product in products: - self.assertTrue('OO' in product.default_code) + self.assertTrue("OO" in product.default_code) def test_07_attribute_value_name_change(self): - self.attr1_1.name = 'Odoo' + self.attr1_1.name = "Odoo" self.attr1_1.onchange_name() - self.assertEqual(self.attr1_1.code, 'Od') - products = self.env['product.product'].search([ - ('attribute_value_ids', '=', self.attr1_1.id)]) + self.assertEqual(self.attr1_1.code, "Od") + products = self.env["product.product"].search( + [("attribute_value_ids", "=", self.attr1_1.id)] + ) # Check that the change spreads to every product for product in products: - self.assertTrue('Od' in product.default_code) + self.assertTrue("Od" in product.default_code) def test_08_sanitize_exception(self): self.env.user.groups_id |= self.group_default_code with self.assertRaises(UserError): - self.env['product.template'].create({ - 'name': 'Shirt', - 'attribute_line_ids': [ - (0, 0, {'attribute_id': self.attr1.id, - 'value_ids': [(6, 0, [self.attr1_1.id])] - }), - ], - 'reference_mask': 'FAIL:[TSize][TWrongAttr]', - }) + self.env["product.template"].create( + { + "name": "Shirt", + "attribute_line_ids": [ + ( + 0, + 0, + { + "attribute_id": self.attr1.id, + "value_ids": [(6, 0, [self.attr1_1.id])], + }, + ), + ], + "reference_mask": "FAIL:[TSize][TWrongAttr]", + } + ) def test_09_code_change_propagation(self): - self.attr1.code = 'AC' + self.attr1.code = "AC" # Check that the change spreads to every product - for product in self.attr1.mapped('attribute_line_ids').mapped( - 'product_tmpl_id').mapped('product_variant_ids'): - self.assertTrue('AC' in product.default_code) + for product in ( + self.attr1.mapped("attribute_line_ids") + .mapped("product_tmpl_id") + .mapped("product_variant_ids") + ): + self.assertTrue("AC" in product.default_code) def test_10_code_change_propagation_archived_variant(self): self.template1.product_variant_ids[0].active = False - self.attr1.code = 'o_o' - self.assertTrue( - 'o_o' in self.template1.product_variant_ids[0].default_code) - self.attr1_1.code = '^_^' - self.assertTrue( - '^_^' in self.template1.product_variant_ids[0].default_code) + self.attr1.code = "o_o" + self.assertTrue("o_o" in self.template1.product_variant_ids[0].default_code) + self.attr1_1.code = "^_^" + self.assertTrue("^_^" in self.template1.product_variant_ids[0].default_code) diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index 51c2027b4..266075b9d 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -1,9 +1,8 @@ - + - res.config.settings - +

Product Variants

@@ -12,16 +11,18 @@
-
-
diff --git a/product_variant_default_code/views/product_attribute_value_view.xml b/product_variant_default_code/views/product_attribute_value_view.xml index e302b3c66..f97d586e0 100644 --- a/product_variant_default_code/views/product_attribute_value_view.xml +++ b/product_variant_default_code/views/product_attribute_value_view.xml @@ -1,18 +1,18 @@ - + - - - - variants.tree.view.inh.variantdefaultcode + + + product.attribute.form.variant_default_code - product.attribute.value - - - - - - - - + product.attribute + + + + + + + diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index cb63c4cf4..55292e076 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -1,38 +1,37 @@ - + - product.attribute - + - + - product.attribute - - + + - product.attribute - + - diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index db8a65f88..39dfad77c 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -1,41 +1,41 @@ - + - product.template - + - - + /> + - product.product - + - product.product - + - From 7ac1f45cf4990363b90ab1db4e1ed1683d0865c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Tue, 3 Nov 2020 09:45:08 +0000 Subject: [PATCH 22/65] [MIG] product_variant_default_code: Migration to 13.0 TT26450 --- product_variant_default_code/__manifest__.py | 1 - .../models/config_settings.py | 13 +++-- .../models/product.py | 19 +++++-- .../security/product_security.xml | 2 +- .../tests/test_variant_default_code.py | 51 ++++++++++++------- .../views/config_settings_view.xml | 13 +++-- .../views/product_attribute_value_view.xml | 18 ------- .../views/product_attribute_view.xml | 3 +- .../views/product_view.xml | 2 +- 9 files changed, 65 insertions(+), 57 deletions(-) delete mode 100644 product_variant_default_code/views/product_attribute_value_view.xml diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index ccc848b09..3336acb34 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -17,7 +17,6 @@ "data": [ "security/product_security.xml", "data/ir_config_parameter.xml", - "views/product_attribute_value_view.xml", "views/product_attribute_view.xml", "views/product_view.xml", "views/config_settings_view.xml", diff --git a/product_variant_default_code/models/config_settings.py b/product_variant_default_code/models/config_settings.py index 8a5c2be34..dfe7f3045 100644 --- a/product_variant_default_code/models/config_settings.py +++ b/product_variant_default_code/models/config_settings.py @@ -1,4 +1,5 @@ # Copyright 2017 Tecnativa - David Vidal +# Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models @@ -7,10 +8,12 @@ class BaseConfiguration(models.TransientModel): _inherit = "res.config.settings" - group_product_default_code = fields.Selection( - selection=[("0", "Automask"), ("1", "Manual Mask")], - string="Product Default Code behaviour", - help="Set behaviour of codes (depends on variant use: " + group_product_default_code_manual_mask = fields.Boolean( + string="Product Default Code Manual Mask", + default=False, + help="Set behaviour of codes. Default: Automask" + " (depends on variant use: " "see Sales/Purchases configuration)", - implied_group="product_variant_default_code" ".group_product_default_code", + implied_group="product_variant_default_code" + ".group_product_default_code_manual_mask", ) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index d8d1a9d74..7b0a2b95c 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -3,6 +3,7 @@ # Copyright 2014 Shine IT - Tony Gu # Copyright 2017 Tecnativa - David Vidal # Copyright 2018 Avanzosc S.L. - Daniel Campos +# Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import re @@ -43,7 +44,8 @@ def get_rendered_default_code(product, mask): product_attrs = defaultdict(str) reference_mask = ReferenceMask(mask) main_lang = product.product_tmpl_id._guess_main_lang() - for value in product.attribute_value_ids: + for attr in product.product_template_attribute_value_ids: + value = attr.product_attribute_value_id attr_name = value.attribute_id.with_context(lang=main_lang).name if value.attribute_id.code: product_attrs[attr_name] += value.attribute_id.code @@ -119,7 +121,7 @@ def create(self, vals): not vals.get("reference_mask") and product.attribute_line_ids or not self.user_has_groups( - "product_variant_default_code.group_product_default_code" + "product_variant_default_code.group_product_default_code_manual_mask" ) ): vals["reference_mask"] = product._get_default_mask() @@ -134,7 +136,7 @@ def write(self, vals): "reference_mask" in vals and not vals["reference_mask"] or not self.user_has_groups( - "product_variant_default_code.group_product_default_code" + "product_variant_default_code.group_product_default_code_manual_mask" ) ): with_variants = self.filtered("attribute_line_ids") @@ -226,7 +228,16 @@ def write(self, vals): # Rewrite reference on all product variants affected for product in ( self.env["product.product"] - .search([("attribute_value_ids", "in", self.ids)]) + .search( + [ + ( + "product_template_attribute_value_ids" + ".product_attribute_value_id", + "in", + self.ids, + ) + ] + ) .filtered(lambda x: x.product_tmpl_id.reference_mask and not x.manual_code) .mapped("product_tmpl_id.product_variant_ids") ): diff --git a/product_variant_default_code/security/product_security.xml b/product_variant_default_code/security/product_security.xml index e8f0a3e1f..024d46a5d 100644 --- a/product_variant_default_code/security/product_security.xml +++ b/product_variant_default_code/security/product_security.xml @@ -1,6 +1,6 @@ - + Product Default Code Behavior diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 5689703d7..a351030b5 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -1,4 +1,5 @@ # Copyright 2017 Tecnativa - David Vidal +# Copyright 2020 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.exceptions import UserError @@ -10,7 +11,7 @@ class TestVariantDefaultCode(common.SavepointCase): def setUpClass(cls): super(TestVariantDefaultCode, cls).setUpClass() cls.group_default_code = cls.env.ref( - "product_variant_default_code.group_product_default_code" + "product_variant_default_code.group_product_default_code_manual_mask" ) cls.attr1 = cls.env["product.attribute"].create({"name": "TSize"}) cls.attr2 = cls.env["product.attribute"].create({"name": "TColor"}) @@ -81,12 +82,12 @@ def test_01_check_default_codes(self): # Check that variants code are generated according to rules for product in self.template1.mapped("product_variant_ids"): expected_code = ( - product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1 + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] + "-" - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] ) self.assertEqual(product.default_code, expected_code) @@ -97,11 +98,11 @@ def test_02_check_default_codes_preexistent_mask(self): for product in self.template2.mapped("product_variant_ids"): expected_code = ( "P01/" - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] ) self.assertEqual(product.default_code, expected_code) @@ -118,12 +119,12 @@ def test_04_custom_reference_mask(self): for product in self.template1.mapped("product_variant_ids"): expected_code = ( u"JKTÜ/" - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] + "#" - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] ) self.assertEqual(product.default_code, expected_code) @@ -139,11 +140,11 @@ def test_05_manual_code(self): for product in self.template1.mapped("product_variant_ids")[1:]: expected_code = ( "J" - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr2 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] - + product.attribute_value_ids.filtered( - lambda x: x.attribute_id == self.attr1 + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] ) self.assertEqual(product.default_code, expected_code) @@ -156,7 +157,13 @@ def test_06_attribute_value_code_change_propagation(self): self.attr1_1.code = "OO" # Check that the change spreads to every product products = self.env["product.product"].search( - [("attribute_value_ids", "=", self.attr1_1.id)] + [ + ( + "product_template_attribute_value_ids.product_attribute_value_id", + "=", + self.attr1_1.id, + ) + ] ) for product in products: self.assertTrue("OO" in product.default_code) @@ -166,7 +173,13 @@ def test_07_attribute_value_name_change(self): self.attr1_1.onchange_name() self.assertEqual(self.attr1_1.code, "Od") products = self.env["product.product"].search( - [("attribute_value_ids", "=", self.attr1_1.id)] + [ + ( + "product_template_attribute_value_ids.product_attribute_value_id", + "=", + self.attr1_1.id, + ) + ] ) # Check that the change spreads to every product for product in products: diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index 266075b9d..25973c2d5 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -4,21 +4,20 @@ res.config.settings - +

Product Variants

+
-
diff --git a/product_variant_default_code/views/product_attribute_value_view.xml b/product_variant_default_code/views/product_attribute_value_view.xml deleted file mode 100644 index f97d586e0..000000000 --- a/product_variant_default_code/views/product_attribute_value_view.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - product.attribute.form.variant_default_code - - product.attribute - - - - - - - - diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index 55292e076..a138f23d7 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -1,6 +1,7 @@ @@ -27,7 +28,7 @@ diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 39dfad77c..70550f4c1 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -15,7 +15,7 @@ placeholder="[attribute3]-[attribute1]" attrs="{'invisible': [('attribute_line_ids', '=', [])]}" - groups="product_variant_default_code.group_product_default_code" + groups="product_variant_default_code.group_product_default_code_manual_mask" /> From 2ac95c219c8258c050ba4da35e46c8dab78ff664 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 9 Nov 2020 20:31:31 +0000 Subject: [PATCH 23/65] [UPD] Update product_variant_default_code.pot --- product_variant_default_code/__manifest__.py | 2 +- .../i18n/product_variant_default_code.pot | 44 ++++++++----------- 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 3336acb34..c40fdacbc 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "13.0.1.0.0", + "version": "13.0.1.0.1", "author": "AvancOSC," "Shine IT," "Tecnativa," "Odoo Community Association (OCA)", "website": "https://odoo-community.org/", "license": "AGPL-3", diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 7e76f0823..078ccd2ee 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code +# * product_variant_default_code # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -25,8 +25,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -41,11 +41,6 @@ msgstr "" msgid "Attribute Value Code" msgstr "" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" -msgstr "" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" @@ -53,20 +48,18 @@ msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" @@ -83,14 +76,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -112,7 +104,8 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask -msgid "Reference mask for building internal references of a variant generated from this template.\n" +msgid "" +"Reference mask for building internal references of a variant generated from this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" @@ -126,8 +119,10 @@ msgid "Reference mask for building internal references of a variant generated fr msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code -msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "" +"Set behaviour of codes. Default: Automask (depends on variant use: see " +"Sales/Purchases configuration)" msgstr "" #. module: product_variant_default_code @@ -140,4 +135,3 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" - From 7f086d52c6ec1eb329f6a6361ec99c065de95d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Tue, 10 Nov 2020 07:48:05 +0000 Subject: [PATCH 24/65] [IMP] product_variant_default_code: black, isort, prettier --- product_variant_default_code/__manifest__.py | 2 +- product_variant_default_code/models/product.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index c40fdacbc..8aa73c9ec 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -10,7 +10,7 @@ "name": "Product Variant Default Code", "version": "13.0.1.0.1", "author": "AvancOSC," "Shine IT," "Tecnativa," "Odoo Community Association (OCA)", - "website": "https://odoo-community.org/", + "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", "category": "Product", "depends": ["product"], diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 7b0a2b95c..2528a3eb2 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -155,8 +155,7 @@ def write(self, vals): @api.model def _guess_main_lang(self): - """ Used by get_rendered_default_code() - """ + """Used by get_rendered_default_code()""" english = self.env.ref("base.lang_en") if english.active: return english.code @@ -187,7 +186,9 @@ def onchange_default_code(self): class ProductAttribute(models.Model): _inherit = "product.attribute" - code = fields.Char(string="Attribute Code",) + code = fields.Char( + string="Attribute Code", + ) _sql_constraints = [ ("number_uniq", "unique(name)", _("Attribute Name must be unique!")) @@ -213,7 +214,10 @@ def onchange_name(self): if self.name: self.code = self.name[0:2] - code = fields.Char(string="Attribute Value Code", default=onchange_name,) + code = fields.Char( + string="Attribute Value Code", + default=onchange_name, + ) @api.model def create(self, vals): From 5c7adf6e86e3880f86786d9f98722e161895e746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Tue, 10 Nov 2020 11:12:39 +0000 Subject: [PATCH 25/65] [MIG] product_variant_default_code: Migration to 14.0 TT26452 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 8aa73c9ec..d2d656986 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "13.0.1.0.1", + "version": "14.0.1.0.0", "author": "AvancOSC," "Shine IT," "Tecnativa," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From e9316e0d14c92081409f5949e85c0aa8f87dc197 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 11 Nov 2020 11:00:51 +0000 Subject: [PATCH 26/65] [UPD] Update product_variant_default_code.pot --- .../i18n/product_variant_default_code.pot | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 078ccd2ee..56c2e6873 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -54,12 +54,39 @@ msgid "" " Default: Automask" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" From b4eb4aaa5ccfe814956a8750a1678e2bcf0b4f6e Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 11 Nov 2020 11:15:45 +0000 Subject: [PATCH 27/65] [UPD] README.rst --- product_variant_default_code/README.rst | 10 +++++----- .../static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index 624206bc6..e8b658b2e 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -14,13 +14,13 @@ Product Variant Default Code :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github - :target: https://github.com/OCA/product-variant/tree/13.0/product_variant_default_code + :target: https://github.com/OCA/product-variant/tree/14.0/product_variant_default_code :alt: OCA/product-variant .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-variant-13-0/product-variant-13-0-product_variant_default_code + :target: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/137/13.0 + :target: https://runbot.odoo-community.org/runbot/137/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -111,7 +111,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -151,6 +151,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/product-variant `_ project on GitHub. +This module is part of the `OCA/product-variant `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_default_code/static/description/index.html b/product_variant_default_code/static/description/index.html index 6346c4f09..4058294fa 100644 --- a/product_variant_default_code/static/description/index.html +++ b/product_variant_default_code/static/description/index.html @@ -367,7 +367,7 @@

Product Variant Default Code

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runbot

This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior.

It defines a reference mask on the product templates so the @@ -456,7 +456,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -489,7 +489,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/product-variant project on GitHub.

+

This module is part of the OCA/product-variant project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From f301a79b8cdf3c630ff819f3a4b01ba66af2f776 Mon Sep 17 00:00:00 2001 From: Andrea Piovesana Date: Sat, 12 Dec 2020 08:09:54 +0100 Subject: [PATCH 28/65] [14.0] [FIX] enable edit of attribute code in form view missing the possibility to edit of attribute code in form view (and also tree view) --- .../views/product_attribute_view.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index a138f23d7..f36801a40 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -14,6 +14,15 @@
+ + product.attribute + + + + + + + product.attribute From aa1069319ac3b14f79d3553d32a59e9bad29e089 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 5 Feb 2021 20:19:42 +0100 Subject: [PATCH 29/65] [FIX] product_variant_default_code: Allow to edit attribute code It was present in tree view, but not in form view, and now the tree is not editable. --- product_variant_default_code/__manifest__.py | 4 ++-- product_variant_default_code/views/product_attribute_view.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index d2d656986..890ff0b74 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,8 +8,8 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.0.0", - "author": "AvancOSC," "Shine IT," "Tecnativa," "Odoo Community Association (OCA)", + "version": "14.0.1.1.0", + "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", "category": "Product", diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index f36801a40..beb03f324 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -36,6 +36,9 @@ product.attribute + + + Date: Tue, 16 Feb 2021 12:54:46 +0100 Subject: [PATCH 30/65] [FIX] product_variant_default_code: don't translate mask When a variant is created, the mask is evaluated expecting the main language term, so we should avoid taking the translated value when we are in another language. --- product_variant_default_code/models/product.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 2528a3eb2..e0c127976 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -107,8 +107,13 @@ def _get_default_mask(self): .sudo() .get_param("default_reference_separator") ) + # Get the attribute name in the main lang format, otherwise we could not + # match mask with the proper values + main_lang = self._guess_main_lang() for line in self.attribute_line_ids: - attribute_names.append(u"[{}]".format(line.attribute_id.name)) + attribute_names.append( + u"[{}]".format(line.attribute_id.with_context(lang=main_lang).name) + ) default_mask = (self.code_prefix or "") + default_reference_separator.join( attribute_names ) From 6a07f40cb386903098dfede6279fc9d5ce6d078f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 16 Feb 2021 17:05:51 +0000 Subject: [PATCH 31/65] product_variant_default_code 14.0.1.1.1 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 890ff0b74..ee260b608 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.1.0", + "version": "14.0.1.1.1", "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 06162cfee53200b60a0ee9f24a54c2ae80cba79d Mon Sep 17 00:00:00 2001 From: david Date: Thu, 18 Feb 2021 11:12:16 +0100 Subject: [PATCH 32/65] [FIX] product_variant_default_code: fix onchange code value When an attribute code is already set, we don't wan't to change it by chance if we set a new name in the value. The onchange should be just a helper to fill the initial value but it should be manually changed if needed later on. --- product_variant_default_code/models/product.py | 5 +++-- .../tests/test_variant_default_code.py | 14 +++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index e0c127976..135a5f338 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -216,8 +216,9 @@ class ProductAttributeValue(models.Model): @api.onchange("name") def onchange_name(self): - if self.name: - self.code = self.name[0:2] + """Set a default code for the value""" + if self.name and not self.code: + self.code = self.name[:2] code = fields.Char( string="Attribute Value Code", diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index a351030b5..383be965c 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -169,9 +169,10 @@ def test_06_attribute_value_code_change_propagation(self): self.assertTrue("OO" in product.default_code) def test_07_attribute_value_name_change(self): - self.attr1_1.name = "Odoo" + """Only set a default code if it wasn't set""" + self.attr1_1.name = "New Name" self.attr1_1.onchange_name() - self.assertEqual(self.attr1_1.code, "Od") + self.assertEqual(self.attr1_1.code, "L") products = self.env["product.product"].search( [ ( @@ -181,7 +182,14 @@ def test_07_attribute_value_name_change(self): ) ] ) - # Check that the change spreads to every product + # Check that the code persists + for product in products: + self.assertTrue("L" in product.default_code) + # Otherwise, if there's no code a default value is set + self.attr1_1.code = False + self.attr1_1.name = "Odoo" + self.attr1_1.onchange_name() + self.assertEqual(self.attr1_1.code, "Od") for product in products: self.assertTrue("Od" in product.default_code) From d1953aebcd77171ef66af58b4d14d302fd4e79d2 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 19 Feb 2021 07:16:35 +0000 Subject: [PATCH 33/65] product_variant_default_code 14.0.1.1.2 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index ee260b608..af28e58ab 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.1.1", + "version": "14.0.1.1.2", "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From dca78a1f09e649e13029999937459ef0ff4acd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Fri, 26 Feb 2021 08:42:04 +0000 Subject: [PATCH 34/65] [FIX] product_variant_default_code: FIx tests Tests can conflict with constriants added by other modules for the default_code We should create different product templates only if we can be sure they will compute different default_codes, otherwise they might trigger the unique(default_code) constrainted, if introduced by another module. TT28423 --- .../tests/test_variant_default_code.py | 40 +++++-------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 383be965c..3d45b4ea4 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -1,5 +1,5 @@ # Copyright 2017 Tecnativa - David Vidal -# Copyright 2020 Tecnativa - João Marques +# Copyright 2020-2021 Tecnativa - João Marques # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.exceptions import UserError @@ -50,31 +50,6 @@ def setUpClass(cls): ], } ) - # This one with a preset reference mask - cls.template2 = cls.env["product.template"].create( - { - "name": "Pants", - "attribute_line_ids": [ - ( - 0, - 0, - { - "attribute_id": cls.attr1.id, - "value_ids": [(6, 0, [cls.attr1_1.id, cls.attr1_2.id])], - }, - ), - ( - 0, - 0, - { - "attribute_id": cls.attr2.id, - "value_ids": [(6, 0, [cls.attr2_1.id, cls.attr2_2.id])], - }, - ), - ], - "reference_mask": "P01/[TSize][TColor]", - } - ) def test_01_check_default_codes(self): # As no mask was set, a default one should be: @@ -94,8 +69,15 @@ def test_01_check_default_codes(self): def test_02_check_default_codes_preexistent_mask(self): self.env.user.groups_id |= self.group_default_code - self.template2.reference_mask = "P01/[TSize][TColor]" - for product in self.template2.mapped("product_variant_ids"): + # Second template with custom reference mask must be created with correct + # user permissions + template2 = self.template1.copy( + { + "name": "Pants", + "reference_mask": "P01/[TSize][TColor]", + } + ) + for product in template2.mapped("product_variant_ids"): expected_code = ( "P01/" + product.product_template_attribute_value_ids.filtered( @@ -109,7 +91,7 @@ def test_02_check_default_codes_preexistent_mask(self): def test_03_reset_reference_mask_to_default(self): # Erase the previous mask: 'P01/[TSize][TColor]' - self.template2.reference_mask = "" + self.template1.reference_mask = "" # Mask is set to default now: self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") From ce6601dc89049958444bf64b752591d50bd94b4e Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 7 Mar 2021 06:22:52 +0000 Subject: [PATCH 35/65] product_variant_default_code 14.0.1.1.3 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index af28e58ab..3baa93dad 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.1.2", + "version": "14.0.1.1.3", "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 552d8fc0d3e2ab6b72371571c2012bebd463ffef Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 29 Jul 2021 12:07:14 +0000 Subject: [PATCH 36/65] product_variant_default_code 14.0.1.1.4 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 3baa93dad..d236e3ef8 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.1.3", + "version": "14.0.1.1.4", "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 54e2cbc74b26e330fc82f6efc0c88d30cff0f39e Mon Sep 17 00:00:00 2001 From: Kev-Roche Date: Mon, 13 Sep 2021 19:44:34 +0200 Subject: [PATCH 37/65] [14.0][IMP] product_variant_default_code: prefix_code as default_code by default --- .../models/config_settings.py | 6 ++++++ product_variant_default_code/models/product.py | 12 ++++++++++++ .../tests/test_variant_default_code.py | 6 ++++++ .../views/config_settings_view.xml | 11 +++++++++++ 4 files changed, 35 insertions(+) diff --git a/product_variant_default_code/models/config_settings.py b/product_variant_default_code/models/config_settings.py index dfe7f3045..d16060a09 100644 --- a/product_variant_default_code/models/config_settings.py +++ b/product_variant_default_code/models/config_settings.py @@ -17,3 +17,9 @@ class BaseConfiguration(models.TransientModel): implied_group="product_variant_default_code" ".group_product_default_code_manual_mask", ) + + prefix_as_default_code = fields.Boolean( + string="Reference Prefix as default Reference", + default=False, + config_parameter="product_variant_default_code.prefix_as_default_code", + ) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 135a5f338..28c89777c 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -170,6 +170,18 @@ def _guess_main_lang(self): # to return the language code of your choice return self.env["res.lang"].search([], limit=1).code + @api.depends( + "product_variant_ids", "product_variant_ids.default_code", "code_prefix" + ) + def _compute_default_code(self): + super()._compute_default_code() + if self.env["ir.config_parameter"].get_param("prefix_as_default_code"): + unique_variants = self.filtered( + lambda template: len(template.product_variant_ids) == 1 + ) + for template in self - unique_variants: + template.default_code = template.code_prefix + class ProductProduct(models.Model): _inherit = "product.product" diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 3d45b4ea4..e3deea3d7 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -211,3 +211,9 @@ def test_10_code_change_propagation_archived_variant(self): self.assertTrue("o_o" in self.template1.product_variant_ids[0].default_code) self.attr1_1.code = "^_^" self.assertTrue("^_^" in self.template1.product_variant_ids[0].default_code) + + def test_11_prefix_code_as_default_code_by_default(self): + self.assertFalse(self.template1.default_code) + self.env["ir.config_parameter"].set_param("prefix_as_default_code", True) + self.template1.code_prefix = "prefix_code" + self.assertTrue(self.template1.default_code, self.template1.code_prefix) diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index 25973c2d5..fb7ce4bf9 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -20,6 +20,17 @@ +
+
+ +
+
+
+
From 01bbc85ef37f3112397b03cfc33f9f49dac75be3 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sat, 18 Sep 2021 19:51:30 +0000 Subject: [PATCH 38/65] [UPD] Update product_variant_default_code.pot --- .../i18n/product_variant_default_code.pot | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 56c2e6873..a2503c3c8 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -54,6 +54,13 @@ msgid "" " Default: Automask" msgstr "" +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name @@ -128,6 +135,11 @@ msgstr "" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask From 189ccde5c418ab987fc6592b5b5ca510e6aa1db2 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 18 Sep 2021 19:55:26 +0000 Subject: [PATCH 39/65] product_variant_default_code 14.0.2.0.0 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index d236e3ef8..5b5de1f17 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -8,7 +8,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.1.1.4", + "version": "14.0.2.0.0", "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 0b9e96e77c4d5c62c6c12df94f74974719a4cbfb Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 18 Sep 2021 19:55:34 +0000 Subject: [PATCH 40/65] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/ --- product_variant_default_code/i18n/ar.po | 65 +++++++++--- product_variant_default_code/i18n/ca.po | 65 +++++++++--- product_variant_default_code/i18n/de.po | 65 +++++++++--- product_variant_default_code/i18n/es.po | 66 ++++++++---- product_variant_default_code/i18n/es_MX.po | 65 +++++++++--- product_variant_default_code/i18n/fi.po | 65 +++++++++--- product_variant_default_code/i18n/fr.po | 91 +++++++++++----- product_variant_default_code/i18n/fr_CH.po | 65 +++++++++--- product_variant_default_code/i18n/hr.po | 80 ++++++++++---- product_variant_default_code/i18n/hr_HR.po | 65 +++++++++--- product_variant_default_code/i18n/it.po | 68 ++++++++---- product_variant_default_code/i18n/nl_NL.po | 65 +++++++++--- product_variant_default_code/i18n/pt.po | 116 +++++++++++++++------ product_variant_default_code/i18n/pt_BR.po | 65 +++++++++--- product_variant_default_code/i18n/ro.po | 65 +++++++++--- product_variant_default_code/i18n/sl.po | 66 ++++++++---- product_variant_default_code/i18n/tr_TR.po | 65 +++++++++--- product_variant_default_code/i18n/vi_VN.po | 65 +++++++++--- product_variant_default_code/i18n/zh_CN.po | 65 +++++++++--- 19 files changed, 982 insertions(+), 350 deletions(-) diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index d8a3c393f..49b2e231a 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "المنتج" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index 975c9e707..e8ee9e859 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -30,8 +30,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -47,29 +47,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -88,14 +115,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -115,6 +141,11 @@ msgstr "Plantilla del producte" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -138,10 +169,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index 2e4b20558..dfaca2af4 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -30,8 +30,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -47,29 +47,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -88,14 +115,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -115,6 +141,11 @@ msgstr "Produktvorlage" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -138,10 +169,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index b2a208050..10c28e77d 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "El nombre del atributo debe ser único!." @@ -40,7 +40,6 @@ msgstr "El nombre del atributo debe ser único!." #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value #, fuzzy -#| msgid "Attribute Value Code" msgid "Attribute Value" msgstr "Código de valor de atributo" @@ -50,22 +49,36 @@ msgid "Attribute Value Code" msgstr "Código de valor de atributo" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" @@ -73,8 +86,21 @@ msgstr "" "variante\"" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -93,14 +119,13 @@ msgid "Product Attribute" msgstr "Atributo de producto" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -120,6 +145,11 @@ msgstr "Atributo de producto" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -143,10 +173,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index 90324f48b..c8b216cf0 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Plantilla del producto" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index 8ea799f60..5acf176e4 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -30,8 +30,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -47,29 +47,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -88,14 +115,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -115,6 +141,11 @@ msgstr "Tuotteen malli" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -138,10 +169,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index 635408fd3..2269265f6 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -29,8 +29,8 @@ msgid "Attribute Code" msgstr "Code de l'attribut" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "Le nom de l'attribut doit être unique !" @@ -38,7 +38,6 @@ msgstr "Le nom de l'attribut doit être unique !" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value #, fuzzy -#| msgid "Attribute Value Code" msgid "Attribute Value" msgstr "Code valeur de l'attribut" @@ -47,34 +46,60 @@ msgstr "Code valeur de l'attribut" msgid "Attribute Value Code" msgstr "Code valeur de l'attribut" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" -msgstr "Masque automatique" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings #, fuzzy -#| msgid "res.config.settings" msgid "Config Settings" msgstr "res.config.settings" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" "Nom d'attribut non reconnu trouvé dans \"Masque de référence de la variante\"" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" -msgstr "Masque manuel" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" +msgstr "" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code @@ -92,15 +117,14 @@ msgid "Product Attribute" msgstr "Attribut de l'article" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "Comportement du code par défaut du produit" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" -msgstr "Comportement du code par défaut du produit" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" +msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template @@ -119,6 +143,11 @@ msgstr "Attribut de l'article" msgid "Reference Prefix" msgstr "Préfixe de la référence" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -161,13 +190,11 @@ msgstr "" "nom de l'attribut" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" -"Définir le comportement des codes (dépend de l'utilisation des variantes : " -"voir la configuration Achats/Ventes" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask @@ -180,5 +207,21 @@ msgstr "Masque de référence de la variante" msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" +#~ msgid "Automask" +#~ msgstr "Masque automatique" + +#~ msgid "Manual Mask" +#~ msgstr "Masque manuel" + +#~ msgid "Product Default Code behaviour" +#~ msgstr "Comportement du code par défaut du produit" + +#~ msgid "" +#~ "Set behaviour of codes (depends on variant use: see Sales/Purchases " +#~ "configuration)" +#~ msgstr "" +#~ "Définir le comportement des codes (dépend de l'utilisation des " +#~ "variantes : voir la configuration Achats/Ventes" + #~ msgid "product.attribute.value" #~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index fc63236c9..4e161c5b9 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Template de produit" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index a6fada007..cc9bb57c6 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -32,8 +32,8 @@ msgid "Attribute Code" msgstr "Šifra atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "Šifra atributa mora biti jedinstvena!" @@ -48,11 +48,6 @@ msgstr "Vrijednost atributa" msgid "Attribute Value Code" msgstr "Šifra vrijednosti atributa" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" -msgstr "Auto-maskiranje" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" @@ -60,19 +55,51 @@ msgstr "Postavke" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" -msgstr "Definira kako želite upravljati zadanom šifrom varijante" +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" -msgstr "Ručna maska" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" +msgstr "" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code @@ -90,14 +117,13 @@ msgid "Product Attribute" msgstr "Atribut proizvoda" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "Zadano ponašanje šifre proizvoda" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -117,6 +143,11 @@ msgstr "Predložak proizvoda" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -140,10 +171,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code @@ -156,3 +187,12 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Automask" +#~ msgstr "Auto-maskiranje" + +#~ msgid "Defines how you want to manage the Variant default code" +#~ msgstr "Definira kako želite upravljati zadanom šifrom varijante" + +#~ msgid "Manual Mask" +#~ msgstr "Ručna maska" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index d6e38aa6e..a6acbdd1a 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -33,8 +33,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -50,29 +50,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -91,14 +118,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -118,6 +144,11 @@ msgstr "Predložak proizvoda" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -141,10 +172,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 89b97e507..118816a7f 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "Codice Attributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -40,7 +40,6 @@ msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value #, fuzzy -#| msgid "Attribute Value Code" msgid "Attribute Value" msgstr "Codice Valore Attributo" @@ -49,11 +48,6 @@ msgstr "Codice Valore Attributo" msgid "Attribute Value Code" msgstr "Codice Valore Attributo" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" -msgstr "" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings #, fuzzy @@ -62,18 +56,50 @@ msgstr "base.config.settings" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" +msgstr "" + +#. module: product_variant_default_code +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -92,14 +118,13 @@ msgid "Product Attribute" msgstr "Attributo Prodotto" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -119,6 +144,11 @@ msgstr "Attributo Prodotto" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -142,10 +172,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index 36b52e66b..9da0a3de8 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Productsjabloon" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/pt.po b/product_variant_default_code/i18n/pt.po index cf6c612df..07786cdcb 100644 --- a/product_variant_default_code/i18n/pt.po +++ b/product_variant_default_code/i18n/pt.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_variant_default_code +# * product_variant_default_code # msgid "" msgstr "" @@ -29,8 +29,8 @@ msgid "Attribute Code" msgstr "Código do Atributo" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "O Nome do Atributo tem que ser único!" @@ -45,11 +45,6 @@ msgstr "Valor do Atributo" msgid "Attribute Value Code" msgstr "Código do Valor do Atributo" -#. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" -msgstr "Auto-máscara" - #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" @@ -57,11 +52,30 @@ msgstr "Config Configurações" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" -msgstr "Define como quer gerir o código pré-definido da Variante" +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" +msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" @@ -69,9 +83,22 @@ msgstr "" "Referência da Variante\"" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" -msgstr "Máscara Manual" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" +msgstr "" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code @@ -89,15 +116,14 @@ msgid "Product Attribute" msgstr "Atributo de Produto" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "Comportamento do Código Pré-definido do Produto" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" -msgstr "Comportamento do Código Pré-definido do Produto" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" +msgstr "" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template @@ -115,19 +141,30 @@ msgstr "Variantes de Produto" msgid "Reference Prefix" msgstr "Prefixo da Referência" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask -msgid "Reference mask for building internal references of a variant generated from this template.\n" +msgid "" +"Reference mask for building internal references of a variant generated from " +"this template.\n" "Example:\n" "A product named ABC with 2 attributes: Size and Color:\n" "Product: ABC\n" -"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute value, `r`, `y`, `b` are the corresponding code\n" +"Color: Red(r), Yellow(y), Black(b) #Red, Yellow, Black are the attribute " +"value, `r`, `y`, `b` are the corresponding code\n" "Size: L (l), XL(x)\n" -"When setting Variant reference mask to `[Color]-[Size]`, the default code on the variants will be something like `r-l` `b-l` `r-x` ...\n" -"If you like, You can even have the attribute name appear more than once in the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" +"When setting Variant reference mask to `[Color]-[Size]`, the default code on " +"the variants will be something like `r-l` `b-l` `r-x` ...\n" +"If you like, You can even have the attribute name appear more than once in " +"the mask. Such as,`fancyA/[Size]~[Color]~[Size]`\n" " When saved, the default code on variants will be something like \n" -" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" +" `fancyA/l~r~l` (for variant with Color \"Red\" and Size \"L\") `fancyA/" +"x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" "Máscara da referência para a construção de referências internas de uma " @@ -143,17 +180,17 @@ msgstr "" "Se quiser, pode até ter o nome do atributo a aparecer mais do que uma vez na " "máscara. P. ex.,`fancyA/[Tamanho]~[Cor]~[Tamanho]`\n" "Uma vez gravado, o código pré-definido nas variantes será algo do tipo \n" -" `fancyA/l~r~l` (para a variante com Cor \"Vermelho\" e Tamanho \"L\") `" -"fancyA/x~y~x` (na variante com Cor \"Amarelo\" e Tamanho \"XL\")\n" +" `fancyA/l~r~l` (para a variante com Cor \"Vermelho\" e Tamanho \"L\") " +"`fancyA/x~y~x` (na variante com Cor \"Amarelo\" e Tamanho \"XL\")\n" "Nota: certifique-se de que os caracteres \"[,]\" não aparecem no nome do seu " "atributo" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code -msgid "Set behaviour of codes (depends on variant use: see Sales/Purchases configuration)" +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" -"Definir o comportamento dos códigos (depende da utilização de variantes: " -"veja a configuração de Vendas/Compras)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask @@ -165,3 +202,22 @@ msgstr "Máscara de referência da variante" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "[atributo3]-[atributo1]" + +#~ msgid "Automask" +#~ msgstr "Auto-máscara" + +#~ msgid "Defines how you want to manage the Variant default code" +#~ msgstr "Define como quer gerir o código pré-definido da Variante" + +#~ msgid "Manual Mask" +#~ msgstr "Máscara Manual" + +#~ msgid "Product Default Code behaviour" +#~ msgstr "Comportamento do Código Pré-definido do Produto" + +#~ msgid "" +#~ "Set behaviour of codes (depends on variant use: see Sales/Purchases " +#~ "configuration)" +#~ msgstr "" +#~ "Definir o comportamento dos códigos (depende da utilização de variantes: " +#~ "veja a configuração de Vendas/Compras)" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index bcc51ee55..e426e7489 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Produto Modelo" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index 0fd13ede8..21251e253 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "Atribute produs" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Atribute produs" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index b9d95870d..d6508331c 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "Naziv atributa mora biti unikaten!" @@ -40,7 +40,6 @@ msgstr "Naziv atributa mora biti unikaten!" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value #, fuzzy -#| msgid "Attribute Code" msgid "Attribute Value" msgstr "Koda atributa" @@ -50,29 +49,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -91,14 +117,13 @@ msgid "Product Attribute" msgstr "Atribut proizvoda" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -118,6 +143,11 @@ msgstr "Atribut proizvoda" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -141,10 +171,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index bca28908c..838d8eafb 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Ürün şablonu" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index ab004f523..9a0f482f5 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "Mẫu sản phẩm" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index e462083ff..605187ba8 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -31,8 +31,8 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:186 -#: sql_constraint:product.attribute:0 +#: code:addons/product_variant_default_code/models/product.py:0 +#: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" msgstr "" @@ -48,29 +48,56 @@ msgid "Attribute Value Code" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Automask" +#: model:ir.model,name:product_variant_default_code.model_res_config_settings +msgid "Config Settings" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_res_config_settings -msgid "Config Settings" +#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration +msgid "" +"Defines how you want to manage the Variant default.\n" +" Check this if you want to use Manual Mask.\n" +" Default: Automask" msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Defines how you want to manage the Variant default code" +msgid "" +"Defines the variant \"Reference Prefix\" as the default reference " +"(default_code) of the variant." msgstr "" #. module: product_variant_default_code -#: code:addons/product_variant_default_code/models/product.py:38 +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name +msgid "Display Name" +msgstr "" + +#. module: product_variant_default_code +#: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" #. module: product_variant_default_code -#: selection:res.config.settings,group_product_default_code:0 -msgid "Manual Mask" +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id +msgid "ID" +msgstr "" + +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update +msgid "Last Modified on" msgstr "" #. module: product_variant_default_code @@ -89,14 +116,13 @@ msgid "Product Attribute" msgstr "" #. module: product_variant_default_code -#: model:res.groups,name:product_variant_default_code.group_product_default_code +#: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code -#: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -msgid "Product Default Code behaviour" +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask +msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code @@ -116,6 +142,11 @@ msgstr "产品模板" msgid "Reference Prefix" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code +msgid "Reference Prefix as default Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,help:product_variant_default_code.field_product_template__reference_mask @@ -139,10 +170,10 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code +#: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "" -"Set behaviour of codes (depends on variant use: see Sales/Purchases " -"configuration)" +"Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" +"Purchases configuration)" msgstr "" #. module: product_variant_default_code From 975f567c8e34d7476f1c0979ec79ebaf41ae3461 Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Thu, 31 Mar 2022 17:13:07 +0200 Subject: [PATCH 41/65] [IMP] update dotfiles [ci skip] --- product_variant_default_code/models/product.py | 2 +- .../tests/test_variant_default_code.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 28c89777c..9a86bcff1 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -112,7 +112,7 @@ def _get_default_mask(self): main_lang = self._guess_main_lang() for line in self.attribute_line_ids: attribute_names.append( - u"[{}]".format(line.attribute_id.with_context(lang=main_lang).name) + "[{}]".format(line.attribute_id.with_context(lang=main_lang).name) ) default_mask = (self.code_prefix or "") + default_reference_separator.join( attribute_names diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index e3deea3d7..e79f01eeb 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -97,10 +97,10 @@ def test_03_reset_reference_mask_to_default(self): def test_04_custom_reference_mask(self): self.env.user.groups_id |= self.group_default_code - self.template1.reference_mask = u"JKTÜ/[TColor]#[TSize]" + self.template1.reference_mask = "JKTÜ/[TColor]#[TSize]" for product in self.template1.mapped("product_variant_ids"): expected_code = ( - u"JKTÜ/" + "JKTÜ/" + product.product_template_attribute_value_ids.filtered( lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] From b0af3164ac261ab35d3b2ed360f3662108fd279d Mon Sep 17 00:00:00 2001 From: "Kevin.roche" Date: Wed, 17 Nov 2021 18:39:06 +0100 Subject: [PATCH 42/65] [FIX]product_variant_default_code add tests --- .../tests/test_variant_default_code.py | 92 ++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index e79f01eeb..5180a9483 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -13,8 +13,18 @@ def setUpClass(cls): cls.group_default_code = cls.env.ref( "product_variant_default_code.group_product_default_code_manual_mask" ) - cls.attr1 = cls.env["product.attribute"].create({"name": "TSize"}) - cls.attr2 = cls.env["product.attribute"].create({"name": "TColor"}) + cls.attr1 = cls.env["product.attribute"].create( + { + "name": "TSize", + "sequence": 0, + } + ) + cls.attr2 = cls.env["product.attribute"].create( + { + "name": "TColor", + "sequence": 1, + } + ) cls.attr1_1 = cls.env["product.attribute.value"].create( {"name": "L", "attribute_id": cls.attr1.id} ) @@ -217,3 +227,81 @@ def test_11_prefix_code_as_default_code_by_default(self): self.env["ir.config_parameter"].set_param("prefix_as_default_code", True) self.template1.code_prefix = "prefix_code" self.assertTrue(self.template1.default_code, self.template1.code_prefix) + + def test_12_prefix_change(self): + self.assertFalse(self.template1.code_prefix) + self.template1.code_prefix = "prefix_code/" + for product in self.template1.mapped("product_variant_ids"): + expected_code = ( + self.template1.code_prefix + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 + ).name[0:2] + + "-" + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 + ).name[0:2] + ) + product.flush() + self.assertEqual(product.default_code, expected_code) + + def test_13_new_attribute(self): + self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(len(self.template1.mapped("product_variant_ids")), 4) + + self.attr3 = self.env["product.attribute"].create({"name": "TCollection"}) + self.attr3_1 = self.env["product.attribute.value"].create( + {"name": "New", "attribute_id": self.attr3.id} + ) + self.attr3_2 = self.env["product.attribute.value"].create( + {"name": "Old", "attribute_id": self.attr3.id} + ) + + self.template1.write( + { + "attribute_line_ids": [ + ( + 0, + 0, + { + "attribute_id": self.attr3.id, + "value_ids": [(6, 0, [self.attr3_1.id, self.attr3_2.id])], + }, + ), + ] + } + ) + + self.assertEqual( + self.template1.reference_mask, "[TSize]-[TColor]-[TCollection]" + ) + self.assertEqual(len(self.template1.mapped("product_variant_ids")), 8) + + for product in self.template1.mapped("product_variant_ids"): + expected_code = ( + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 + ).name[0:2] + + "-" + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 + ).name[0:2] + + "-" + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr3 + ).name[0:2] + ) + self.assertEqual(product.default_code, expected_code) + + def test_14_rename_attribute(self): + self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.attr1.name = "TNewSize" + self.assertEqual(self.template1.reference_mask, "[TNewSize]-[TColor]") + + def test_15_sequence_change(self): + self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.attr1.sequence = 1 + self.attr2.sequence = 0 + self.template1.reference_mask = "[TColor]-[TSize]" + self.template1.write({"name": "New"}) + self.assertEqual(self.template1.reference_mask, "[TColor]-[TSize]") From 63b7cc826b914fe6c46d30c61da7149fc9efbe58 Mon Sep 17 00:00:00 2001 From: "Kevin.roche" Date: Wed, 17 Nov 2021 19:02:34 +0100 Subject: [PATCH 43/65] [FIX] product_variant_default_code fixes --- product_variant_default_code/__manifest__.py | 3 +- .../models/product.py | 211 +++++++++--------- .../readme/CONTRIBUTORS.rst | 1 + .../tests/test_variant_default_code.py | 86 +++++-- .../views/product_attribute_view.xml | 9 - .../views/product_view.xml | 10 + 6 files changed, 184 insertions(+), 136 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 5b5de1f17..9d9bd06dd 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -5,11 +5,12 @@ # Copyright 2017 Akretion - David Beal # Copyright 2018 AvancOSC - Daniel Campos # Copyright 2020 Tecnativa - João Marques +# Copyright 2021 Akretion - Kévin Roche # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", "version": "14.0.2.0.0", - "author": "AvancOSC, Shine IT, Tecnativa, Odoo Community Association (OCA)", + "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", "category": "Product", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 9a86bcff1..90c7d7100 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -4,6 +4,7 @@ # Copyright 2017 Tecnativa - David Vidal # Copyright 2018 Avanzosc S.L. - Daniel Campos # Copyright 2020 Tecnativa - João Marques +# Copyright 2021 Akretion - Kévin Roche # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import re @@ -40,34 +41,6 @@ def sanitize_reference_mask(product, mask): ) -def get_rendered_default_code(product, mask): - product_attrs = defaultdict(str) - reference_mask = ReferenceMask(mask) - main_lang = product.product_tmpl_id._guess_main_lang() - for attr in product.product_template_attribute_value_ids: - value = attr.product_attribute_value_id - attr_name = value.attribute_id.with_context(lang=main_lang).name - if value.attribute_id.code: - product_attrs[attr_name] += value.attribute_id.code - if value.code: - product_attrs[attr_name] += value.code - all_attrs = extract_token(mask) - missing_attrs = all_attrs - set(product_attrs.keys()) - missing = dict.fromkeys( - missing_attrs, - product.env["ir.config_parameter"] - .sudo() - .get_param("default_reference_missing_placeholder"), - ) - product_attrs.update(missing) - default_code = reference_mask.safe_substitute(product_attrs) - return default_code - - -def render_default_code(product, mask): - product.default_code = get_rendered_default_code(product, mask) - - class ProductTemplate(models.Model): _inherit = "product.template" @@ -78,6 +51,9 @@ class ProductTemplate(models.Model): reference_mask = fields.Char( string="Variant reference mask", copy=False, + store=True, + compute="_compute_reference_mask", + inverse="_inverse_reference_mask", help="Reference mask for building internal references of a " "variant generated from this template.\n" "Example:\n" @@ -100,12 +76,62 @@ class ProductTemplate(models.Model): "attribute name", ) + variant_default_code_error = fields.Text( + compute="_compute_variant_default_code_error" + ) + + def is_automask(self): + return bool( + not self.user_has_groups( + "product_variant_default_code.group_product_default_code_manual_mask" + ) + ) + + @api.depends( + "code_prefix", + "attribute_line_ids.value_ids", + "attribute_line_ids.value_ids.code", + "attribute_line_ids.value_ids.name", + ) + def _compute_variant_default_code_error(self): + automask = self.is_automask() + for rec in self: + error_txt = "" + if not rec.code_prefix and automask: + error_txt += "Reference Prefix is missing.\n" + invalid_values = self.attribute_line_ids.value_ids.filtered( + lambda s: not s.code + ) + if invalid_values: + error_txt += ( + "Following attribute value have an empty code :\n- " + + "\n- ".join(invalid_values.mapped("name")) + ) + if error_txt: + error_txt = "Default Code can not be computed.\n" + error_txt + rec.variant_default_code_error = error_txt + + @api.depends( + "code_prefix", + "attribute_line_ids", + "attribute_line_ids.attribute_id.name", + ) + def _compute_reference_mask(self): + automask = self.is_automask() + for rec in self: + if automask or rec.reference_mask == "": + rec.reference_mask = rec._get_default_mask() + + def _inverse_reference_mask(self): + self._compute_reference_mask() + def _get_default_mask(self): attribute_names = [] default_reference_separator = ( self.env["ir.config_parameter"] .sudo() .get_param("default_reference_separator") + or "" ) # Get the attribute name in the main lang format, otherwise we could not # match mask with the proper values @@ -134,30 +160,6 @@ def create(self, vals): sanitize_reference_mask(product, vals["reference_mask"]) return super(ProductTemplate, self).create(vals) - def write(self, vals): - with_variants = self.env["product.template"] - product_obj = self.env["product.product"] - if ( - "reference_mask" in vals - and not vals["reference_mask"] - or not self.user_has_groups( - "product_variant_default_code.group_product_default_code_manual_mask" - ) - ): - with_variants = self.filtered("attribute_line_ids") - for template in with_variants: - new_dict = dict(vals) - new_dict["reference_mask"] = template._get_default_mask() - super(ProductTemplate, template).write(new_dict) - super(ProductTemplate, self - with_variants).write(vals) - if vals.get("reference_mask"): - cond = [("product_tmpl_id", "=", self.id), ("manual_code", "=", False)] - products = product_obj.search(cond) - for product in products: - if product.reference_mask: - render_default_code(product, product.reference_mask) - return True - @api.model def _guess_main_lang(self): """Used by get_rendered_default_code()""" @@ -186,18 +188,47 @@ def _compute_default_code(self): class ProductProduct(models.Model): _inherit = "product.product" - manual_code = fields.Boolean(string="Manual Reference") - - @api.model - def create(self, vals): - product = super(ProductProduct, self).create(vals) - if product.reference_mask: - render_default_code(product, product.reference_mask) - return product + manual_code = fields.Boolean(string="Manual Reference", default=False) + default_code = fields.Char( + compute="_compute_default_code", + inverse="_inverse_default_code", + readonly=False, + store=True, + ) - @api.onchange("default_code") - def onchange_default_code(self): - self.manual_code = bool(self.default_code) + @api.depends( + "product_tmpl_id.reference_mask", + "product_template_attribute_value_ids.attribute_id.code", + "product_template_attribute_value_ids.product_attribute_value_id.code", + ) + def _compute_default_code(self): + for rec in self: + if not rec.manual_code: + rec.default_code = rec._generate_default_code() + + def _inverse_default_code(self): + for rec in self: + rec.manual_code = bool(rec.default_code) + + def _generate_default_code(self): + value_codes = self.product_tmpl_id.attribute_line_ids.value_ids.mapped("code") + if (not self.code_prefix and self.product_tmpl_id.is_automask()) or not all( + value_codes + ): + return None + else: + product_attrs = defaultdict(str) + reference_mask = ReferenceMask(self.product_tmpl_id.reference_mask) + main_lang = self.product_tmpl_id._guess_main_lang() + for attr in self.product_template_attribute_value_ids: + value = attr.product_attribute_value_id + attr_name = value.attribute_id.with_context(lang=main_lang).name + if value.attribute_id.code: + product_attrs[attr_name] += value.attribute_id.code + if value.code: + product_attrs[attr_name] += value.code + default_code = reference_mask.safe_substitute(product_attrs) + return default_code class ProductAttribute(models.Model): @@ -211,57 +242,19 @@ class ProductAttribute(models.Model): ("number_uniq", "unique(name)", _("Attribute Name must be unique!")) ] - def write(self, vals): - if "code" not in vals: - return super(ProductAttribute, self).write(vals) - result = super(ProductAttribute, self).write(vals) - # Rewrite reference on all product variants affected - for product in self.mapped( - "attribute_line_ids.product_tmpl_id.product_variant_ids" - ).filtered(lambda x: x.product_tmpl_id.reference_mask and not x.manual_code): - render_default_code(product, product.reference_mask) - return result - class ProductAttributeValue(models.Model): _inherit = "product.attribute.value" - @api.onchange("name") - def onchange_name(self): - """Set a default code for the value""" - if self.name and not self.code: - self.code = self.name[:2] - code = fields.Char( string="Attribute Value Code", - default=onchange_name, + compute="_compute_code", + readonly=False, + store=True, ) - @api.model - def create(self, vals): - if "code" not in vals: - vals["code"] = vals.get("name", "")[0:2] - return super(ProductAttributeValue, self).create(vals) - - def write(self, vals): - if "code" not in vals: - return super(ProductAttributeValue, self).write(vals) - result = super(ProductAttributeValue, self).write(vals) - # Rewrite reference on all product variants affected - for product in ( - self.env["product.product"] - .search( - [ - ( - "product_template_attribute_value_ids" - ".product_attribute_value_id", - "in", - self.ids, - ) - ] - ) - .filtered(lambda x: x.product_tmpl_id.reference_mask and not x.manual_code) - .mapped("product_tmpl_id.product_variant_ids") - ): - render_default_code(product, product.reference_mask) - return result + @api.depends("code", "name") + def _compute_code(self): + for rec in self: + if rec.name and not rec.code: + rec.code = rec.name[:2] diff --git a/product_variant_default_code/readme/CONTRIBUTORS.rst b/product_variant_default_code/readme/CONTRIBUTORS.rst index 652eb45c1..2c3d56ad3 100644 --- a/product_variant_default_code/readme/CONTRIBUTORS.rst +++ b/product_variant_default_code/readme/CONTRIBUTORS.rst @@ -2,6 +2,7 @@ * Tony Gu * David Beal * Daniel Campos +* Kévin Roche * Tecnativa : * David Vidal diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 5180a9483..22b1c4d05 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -1,5 +1,6 @@ # Copyright 2017 Tecnativa - David Vidal # Copyright 2020-2021 Tecnativa - João Marques +# Copyright 2021 Akretion - Kévin Roche # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.exceptions import UserError @@ -40,6 +41,7 @@ def setUpClass(cls): cls.template1 = cls.env["product.template"].create( { "name": "Jacket", + "code_prefix": "prefix/", "attribute_line_ids": [ ( 0, @@ -63,11 +65,12 @@ def setUpClass(cls): def test_01_check_default_codes(self): # As no mask was set, a default one should be: - self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TSize]-[TColor]") # Check that variants code are generated according to rules for product in self.template1.mapped("product_variant_ids"): expected_code = ( - product.product_template_attribute_value_ids.filtered( + self.template1.code_prefix + + product.product_template_attribute_value_ids.filtered( lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] + "-" @@ -103,7 +106,7 @@ def test_03_reset_reference_mask_to_default(self): # Erase the previous mask: 'P01/[TSize][TColor]' self.template1.reference_mask = "" # Mask is set to default now: - self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TSize]-[TColor]") def test_04_custom_reference_mask(self): self.env.user.groups_id |= self.group_default_code @@ -125,7 +128,6 @@ def test_05_manual_code(self): self.env.user.groups_id |= self.group_default_code self.assertEqual(self.template1.product_variant_ids[0].manual_code, False) self.template1.product_variant_ids[0].default_code = "CANT-TOUCH-THIS" - self.template1.product_variant_ids[0].onchange_default_code() self.assertEqual(self.template1.product_variant_ids[0].manual_code, True) # Set a reference mask and check the other variants are changed self.template1.reference_mask = "J[TColor][TSize]" @@ -163,7 +165,6 @@ def test_06_attribute_value_code_change_propagation(self): def test_07_attribute_value_name_change(self): """Only set a default code if it wasn't set""" self.attr1_1.name = "New Name" - self.attr1_1.onchange_name() self.assertEqual(self.attr1_1.code, "L") products = self.env["product.product"].search( [ @@ -180,7 +181,6 @@ def test_07_attribute_value_name_change(self): # Otherwise, if there's no code a default value is set self.attr1_1.code = False self.attr1_1.name = "Odoo" - self.attr1_1.onchange_name() self.assertEqual(self.attr1_1.code, "Od") for product in products: self.assertTrue("Od" in product.default_code) @@ -215,6 +215,9 @@ def test_09_code_change_propagation(self): ): self.assertTrue("AC" in product.default_code) + self.attr1_1.code = ":-)" + self.assertTrue(":-)" in self.template1.product_variant_ids[0].default_code) + def test_10_code_change_propagation_archived_variant(self): self.template1.product_variant_ids[0].active = False self.attr1.code = "o_o" @@ -229,8 +232,6 @@ def test_11_prefix_code_as_default_code_by_default(self): self.assertTrue(self.template1.default_code, self.template1.code_prefix) def test_12_prefix_change(self): - self.assertFalse(self.template1.code_prefix) - self.template1.code_prefix = "prefix_code/" for product in self.template1.mapped("product_variant_ids"): expected_code = ( self.template1.code_prefix @@ -242,11 +243,10 @@ def test_12_prefix_change(self): lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] ) - product.flush() self.assertEqual(product.default_code, expected_code) def test_13_new_attribute(self): - self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TSize]-[TColor]") self.assertEqual(len(self.template1.mapped("product_variant_ids")), 4) self.attr3 = self.env["product.attribute"].create({"name": "TCollection"}) @@ -273,13 +273,14 @@ def test_13_new_attribute(self): ) self.assertEqual( - self.template1.reference_mask, "[TSize]-[TColor]-[TCollection]" + self.template1.reference_mask, "prefix/[TSize]-[TColor]-[TCollection]" ) self.assertEqual(len(self.template1.mapped("product_variant_ids")), 8) for product in self.template1.mapped("product_variant_ids"): expected_code = ( - product.product_template_attribute_value_ids.filtered( + self.template1.code_prefix + + product.product_template_attribute_value_ids.filtered( lambda x: x.product_attribute_value_id.attribute_id == self.attr1 ).name[0:2] + "-" @@ -294,14 +295,65 @@ def test_13_new_attribute(self): self.assertEqual(product.default_code, expected_code) def test_14_rename_attribute(self): - self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TSize]-[TColor]") self.attr1.name = "TNewSize" - self.assertEqual(self.template1.reference_mask, "[TNewSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TNewSize]-[TColor]") def test_15_sequence_change(self): - self.assertEqual(self.template1.reference_mask, "[TSize]-[TColor]") + self.assertEqual(self.template1.reference_mask, "prefix/[TSize]-[TColor]") self.attr1.sequence = 1 self.attr2.sequence = 0 - self.template1.reference_mask = "[TColor]-[TSize]" + self.template1.reference_mask = "prefix/[TColor]-[TSize]" self.template1.write({"name": "New"}) - self.assertEqual(self.template1.reference_mask, "[TColor]-[TSize]") + self.assertEqual(self.template1.reference_mask, "prefix/[TColor]-[TSize]") + + def test_16_missing_prefix(self): + self.template1.code_prefix = None + for product in self.template1.mapped("product_variant_ids"): + self.assertFalse(product.default_code) + expected_error = ( + "Default Code can not be computed.\nReference Prefix is missing.\n" + ) + self.assertEqual(self.template1.variant_default_code_error, expected_error) + + def test_17_missing_attribute_value_code(self): + self.assertEqual( + len( + list( + filter( + None, self.template1.product_variant_ids.mapped("default_code") + ) + ) + ), + 4, + ) + # 1 missing value code + self.attr1_2.code = "" + self.assertEqual( + len( + list( + filter( + None, self.template1.product_variant_ids.mapped("default_code") + ) + ) + ), + 2, + ) + expected_error = "Default Code can not be computed.\n" + expected_error += "Following attribute value have an empty code :\n" + expected_error += "- XL" + self.assertEqual(self.template1.variant_default_code_error, expected_error) + # 2 missing value codes + self.attr2_2.code = "" + expected_error += "\n- Green" + self.assertEqual( + len( + list( + filter( + None, self.template1.product_variant_ids.mapped("default_code") + ) + ) + ), + 1, + ) + self.assertEqual(self.template1.variant_default_code_error, expected_error) diff --git a/product_variant_default_code/views/product_attribute_view.xml b/product_variant_default_code/views/product_attribute_view.xml index beb03f324..f4faaebb6 100644 --- a/product_variant_default_code/views/product_attribute_view.xml +++ b/product_variant_default_code/views/product_attribute_view.xml @@ -14,15 +14,6 @@
- - product.attribute - - - - - - - product.attribute diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index 70550f4c1..abff8df1b 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -18,6 +18,16 @@ groups="product_variant_default_code.group_product_default_code_manual_mask" /> + + + + +
From 08a67781707aa8be1fb028394a795304af23dc73 Mon Sep 17 00:00:00 2001 From: Kev-Roche Date: Wed, 26 Jan 2022 17:10:38 +0100 Subject: [PATCH 44/65] [FIX] no update when both code_prefix and reference_mask changing --- product_variant_default_code/__manifest__.py | 1 + .../models/product.py | 4 ++- .../tests/test_variant_default_code.py | 29 +++++++++++++++++-- .../views/product_view.xml | 12 ++++---- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 9d9bd06dd..2c78ed3a8 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -14,6 +14,7 @@ "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", "category": "Product", + "maintainers": ["Kev-Roche"], "depends": ["product"], "data": [ "security/product_security.xml", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 90c7d7100..a2574fadd 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -119,8 +119,10 @@ def _compute_variant_default_code_error(self): def _compute_reference_mask(self): automask = self.is_automask() for rec in self: - if automask or rec.reference_mask == "": + if automask or not rec.reference_mask: rec.reference_mask = rec._get_default_mask() + elif not automask and rec.code_prefix: + rec.reference_mask = rec.code_prefix + rec.reference_mask def _inverse_reference_mask(self): self._compute_reference_mask() diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index 22b1c4d05..d74750e6c 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -113,7 +113,8 @@ def test_04_custom_reference_mask(self): self.template1.reference_mask = "JKTÜ/[TColor]#[TSize]" for product in self.template1.mapped("product_variant_ids"): expected_code = ( - "JKTÜ/" + self.template1.code_prefix + + "JKTÜ/" + product.product_template_attribute_value_ids.filtered( lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] @@ -133,7 +134,8 @@ def test_05_manual_code(self): self.template1.reference_mask = "J[TColor][TSize]" for product in self.template1.mapped("product_variant_ids")[1:]: expected_code = ( - "J" + self.template1.code_prefix + + "J" + product.product_template_attribute_value_ids.filtered( lambda x: x.product_attribute_value_id.attribute_id == self.attr2 ).name[0:2] @@ -357,3 +359,26 @@ def test_17_missing_attribute_value_code(self): 1, ) self.assertEqual(self.template1.variant_default_code_error, expected_error) + + def test_18_both_prefix_and_mask_changing(self): + self.env.user.groups_id |= self.group_default_code + self.template1.write( + { + "code_prefix": "pre/", + "reference_mask": "fix-[TColor]/[TSize]", + } + ) + + for product in self.template1.mapped("product_variant_ids"): + expected_code = ( + self.template1.code_prefix + + "fix-" + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr2 + ).name[0:2] + + "/" + + product.product_template_attribute_value_ids.filtered( + lambda x: x.product_attribute_value_id.attribute_id == self.attr1 + ).name[0:2] + ) + self.assertEqual(product.default_code, expected_code) diff --git a/product_variant_default_code/views/product_view.xml b/product_variant_default_code/views/product_view.xml index abff8df1b..51997e2a3 100644 --- a/product_variant_default_code/views/product_view.xml +++ b/product_variant_default_code/views/product_view.xml @@ -19,14 +19,12 @@ />
- - + name="variant_default_code_error" + class="alert alert-danger alert-dismissable" + role="alert" + attrs="{'invisible':[('variant_default_code_error','=', False)]}" + />
From 53676945046975c3b465665e9fd5513833471a53 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 19 May 2022 22:32:42 +0000 Subject: [PATCH 45/65] [UPD] Update product_variant_default_code.pot --- .../i18n/product_variant_default_code.pot | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index a2503c3c8..680193afd 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -85,6 +85,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -164,6 +169,12 @@ msgid "" "Sales/Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask From 963adb812e631392660542c35cdf9193c2759085 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 19 May 2022 22:38:23 +0000 Subject: [PATCH 46/65] [UPD] README.rst --- product_variant_default_code/README.rst | 10 ++++++++++ .../static/description/index.html | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index e8b658b2e..ddf9e340c 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -124,6 +124,7 @@ Authors * AvancOSC * Shine IT * Tecnativa +* Akretion Contributors ~~~~~~~~~~~~ @@ -132,6 +133,7 @@ Contributors * Tony Gu * David Beal * Daniel Campos +* Kévin Roche * Tecnativa : * David Vidal @@ -151,6 +153,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. +.. |maintainer-Kev-Roche| image:: https://github.com/Kev-Roche.png?size=40px + :target: https://github.com/Kev-Roche + :alt: Kev-Roche + +Current `maintainer `__: + +|maintainer-Kev-Roche| + This module is part of the `OCA/product-variant `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_default_code/static/description/index.html b/product_variant_default_code/static/description/index.html index 4058294fa..76bfd95e5 100644 --- a/product_variant_default_code/static/description/index.html +++ b/product_variant_default_code/static/description/index.html @@ -467,6 +467,7 @@

Authors

  • AvancOSC
  • Shine IT
  • Tecnativa
  • +
  • Akretion
  • @@ -476,6 +477,7 @@

    Contributors

  • Tony Gu <tony@openerp.cn>
  • David Beal <david.beal@akretion.com>
  • Daniel Campos <danielcampos@avanzosc.es>
  • +
  • Kévin Roche <kevin.roche@akretion.com>
  • Tecnativa <tecnativa.com>: * David Vidal * Pedro M. Baeza @@ -489,6 +491,8 @@

    Maintainers

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    +

    Current maintainer:

    +

    Kev-Roche

    This module is part of the OCA/product-variant project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

  • From f71ec74449801c707cef5db66e4b8f3782803cae Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 19 May 2022 22:38:35 +0000 Subject: [PATCH 47/65] product_variant_default_code 14.0.3.0.0 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 2c78ed3a8..dff24ef8f 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,7 +9,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.2.0.0", + "version": "14.0.3.0.0", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From eb3a413c918dc93a3217d504c45bcd3cfab2ffca Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Thu, 19 May 2022 22:39:46 +0000 Subject: [PATCH 48/65] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/ --- product_variant_default_code/i18n/ar.po | 11 +++++++++++ product_variant_default_code/i18n/ca.po | 11 +++++++++++ product_variant_default_code/i18n/de.po | 11 +++++++++++ product_variant_default_code/i18n/es.po | 11 +++++++++++ product_variant_default_code/i18n/es_MX.po | 11 +++++++++++ product_variant_default_code/i18n/fi.po | 11 +++++++++++ product_variant_default_code/i18n/fr.po | 11 +++++++++++ product_variant_default_code/i18n/fr_CH.po | 11 +++++++++++ product_variant_default_code/i18n/hr.po | 11 +++++++++++ product_variant_default_code/i18n/hr_HR.po | 11 +++++++++++ product_variant_default_code/i18n/it.po | 11 +++++++++++ product_variant_default_code/i18n/nl_NL.po | 11 +++++++++++ product_variant_default_code/i18n/pt.po | 11 +++++++++++ product_variant_default_code/i18n/pt_BR.po | 11 +++++++++++ product_variant_default_code/i18n/ro.po | 11 +++++++++++ product_variant_default_code/i18n/sl.po | 11 +++++++++++ product_variant_default_code/i18n/tr_TR.po | 11 +++++++++++ product_variant_default_code/i18n/vi_VN.po | 11 +++++++++++ product_variant_default_code/i18n/zh_CN.po | 11 +++++++++++ 19 files changed, 209 insertions(+) diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index 49b2e231a..887e2d0f5 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index e8ee9e859..39c5e0da6 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -90,6 +90,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -175,6 +180,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index dfaca2af4..6c28d7845 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -90,6 +90,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -175,6 +180,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index 10c28e77d..ed2686fad 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -94,6 +94,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -179,6 +184,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index c8b216cf0..e9afabab2 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index 5acf176e4..a0ac42854 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -90,6 +90,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -175,6 +180,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index 2269265f6..a4eea5768 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -92,6 +92,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -196,6 +201,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index 4e161c5b9..21b416f2c 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index cc9bb57c6..8e95f562c 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -92,6 +92,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -177,6 +182,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index a6acbdd1a..0bbd05ea2 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -93,6 +93,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -178,6 +183,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 118816a7f..d062caebf 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -93,6 +93,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -178,6 +183,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index 9da0a3de8..ee8c8aa63 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/pt.po b/product_variant_default_code/i18n/pt.po index 07786cdcb..888481802 100644 --- a/product_variant_default_code/i18n/pt.po +++ b/product_variant_default_code/i18n/pt.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -192,6 +197,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index e426e7489..fa726c39c 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index 21251e253..cbb4c9a79 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index d6508331c..ba7990844 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -92,6 +92,11 @@ msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -177,6 +182,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index 838d8eafb..b9a08367f 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index 9a0f482f5..7bcf1c665 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index 605187ba8..b63ba9051 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -91,6 +91,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code +msgid "Internal Reference" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update @@ -176,6 +181,12 @@ msgid "" "Purchases configuration)" msgstr "" +#. module: product_variant_default_code +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error +#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error +msgid "Variant Default Code Error" +msgstr "" + #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask From c0950785c01301962398615fa1ed9196b8915ee1 Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Tue, 31 May 2022 10:57:26 +0000 Subject: [PATCH 49/65] Translated using Weblate (Italian) Currently translated at 74.0% (20 of 27 strings) Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/it/ --- product_variant_default_code/i18n/it.po | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index d062caebf..84f50cf9a 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -10,14 +10,15 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-30 08:37+0000\n" -"PO-Revision-Date: 2017-12-30 08:37+0000\n" -"Last-Translator: Paolo Valier , 2018\n" +"PO-Revision-Date: 2022-05-31 10:58+0000\n" +"Last-Translator: Francesco Foresti \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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix @@ -68,6 +69,8 @@ msgid "" "Defines the variant \"Reference Prefix\" as the default reference " "(default_code) of the variant." msgstr "" +"Definisce la variante \"Riferimento prefisso\" come il riferimento " +"predefinito (default_code) della variante." #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name @@ -125,17 +128,17 @@ msgstr "Attributo Prodotto" #. module: product_variant_default_code #: model:res.groups,name:product_variant_default_code.group_product_default_code_manual_mask msgid "Product Default Code Behavior" -msgstr "" +msgstr "Comportamento codice predefinito prodotto" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask msgid "Product Default Code Manual Mask" -msgstr "" +msgstr "Maschera manuale codice predefinito prodotto" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product Template" -msgstr "Template prodotto" +msgstr "Modello prodotto" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration From 23be056fda7a1dc08925c549829e8d8e76ef144d Mon Sep 17 00:00:00 2001 From: Samuele Mariani Date: Tue, 31 May 2022 10:24:28 +0000 Subject: [PATCH 50/65] Translated using Weblate (Italian) Currently translated at 74.0% (20 of 27 strings) Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/it/ --- product_variant_default_code/i18n/it.po | 29 +++++++++++-------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 84f50cf9a..21b413b0e 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -11,7 +11,7 @@ msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-30 08:37+0000\n" "PO-Revision-Date: 2022-05-31 10:58+0000\n" -"Last-Translator: Francesco Foresti \n" +"Last-Translator: Samuele Mariani \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -24,7 +24,7 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" -msgstr "" +msgstr "Aggiungi prefisso al riferimento variante prodotto (codice predefinito)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code @@ -36,13 +36,12 @@ msgstr "Codice Attributo" #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format msgid "Attribute Name must be unique!" -msgstr "" +msgstr "Il Nome Attributo deve essere univoco!" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute_value -#, fuzzy msgid "Attribute Value" -msgstr "Codice Valore Attributo" +msgstr "Valore Attributo" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__code @@ -51,9 +50,8 @@ msgstr "Codice Valore Attributo" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings -#, fuzzy msgid "Config Settings" -msgstr "base.config.settings" +msgstr "impostazioni di Configurazione" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -79,7 +77,7 @@ msgstr "" #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: product_variant_default_code #: code:addons/product_variant_default_code/models/product.py:0 @@ -94,12 +92,12 @@ msgstr "" #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id msgid "ID" -msgstr "" +msgstr "ID" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" -msgstr "" +msgstr "Riferimento Interno" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update @@ -108,17 +106,17 @@ msgstr "" #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima Modifica il" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" -msgstr "" +msgstr "Riferimento Manuale" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_product msgid "Product" -msgstr "Prodotto " +msgstr "Prodotto" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_product_attribute @@ -142,15 +140,14 @@ msgstr "Modello prodotto" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration -#, fuzzy msgid "Product Variants" -msgstr "Attributo Prodotto" +msgstr "Varianti Prodotto" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__code_prefix msgid "Reference Prefix" -msgstr "" +msgstr "Prefisso Riferimento" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code From cd427f96ea879846208f27d3910e8919b39ed9af Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Tue, 31 May 2022 11:02:52 +0000 Subject: [PATCH 51/65] Translated using Weblate (Italian) Currently translated at 77.7% (21 of 27 strings) Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/it/ --- product_variant_default_code/i18n/it.po | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 21b413b0e..052637edf 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -10,8 +10,8 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-30 08:37+0000\n" -"PO-Revision-Date: 2022-05-31 10:58+0000\n" -"Last-Translator: Samuele Mariani \n" +"PO-Revision-Date: 2022-05-31 13:05+0000\n" +"Last-Translator: Francesco Foresti \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" @@ -51,7 +51,7 @@ msgstr "Codice Valore Attributo" #. module: product_variant_default_code #: model:ir.model,name:product_variant_default_code.model_res_config_settings msgid "Config Settings" -msgstr "impostazioni di Configurazione" +msgstr "Impostazioni di configurazione" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -60,6 +60,10 @@ msgid "" " Check this if you want to use Manual Mask.\n" " Default: Automask" msgstr "" +"Definisce come vuoi gestire il predefinito per variante.\n" +" Abilita se vuoi utilizzare la maschera " +"manuale.\n" +" Predefinito: Maschera automatica" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration From a277e9fd744f02044041885ab99c52305af97ac9 Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Tue, 31 May 2022 15:34:36 +0000 Subject: [PATCH 52/65] Translated using Weblate (Italian) Currently translated at 100.0% (27 of 27 strings) Translation: product-variant-14.0/product-variant-14.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code/it/ --- product_variant_default_code/i18n/it.po | 31 +++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 052637edf..617880d42 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -10,7 +10,7 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-30 08:37+0000\n" -"PO-Revision-Date: 2022-05-31 13:05+0000\n" +"PO-Revision-Date: 2022-05-31 18:05+0000\n" "Last-Translator: Francesco Foresti \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" @@ -88,6 +88,8 @@ msgstr "Nome visualizzato" #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" +"Trovato nome attributo non riconosciuto nella \"Maschera riferimento " +"variante\"" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id @@ -156,7 +158,7 @@ msgstr "Prefisso Riferimento" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__prefix_as_default_code msgid "Reference Prefix as default Reference" -msgstr "" +msgstr "Prefisso riferimento come Riferimento Predefinito" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_product_product__reference_mask @@ -179,6 +181,24 @@ msgid "" "x~y~x` (for variant with Color \"Yellow\" and Size \"XL\")\n" "Note: make sure characters \"[,]\" do not appear in your attribute name" msgstr "" +"Maschera riferimento per costruire riferimenti interni di una variante " +"generata da questo template.\n" +"Esempio:\n" +"Un prodotto con nome ABC con 2 attributi: Taglia e Colore:\n" +"Prodotto: ABC\n" +"Colori: Rosso(r), Giallo(g), Nero(n) #Rosso, Giallo, Nero sono i valori " +"attributo, `r`, `g`, `n` sono i codici corrispondenti\n" +"Taglia: L (l), XL(x)\n" +"Impostando la maschera riferimento a `[Colore]-[Taglia]`, il codice " +"predefinito nelle varianti sarà una cosa tipo `r-l` `n-l` `r-x` ...\n" +"Se vuoi, puoi anche ripetere più di una volta il nome attributo nella " +"maschera. Ad esempio,`fancyA/[Taglia]~[Colore]~[Taglia]`\n" +" Una volta salvato, il codice predefinito nelle varianti sarà una cosa come: " +"\n" +" `fancyA/l~r~l` (per la variante colore \"Rosso\" e taglia \"L\") `fancyA/" +"x~g~x` (per la variante colore \"Giallo\" e taglia \"XL\")\n" +"Attenzione: assicurati che i caratteri \"[,]\" non siano presenti nel nome " +"attributo" #. module: product_variant_default_code #: model:ir.model.fields,help:product_variant_default_code.field_res_config_settings__group_product_default_code_manual_mask @@ -186,18 +206,21 @@ msgid "" "Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" "Purchases configuration)" msgstr "" +"Imposta i comportamenti dei codici. Predefinito: Maschera automatica (" +"dipende dall'uso delle varianti: vedi la configurazione in Vendite o " +"Acquisti)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__variant_default_code_error #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__variant_default_code_error msgid "Variant Default Code Error" -msgstr "" +msgstr "Errore codice predefinito variante" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__reference_mask #: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__reference_mask msgid "Variant reference mask" -msgstr "" +msgstr "Maschera riferimento variante" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view From 2691d10315b96ffc117082164e9db9349420b555 Mon Sep 17 00:00:00 2001 From: Kev-Roche Date: Wed, 7 Sep 2022 15:49:47 +0200 Subject: [PATCH 53/65] [IMP][14.0] product tmpl default_code as default prefix_code --- product_variant_default_code/models/product.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index a2574fadd..626b81000 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -119,6 +119,8 @@ def _compute_variant_default_code_error(self): def _compute_reference_mask(self): automask = self.is_automask() for rec in self: + if rec.default_code and not rec.code_prefix: + rec.code_prefix = rec.default_code if automask or not rec.reference_mask: rec.reference_mask = rec._get_default_mask() elif not automask and rec.code_prefix: From 75d85d319295ba31c51bc1a9a3f76ef4b166984a Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 9 Feb 2023 21:07:58 +0000 Subject: [PATCH 54/65] product_variant_default_code 14.0.3.0.1 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index dff24ef8f..cfb161484 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,7 +9,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.3.0.0", + "version": "14.0.3.0.1", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 01893f1f7e4266782a9ad83d5d0ce13308a6ec27 Mon Sep 17 00:00:00 2001 From: Kev-Roche Date: Wed, 26 Oct 2022 14:33:23 +0200 Subject: [PATCH 55/65] [FIX][product_variant_default_code] check code of active value_ids --- product_variant_default_code/__manifest__.py | 2 +- product_variant_default_code/models/product.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index cfb161484..48b6dbb3a 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -15,7 +15,7 @@ "license": "AGPL-3", "category": "Product", "maintainers": ["Kev-Roche"], - "depends": ["product"], + "depends": ["product", "product_attribute_archive"], "data": [ "security/product_security.xml", "data/ir_config_parameter.xml", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 626b81000..c1e1085ad 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -215,7 +215,11 @@ def _inverse_default_code(self): rec.manual_code = bool(rec.default_code) def _generate_default_code(self): - value_codes = self.product_tmpl_id.attribute_line_ids.value_ids.mapped("code") + value_codes = [ + rec.code + for rec in self.product_tmpl_id.attribute_line_ids.value_ids + if rec.active + ] if (not self.code_prefix and self.product_tmpl_id.is_automask()) or not all( value_codes ): From b0b3299b0415a898c514572bb22f57e57523235b Mon Sep 17 00:00:00 2001 From: rafaferri Date: Mon, 13 Mar 2023 11:10:12 +0100 Subject: [PATCH 56/65] [16.0][MIG] product_variant_default_code: migration to 16.0 --- product_variant_default_code/__manifest__.py | 4 ++-- product_variant_default_code/models/product.py | 2 ++ .../tests/test_variant_default_code.py | 4 ++-- product_variant_default_code/views/config_settings_view.xml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 48b6dbb3a..0bd28e173 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,13 +9,13 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "14.0.3.0.1", + "version": "16.0.1.0.0", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", "category": "Product", "maintainers": ["Kev-Roche"], - "depends": ["product", "product_attribute_archive"], + "depends": ["product_attribute_archive"], "data": [ "security/product_security.xml", "data/ir_config_parameter.xml", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index c1e1085ad..401831ac5 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -187,6 +187,7 @@ def _compute_default_code(self): ) for template in self - unique_variants: template.default_code = template.code_prefix + return True class ProductProduct(models.Model): @@ -206,6 +207,7 @@ class ProductProduct(models.Model): "product_template_attribute_value_ids.product_attribute_value_id.code", ) def _compute_default_code(self): + self.env.cr.flush() # https://github.com/odoo/odoo/blob/16.0/odoo/models.py#L5592 for rec in self: if not rec.manual_code: rec.default_code = rec._generate_default_code() diff --git a/product_variant_default_code/tests/test_variant_default_code.py b/product_variant_default_code/tests/test_variant_default_code.py index d74750e6c..2e243f452 100644 --- a/product_variant_default_code/tests/test_variant_default_code.py +++ b/product_variant_default_code/tests/test_variant_default_code.py @@ -4,10 +4,10 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.exceptions import UserError -from odoo.tests import common +from odoo.tests.common import TransactionCase -class TestVariantDefaultCode(common.SavepointCase): +class TestVariantDefaultCode(TransactionCase): @classmethod def setUpClass(cls): super(TestVariantDefaultCode, cls).setUpClass() diff --git a/product_variant_default_code/views/config_settings_view.xml b/product_variant_default_code/views/config_settings_view.xml index fb7ce4bf9..3f0b45cea 100644 --- a/product_variant_default_code/views/config_settings_view.xml +++ b/product_variant_default_code/views/config_settings_view.xml @@ -4,7 +4,7 @@ res.config.settings - +

    Product Variants

    From 220f02b59578d670487e76a7a3b1fa19b7ca39f9 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 2 May 2023 08:02:02 +0000 Subject: [PATCH 57/65] [UPD] Update product_variant_default_code.pot --- .../i18n/product_variant_default_code.pot | 37 +++---------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/product_variant_default_code/i18n/product_variant_default_code.pot b/product_variant_default_code/i18n/product_variant_default_code.pot index 680193afd..399059492 100644 --- a/product_variant_default_code/i18n/product_variant_default_code.pot +++ b/product_variant_default_code/i18n/product_variant_default_code.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -25,6 +25,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -62,50 +63,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -125,8 +100,8 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" msgstr "" #. module: product_variant_default_code From 2d4bc3ed8cf57e0af81500d3a95970e5e253fcb6 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 2 May 2023 08:03:57 +0000 Subject: [PATCH 58/65] [UPD] README.rst --- product_variant_default_code/README.rst | 10 +++++----- .../static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index ddf9e340c..78511ddaa 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -14,13 +14,13 @@ Product Variant Default Code :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github - :target: https://github.com/OCA/product-variant/tree/14.0/product_variant_default_code + :target: https://github.com/OCA/product-variant/tree/16.0/product_variant_default_code :alt: OCA/product-variant .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-variant-14-0/product-variant-14-0-product_variant_default_code + :target: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/137/14.0 + :target: https://runbot.odoo-community.org/runbot/137/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -111,7 +111,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -161,6 +161,6 @@ Current `maintainer `__: |maintainer-Kev-Roche| -This module is part of the `OCA/product-variant `_ project on GitHub. +This module is part of the `OCA/product-variant `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_default_code/static/description/index.html b/product_variant_default_code/static/description/index.html index 76bfd95e5..1ea834310 100644 --- a/product_variant_default_code/static/description/index.html +++ b/product_variant_default_code/static/description/index.html @@ -367,7 +367,7 @@

    Product Variant Default Code

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

    Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runbot

    +

    Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runbot

    This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior.

    It defines a reference mask on the product templates so the @@ -456,7 +456,7 @@

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

    @@ -493,7 +493,7 @@

    Maintainers

    promote its widespread use.

    Current maintainer:

    Kev-Roche

    -

    This module is part of the OCA/product-variant project on GitHub.

    +

    This module is part of the OCA/product-variant project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    From 02583708125936cf056f4bef06ea1895430c6468 Mon Sep 17 00:00:00 2001 From: Weblate Date: Tue, 2 May 2023 10:53:05 +0000 Subject: [PATCH 59/65] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-variant-16.0/product-variant-16.0-product_variant_default_code Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code/ --- product_variant_default_code/i18n/ar.po | 35 ++---------- product_variant_default_code/i18n/ca.po | 40 +++----------- product_variant_default_code/i18n/de.po | 40 +++----------- product_variant_default_code/i18n/es.po | 40 +++----------- product_variant_default_code/i18n/es_MX.po | 40 +++----------- product_variant_default_code/i18n/fi.po | 40 +++----------- product_variant_default_code/i18n/fr.po | 40 +++----------- product_variant_default_code/i18n/fr_CH.po | 40 +++----------- product_variant_default_code/i18n/hr.po | 40 +++----------- product_variant_default_code/i18n/hr_HR.po | 40 +++----------- product_variant_default_code/i18n/it.po | 64 +++++++++------------- product_variant_default_code/i18n/nl_NL.po | 40 +++----------- product_variant_default_code/i18n/pt.po | 40 +++----------- product_variant_default_code/i18n/pt_BR.po | 40 +++----------- product_variant_default_code/i18n/ro.po | 40 +++----------- product_variant_default_code/i18n/sl.po | 40 +++----------- product_variant_default_code/i18n/tr_TR.po | 40 +++----------- product_variant_default_code/i18n/vi_VN.po | 40 +++----------- product_variant_default_code/i18n/zh_CN.po | 40 +++----------- 19 files changed, 184 insertions(+), 595 deletions(-) diff --git a/product_variant_default_code/i18n/ar.po b/product_variant_default_code/i18n/ar.po index 887e2d0f5..4332f6e2f 100644 --- a/product_variant_default_code/i18n/ar.po +++ b/product_variant_default_code/i18n/ar.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "المنتج" @@ -131,8 +106,8 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" msgstr "" #. module: product_variant_default_code diff --git a/product_variant_default_code/i18n/ca.po b/product_variant_default_code/i18n/ca.po index 39c5e0da6..b7b365eca 100644 --- a/product_variant_default_code/i18n/ca.po +++ b/product_variant_default_code/i18n/ca.po @@ -30,6 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -67,50 +68,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -130,9 +105,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Plantilla del producte" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -196,3 +171,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Plantilla del producte" diff --git a/product_variant_default_code/i18n/de.po b/product_variant_default_code/i18n/de.po index 6c28d7845..c77f7d425 100644 --- a/product_variant_default_code/i18n/de.po +++ b/product_variant_default_code/i18n/de.po @@ -30,6 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -67,50 +68,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -130,9 +105,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Produktvorlage" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -196,3 +171,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Produktvorlage" diff --git a/product_variant_default_code/i18n/es.po b/product_variant_default_code/i18n/es.po index ed2686fad..ae781e7a4 100644 --- a/product_variant_default_code/i18n/es.po +++ b/product_variant_default_code/i18n/es.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "Código de atributo" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -69,15 +70,7 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" @@ -85,36 +78,18 @@ msgstr "" "Encontrado un nombre de atribuco no reconocido en la \"Referencia máscara " "variante\"" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Producto" @@ -134,9 +109,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Plantilla de producto" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -201,5 +176,8 @@ msgstr "Máscara de referencia para la variante" msgid "[attribute3]-[attribute1]" msgstr "" +#~ msgid "Product Template" +#~ msgstr "Plantilla de producto" + #~ msgid "product.attribute.value" #~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/es_MX.po b/product_variant_default_code/i18n/es_MX.po index e9afabab2..52bda383c 100644 --- a/product_variant_default_code/i18n/es_MX.po +++ b/product_variant_default_code/i18n/es_MX.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Plantilla del producto" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Plantilla del producto" diff --git a/product_variant_default_code/i18n/fi.po b/product_variant_default_code/i18n/fi.po index a0ac42854..e296a20cd 100644 --- a/product_variant_default_code/i18n/fi.po +++ b/product_variant_default_code/i18n/fi.po @@ -30,6 +30,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -67,50 +68,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -130,9 +105,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Tuotteen malli" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -196,3 +171,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Tuotteen malli" diff --git a/product_variant_default_code/i18n/fr.po b/product_variant_default_code/i18n/fr.po index a4eea5768..9ea1ef7ce 100644 --- a/product_variant_default_code/i18n/fr.po +++ b/product_variant_default_code/i18n/fr.po @@ -29,6 +29,7 @@ msgid "Attribute Code" msgstr "Code de l'attribut" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,51 +69,25 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" "Nom d'attribut non reconnu trouvé dans \"Masque de référence de la variante\"" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "Référence manuelle" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Article" @@ -132,9 +107,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Modèle d'article" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -218,6 +193,9 @@ msgstr "Masque de référence de la variante" msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" +#~ msgid "Product Template" +#~ msgstr "Modèle d'article" + #~ msgid "Automask" #~ msgstr "Masque automatique" diff --git a/product_variant_default_code/i18n/fr_CH.po b/product_variant_default_code/i18n/fr_CH.po index 21b416f2c..35281045a 100644 --- a/product_variant_default_code/i18n/fr_CH.po +++ b/product_variant_default_code/i18n/fr_CH.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Template de produit" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Template de produit" diff --git a/product_variant_default_code/i18n/hr.po b/product_variant_default_code/i18n/hr.po index 8e95f562c..21042f28a 100644 --- a/product_variant_default_code/i18n/hr.po +++ b/product_variant_default_code/i18n/hr.po @@ -32,6 +32,7 @@ msgid "Attribute Code" msgstr "Šifra atributa" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -69,50 +70,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "Ručna šifra" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Proizvod" @@ -132,9 +107,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Predložak proizvoda" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -199,6 +174,9 @@ msgstr "" msgid "[attribute3]-[attribute1]" msgstr "" +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" + #~ msgid "Automask" #~ msgstr "Auto-maskiranje" diff --git a/product_variant_default_code/i18n/hr_HR.po b/product_variant_default_code/i18n/hr_HR.po index 0bbd05ea2..f7e4a3940 100644 --- a/product_variant_default_code/i18n/hr_HR.po +++ b/product_variant_default_code/i18n/hr_HR.po @@ -33,6 +33,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -70,50 +71,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Proizvod" @@ -133,9 +108,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Predložak proizvoda" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -199,3 +174,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" diff --git a/product_variant_default_code/i18n/it.po b/product_variant_default_code/i18n/it.po index 617880d42..3840fb94f 100644 --- a/product_variant_default_code/i18n/it.po +++ b/product_variant_default_code/i18n/it.po @@ -24,7 +24,8 @@ msgstr "" #: model:ir.model.fields,help:product_variant_default_code.field_product_product__code_prefix #: model:ir.model.fields,help:product_variant_default_code.field_product_template__code_prefix msgid "Add prefix to product variant reference (default code)" -msgstr "Aggiungi prefisso al riferimento variante prodotto (codice predefinito)" +msgstr "" +"Aggiungi prefisso al riferimento variante prodotto (codice predefinito)" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__code @@ -32,6 +33,7 @@ msgid "Attribute Code" msgstr "Codice Attributo" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -75,52 +77,26 @@ msgstr "" "predefinito (default_code) della variante." #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "Nome visualizzato" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -"Trovato nome attributo non riconosciuto nella \"Maschera riferimento " -"variante\"" - -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "ID" +"Trovato nome attributo non riconosciuto nella \"Maschera riferimento variante" +"\"" #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "Riferimento Interno" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "Ultima Modifica il" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "Riferimento Manuale" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Prodotto" @@ -140,9 +116,9 @@ msgid "Product Default Code Manual Mask" msgstr "Maschera manuale codice predefinito prodotto" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Modello prodotto" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -193,8 +169,8 @@ msgstr "" "predefinito nelle varianti sarà una cosa tipo `r-l` `n-l` `r-x` ...\n" "Se vuoi, puoi anche ripetere più di una volta il nome attributo nella " "maschera. Ad esempio,`fancyA/[Taglia]~[Colore]~[Taglia]`\n" -" Una volta salvato, il codice predefinito nelle varianti sarà una cosa come: " -"\n" +" Una volta salvato, il codice predefinito nelle varianti sarà una cosa " +"come: \n" " `fancyA/l~r~l` (per la variante colore \"Rosso\" e taglia \"L\") `fancyA/" "x~g~x` (per la variante colore \"Giallo\" e taglia \"XL\")\n" "Attenzione: assicurati che i caratteri \"[,]\" non siano presenti nel nome " @@ -206,8 +182,8 @@ msgid "" "Set behaviour of codes. Default: Automask (depends on variant use: see Sales/" "Purchases configuration)" msgstr "" -"Imposta i comportamenti dei codici. Predefinito: Maschera automatica (" -"dipende dall'uso delle varianti: vedi la configurazione in Vendite o " +"Imposta i comportamenti dei codici. Predefinito: Maschera automatica " +"(dipende dall'uso delle varianti: vedi la configurazione in Vendite o " "Acquisti)" #. module: product_variant_default_code @@ -227,5 +203,17 @@ msgstr "Maschera riferimento variante" msgid "[attribute3]-[attribute1]" msgstr "[attribute3]-[attribute1]" +#~ msgid "Display Name" +#~ msgstr "Nome visualizzato" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima Modifica il" + +#~ msgid "Product Template" +#~ msgstr "Modello prodotto" + #~ msgid "product.attribute.value" #~ msgstr "product.attribute.value" diff --git a/product_variant_default_code/i18n/nl_NL.po b/product_variant_default_code/i18n/nl_NL.po index ee8c8aa63..8b3fd4bd9 100644 --- a/product_variant_default_code/i18n/nl_NL.po +++ b/product_variant_default_code/i18n/nl_NL.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Productsjabloon" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Productsjabloon" diff --git a/product_variant_default_code/i18n/pt.po b/product_variant_default_code/i18n/pt.po index 888481802..fa7ad01d2 100644 --- a/product_variant_default_code/i18n/pt.po +++ b/product_variant_default_code/i18n/pt.po @@ -29,6 +29,7 @@ msgid "Attribute Code" msgstr "Código do Atributo" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -66,15 +67,7 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" @@ -82,36 +75,18 @@ msgstr "" "Foi encontrado um nome de atributo não reconhecido na \"Máscara de " "Referência da Variante\"" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "Referência Manual" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Produto" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Modelo de Produto" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -214,6 +189,9 @@ msgstr "Máscara de referência da variante" msgid "[attribute3]-[attribute1]" msgstr "[atributo3]-[atributo1]" +#~ msgid "Product Template" +#~ msgstr "Modelo de Produto" + #~ msgid "Automask" #~ msgstr "Auto-máscara" diff --git a/product_variant_default_code/i18n/pt_BR.po b/product_variant_default_code/i18n/pt_BR.po index fa726c39c..f79047a6b 100644 --- a/product_variant_default_code/i18n/pt_BR.po +++ b/product_variant_default_code/i18n/pt_BR.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Produto" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Produto Modelo" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Produto Modelo" diff --git a/product_variant_default_code/i18n/ro.po b/product_variant_default_code/i18n/ro.po index cbb4c9a79..3d4ce4ac7 100644 --- a/product_variant_default_code/i18n/ro.po +++ b/product_variant_default_code/i18n/ro.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Produs" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Produs șablon" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Produs șablon" diff --git a/product_variant_default_code/i18n/sl.po b/product_variant_default_code/i18n/sl.po index ba7990844..97c51a194 100644 --- a/product_variant_default_code/i18n/sl.po +++ b/product_variant_default_code/i18n/sl.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "Koda atributa" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -69,50 +70,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "V 'maski sklica variante' najden nerazpoznaven naziv atributa" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "Proizvod" @@ -132,9 +107,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Predloga proizvoda" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -198,3 +173,6 @@ msgstr "Maska sklica variante" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predloga proizvoda" diff --git a/product_variant_default_code/i18n/tr_TR.po b/product_variant_default_code/i18n/tr_TR.po index b9a08367f..7ae5fa427 100644 --- a/product_variant_default_code/i18n/tr_TR.po +++ b/product_variant_default_code/i18n/tr_TR.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Ürün şablonu" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Ürün şablonu" diff --git a/product_variant_default_code/i18n/vi_VN.po b/product_variant_default_code/i18n/vi_VN.po index 7bcf1c665..0a285f5ef 100644 --- a/product_variant_default_code/i18n/vi_VN.po +++ b/product_variant_default_code/i18n/vi_VN.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "Mẫu sản phẩm" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Mẫu sản phẩm" diff --git a/product_variant_default_code/i18n/zh_CN.po b/product_variant_default_code/i18n/zh_CN.po index b63ba9051..0ea39295b 100644 --- a/product_variant_default_code/i18n/zh_CN.po +++ b/product_variant_default_code/i18n/zh_CN.po @@ -31,6 +31,7 @@ msgid "Attribute Code" msgstr "" #. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #: model:ir.model.constraint,message:product_variant_default_code.constraint_product_attribute_number_uniq #, python-format @@ -68,50 +69,24 @@ msgid "" msgstr "" #. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__display_name -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__display_name -msgid "Display Name" -msgstr "" - -#. module: product_variant_default_code +#. odoo-python #: code:addons/product_variant_default_code/models/product.py:0 #, python-format msgid "Found unrecognized attribute name in \"Variant Reference Mask\"" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template__id -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings__id -msgid "ID" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__default_code msgid "Internal Reference" msgstr "" -#. module: product_variant_default_code -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_attribute_value____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_product____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_product_template____last_update -#: model:ir.model.fields,field_description:product_variant_default_code.field_res_config_settings____last_update -msgid "Last Modified on" -msgstr "" - #. module: product_variant_default_code #: model:ir.model.fields,field_description:product_variant_default_code.field_product_product__manual_code msgid "Manual Reference" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_product +#: model:ir.model,name:product_variant_default_code.model_product_template msgid "Product" msgstr "" @@ -131,9 +106,9 @@ msgid "Product Default Code Manual Mask" msgstr "" #. module: product_variant_default_code -#: model:ir.model,name:product_variant_default_code.model_product_template -msgid "Product Template" -msgstr "产品模板" +#: model:ir.model,name:product_variant_default_code.model_product_product +msgid "Product Variant" +msgstr "" #. module: product_variant_default_code #: model_terms:ir.ui.view,arch_db:product_variant_default_code.view_general_configuration @@ -197,3 +172,6 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:product_variant_default_code.product_template_only_form_view msgid "[attribute3]-[attribute1]" msgstr "" + +#~ msgid "Product Template" +#~ msgstr "产品模板" From cd33060d174cc36ef6fba9bfbe5293f7af3fece3 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 3 May 2023 18:11:53 +0200 Subject: [PATCH 60/65] Revert "[FIX][product_variant_default_code] check code of active value_ids" This reverts commit 20320aa0abc6ad7ef347d5e2a4b52010e45c4513. --- product_variant_default_code/__manifest__.py | 2 +- product_variant_default_code/models/product.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index 0bd28e173..d4cf213c9 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -15,7 +15,7 @@ "license": "AGPL-3", "category": "Product", "maintainers": ["Kev-Roche"], - "depends": ["product_attribute_archive"], + "depends": ["product"], "data": [ "security/product_security.xml", "data/ir_config_parameter.xml", diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 401831ac5..c48a7f771 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -217,11 +217,7 @@ def _inverse_default_code(self): rec.manual_code = bool(rec.default_code) def _generate_default_code(self): - value_codes = [ - rec.code - for rec in self.product_tmpl_id.attribute_line_ids.value_ids - if rec.active - ] + value_codes = self.product_tmpl_id.attribute_line_ids.value_ids.mapped("code") if (not self.code_prefix and self.product_tmpl_id.is_automask()) or not all( value_codes ): From eb99083d91448414b48c8b1c0a7d42d30b65c220 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 3 May 2023 16:25:32 +0000 Subject: [PATCH 61/65] product_variant_default_code 16.0.1.0.1 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index d4cf213c9..cb9aaa47f 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,7 +9,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 6a50122bc4c12a79673099bbe6a17cbf51894a42 Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Sat, 6 May 2023 16:50:30 +0200 Subject: [PATCH 62/65] [FIX] product_variant_default_code: fix template error When a product is being created or edited and attributes have not yet been added, a message is printed out in the band in case the reference prefix has not been filled in. If there is no error, this strip should remain hidden. TT42976 --- product_variant_default_code/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index c48a7f771..4fd2953dd 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -109,7 +109,7 @@ def _compute_variant_default_code_error(self): ) if error_txt: error_txt = "Default Code can not be computed.\n" + error_txt - rec.variant_default_code_error = error_txt + rec.variant_default_code_error = error_txt or False @api.depends( "code_prefix", From d70bc2ab3534ade2694c2e9237a77c96ec1c42b5 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 6 May 2023 18:50:13 +0000 Subject: [PATCH 63/65] product_variant_default_code 16.0.1.0.2 --- product_variant_default_code/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_default_code/__manifest__.py b/product_variant_default_code/__manifest__.py index cb9aaa47f..2ce01bcb6 100644 --- a/product_variant_default_code/__manifest__.py +++ b/product_variant_default_code/__manifest__.py @@ -9,7 +9,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Product Variant Default Code", - "version": "16.0.1.0.1", + "version": "16.0.1.0.2", "author": "AvancOSC, Shine IT, Tecnativa, Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", "license": "AGPL-3", From 4495e563792ce2937a169bf33d12a97ce495333a Mon Sep 17 00:00:00 2001 From: arantxa-s73 Date: Wed, 16 Oct 2024 12:36:04 +0200 Subject: [PATCH 64/65] [IMP] product_variant_default_code: pre-commit auto fixes --- product_variant_default_code/README.rst | 140 ++++++++-------- .../models/product.py | 4 +- product_variant_default_code/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 9 + .../readme/CONTRIBUTORS.rst | 10 -- .../readme/DESCRIPTION.md | 16 ++ .../readme/DESCRIPTION.rst | 18 -- .../readme/ROADMAP.md | 1 + .../readme/ROADMAP.rst | 1 - product_variant_default_code/readme/USAGE.md | 50 ++++++ product_variant_default_code/readme/USAGE.rst | 47 ------ .../static/description/index.html | 154 ++++++++++-------- .../tests/test_variant_default_code.py | 2 +- .../views/config_settings_view.xml | 41 ++--- .../views/product_view.xml | 8 +- 15 files changed, 256 insertions(+), 248 deletions(-) create mode 100644 product_variant_default_code/pyproject.toml create mode 100644 product_variant_default_code/readme/CONTRIBUTORS.md delete mode 100644 product_variant_default_code/readme/CONTRIBUTORS.rst create mode 100644 product_variant_default_code/readme/DESCRIPTION.md delete mode 100644 product_variant_default_code/readme/DESCRIPTION.rst create mode 100644 product_variant_default_code/readme/ROADMAP.md delete mode 100644 product_variant_default_code/readme/ROADMAP.rst create mode 100644 product_variant_default_code/readme/USAGE.md delete mode 100644 product_variant_default_code/readme/USAGE.rst diff --git a/product_variant_default_code/README.rst b/product_variant_default_code/README.rst index 78511ddaa..f0ff663cb 100644 --- a/product_variant_default_code/README.rst +++ b/product_variant_default_code/README.rst @@ -2,10 +2,13 @@ Product Variant Default Code ============================ -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0e25d0e9019dd6cfa4182b1688957555fc576f90f64d7a26c2cb9294253b5455 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,35 +17,36 @@ Product Variant Default Code :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github - :target: https://github.com/OCA/product-variant/tree/16.0/product_variant_default_code + :target: https://github.com/OCA/product-variant/tree/17.0/product_variant_default_code :alt: OCA/product-variant .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_default_code + :target: https://translation.odoo-community.org/projects/product-variant-17-0/product-variant-17-0-product_variant_default_code :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/137/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/product-variant&target_branch=17.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module automatically generate Product Reference (default_code) according to attributes data with a configurable behavior. -It defines a reference mask on the product templates so the -variants references are automatically set. For example: +It defines a reference mask on the product templates so the variants +references are automatically set. For example: -- Product template: Jacket -- Attributes: - - Color: White, Black - - Size: M, L -- Reference mask: `JKT01-[Color]-[Size]` +- Product template: Jacket +- Attributes: -- Reference on variants: + - Color: White, Black + - Size: M, L - - `JKT01-Wh-M` Jacket White M - - `JKT01-Bl-M` Jacket Black M - - `JKT01-Wh-L` Jacket White L - - `JKT01-Bl-L` Jacket Black L +- Reference mask: JKT01-[Color]-[Size] +- Reference on variants: + + - JKT01-Wh-M Jacket White M + - JKT01-Bl-M Jacket Black M + - JKT01-Wh-L Jacket White L + - JKT01-Bl-L Jacket Black L **Table of contents** @@ -52,66 +56,72 @@ variants references are automatically set. For example: Usage ===== -To set the reference mask up on any product template 'Variant reference mask' -new field. +To set the reference mask up on any product template 'Variant reference +mask' new field. -When creating a new product template without specifying the *Variant reference -mask*, a default value for *Variant reference mask* will be automatically -generated according to the attribute line settings on the product template (if -any). The mask will then be used as an instruction to generate default code of -each product variant of the product template with the corresponding *Attribute -Code* (of the attribute value) inserted. Besides the default value, *Variant -reference mask* can be configured to your liking, make sure putting the -*Attribute Name* inside `[]` marks (it is case sensitive). +When creating a new product template without specifying the *Variant +reference mask*, a default value for *Variant reference mask* will be +automatically generated according to the attribute line settings on the +product template (if any). The mask will then be used as an instruction +to generate default code of each product variant of the product template +with the corresponding *Attribute Code* (of the attribute value) +inserted. Besides the default value, *Variant reference mask* can be +configured to your liking, make sure putting the *Attribute Name* inside +[] marks (it is case sensitive). Example: -Creating a product named *Jacket* with two attributes, *Size* and *Color*:: +Creating a product named *Jacket* with two attributes, *Size* and +*Color*: + +:: Product: Jacket Color: Black(Bl), White(Wh) # Black and White are the attribute values; 'Bl' and 'Wh' are the corresponding codes Size: L (L), XL(XL) -The automatically generated default value for the Variant reference mask will -be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, -`Wh-L`, `Bl-XL` and `Wh-XL`. +The automatically generated default value for the Variant reference mask +will be [Color]-[Size] and so the 'default code' on the variants will be +Bl-L, Wh-L, Bl-XL and Wh-XL. -The mask value can be fully customized whatever you like. You can even have -the attribute name appear more than once in the mask such as, -`Jacket/[Size]~[Color]~[Size]`, and the generated code on variants will be -something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). +The mask value can be fully customized whatever you like. You can even +have the attribute name appear more than once in the mask such as, +Jacket/[Size]~[Color]~[Size], and the generated code on variants will be +something like Jacket/L~Bl~L (for variant with Color "Black" and Size +"L"). -When the code attribute is changed, it automatically regenerates the 'default -code' on all variants affected. +When the code attribute is changed, it automatically regenerates the +'default code' on all variants affected. -Aditionally, a product attribute can be set and so it will be appended to the -product `default_code`. In the first example, setting a `Color` code to `CO` -would give `default_code` like this: `COBl-L`, `COWh-L`, `COBl-XL` and -`COWh-XL`. +Aditionally, a product attribute can be set and so it will be appended +to the product default_code. In the first example, setting a Color code +to CO would give default_code like this: COBl-L, COWh-L, COBl-XL and +COWh-XL. Avoiding mask in variants -~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------------- -You can avoid this behavior or force a manual default_code on variant. To do -so, go to *Product Variants > [any variant you want to set up]* and set -manually its reference code. The field `manual code` will be set to on and the -variant internal reference will no longer be changed by this module. +You can avoid this behavior or force a manual default_code on variant. +To do so, go to *Product Variants > [any variant you want to set up]* +and set manually its reference code. The field manual code will be set +to on and the variant internal reference will no longer be changed by +this module. -Unset `manual code` and the reference code will be unlocked again. +Unset manual code and the reference code will be unlocked again. Known issues / Roadmap ====================== -* In case of attribute name update, related mask are not updated. +- In case of attribute name update, related mask are not updated. Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -119,7 +129,7 @@ Credits ======= Authors -~~~~~~~ +------- * AvancOSC * Shine IT @@ -127,21 +137,21 @@ Authors * Akretion Contributors -~~~~~~~~~~~~ +------------ -* Alfredo de la Fuente -* Tony Gu -* David Beal -* Daniel Campos -* Kévin Roche +- Alfredo de la Fuente +- Tony Gu +- David Beal +- Daniel Campos +- Kévin Roche +- Tecnativa : -* Tecnativa : - * David Vidal - * Pedro M. Baeza - * João Marques + - David Vidal + - Pedro M. Baeza + - João Marques Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -161,6 +171,6 @@ Current `maintainer `__: |maintainer-Kev-Roche| -This module is part of the `OCA/product-variant `_ project on GitHub. +This module is part of the `OCA/product-variant `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_default_code/models/product.py b/product_variant_default_code/models/product.py index 4fd2953dd..a9232f3d8 100644 --- a/product_variant_default_code/models/product.py +++ b/product_variant_default_code/models/product.py @@ -142,7 +142,7 @@ def _get_default_mask(self): main_lang = self._guess_main_lang() for line in self.attribute_line_ids: attribute_names.append( - "[{}]".format(line.attribute_id.with_context(lang=main_lang).name) + f"[{line.attribute_id.with_context(lang=main_lang).name}]" ) default_mask = (self.code_prefix or "") + default_reference_separator.join( attribute_names @@ -162,7 +162,7 @@ def create(self, vals): vals["reference_mask"] = product._get_default_mask() elif vals.get("reference_mask"): sanitize_reference_mask(product, vals["reference_mask"]) - return super(ProductTemplate, self).create(vals) + return super().create(vals) @api.model def _guess_main_lang(self): diff --git a/product_variant_default_code/pyproject.toml b/product_variant_default_code/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/product_variant_default_code/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_variant_default_code/readme/CONTRIBUTORS.md b/product_variant_default_code/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..5544620ec --- /dev/null +++ b/product_variant_default_code/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- Alfredo de la Fuente \<\> +- Tony Gu \<\> +- David Beal \<\> +- Daniel Campos \<\> +- Kévin Roche \<\> +- Tecnativa \: + - David Vidal + - Pedro M. Baeza + - João Marques diff --git a/product_variant_default_code/readme/CONTRIBUTORS.rst b/product_variant_default_code/readme/CONTRIBUTORS.rst deleted file mode 100644 index 2c3d56ad3..000000000 --- a/product_variant_default_code/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,10 +0,0 @@ -* Alfredo de la Fuente -* Tony Gu -* David Beal -* Daniel Campos -* Kévin Roche - -* Tecnativa : - * David Vidal - * Pedro M. Baeza - * João Marques diff --git a/product_variant_default_code/readme/DESCRIPTION.md b/product_variant_default_code/readme/DESCRIPTION.md new file mode 100644 index 000000000..6fd1f275b --- /dev/null +++ b/product_variant_default_code/readme/DESCRIPTION.md @@ -0,0 +1,16 @@ +This module automatically generate Product Reference (default_code) +according to attributes data with a configurable behavior. + +It defines a reference mask on the product templates so the variants +references are automatically set. For example: + +- Product template: Jacket +- Attributes: + - Color: White, Black + - Size: M, L +- Reference mask: JKT01-\[Color\]-\[Size\] +- Reference on variants: + - JKT01-Wh-M Jacket White M + - JKT01-Bl-M Jacket Black M + - JKT01-Wh-L Jacket White L + - JKT01-Bl-L Jacket Black L diff --git a/product_variant_default_code/readme/DESCRIPTION.rst b/product_variant_default_code/readme/DESCRIPTION.rst deleted file mode 100644 index 36ddbda6d..000000000 --- a/product_variant_default_code/readme/DESCRIPTION.rst +++ /dev/null @@ -1,18 +0,0 @@ -This module automatically generate Product Reference (default_code) -according to attributes data with a configurable behavior. - -It defines a reference mask on the product templates so the -variants references are automatically set. For example: - -- Product template: Jacket -- Attributes: - - Color: White, Black - - Size: M, L -- Reference mask: `JKT01-[Color]-[Size]` - -- Reference on variants: - - - `JKT01-Wh-M` Jacket White M - - `JKT01-Bl-M` Jacket Black M - - `JKT01-Wh-L` Jacket White L - - `JKT01-Bl-L` Jacket Black L diff --git a/product_variant_default_code/readme/ROADMAP.md b/product_variant_default_code/readme/ROADMAP.md new file mode 100644 index 000000000..eb87f2edb --- /dev/null +++ b/product_variant_default_code/readme/ROADMAP.md @@ -0,0 +1 @@ +- In case of attribute name update, related mask are not updated. diff --git a/product_variant_default_code/readme/ROADMAP.rst b/product_variant_default_code/readme/ROADMAP.rst deleted file mode 100644 index 79d630a39..000000000 --- a/product_variant_default_code/readme/ROADMAP.rst +++ /dev/null @@ -1 +0,0 @@ -* In case of attribute name update, related mask are not updated. diff --git a/product_variant_default_code/readme/USAGE.md b/product_variant_default_code/readme/USAGE.md new file mode 100644 index 000000000..74c81e182 --- /dev/null +++ b/product_variant_default_code/readme/USAGE.md @@ -0,0 +1,50 @@ +To set the reference mask up on any product template 'Variant reference +mask' new field. + +When creating a new product template without specifying the *Variant +reference mask*, a default value for *Variant reference mask* will be +automatically generated according to the attribute line settings on the +product template (if any). The mask will then be used as an instruction +to generate default code of each product variant of the product template +with the corresponding *Attribute Code* (of the attribute value) +inserted. Besides the default value, *Variant reference mask* can be +configured to your liking, make sure putting the *Attribute Name* inside +\[\] marks (it is case sensitive). + +Example: + +Creating a product named *Jacket* with two attributes, *Size* and +*Color*: + + Product: Jacket + Color: Black(Bl), White(Wh) # Black and White are the attribute values; + 'Bl' and 'Wh' are the corresponding codes + Size: L (L), XL(XL) + +The automatically generated default value for the Variant reference mask +will be \[Color\]-\[Size\] and so the 'default code' on the variants +will be Bl-L, Wh-L, Bl-XL and Wh-XL. + +The mask value can be fully customized whatever you like. You can even +have the attribute name appear more than once in the mask such as, +Jacket/\[Size\]~\[Color\]~\[Size\], and the generated code on variants +will be something like Jacket/L~Bl~L (for variant with Color "Black" and +Size "L"). + +When the code attribute is changed, it automatically regenerates the +'default code' on all variants affected. + +Aditionally, a product attribute can be set and so it will be appended +to the product default_code. In the first example, setting a Color code +to CO would give default_code like this: COBl-L, COWh-L, COBl-XL and +COWh-XL. + +## Avoiding mask in variants + +You can avoid this behavior or force a manual default_code on variant. +To do so, go to *Product Variants \> \[any variant you want to set up\]* +and set manually its reference code. The field manual code will be set +to on and the variant internal reference will no longer be changed by +this module. + +Unset manual code and the reference code will be unlocked again. diff --git a/product_variant_default_code/readme/USAGE.rst b/product_variant_default_code/readme/USAGE.rst deleted file mode 100644 index 84eea84e0..000000000 --- a/product_variant_default_code/readme/USAGE.rst +++ /dev/null @@ -1,47 +0,0 @@ -To set the reference mask up on any product template 'Variant reference mask' -new field. - -When creating a new product template without specifying the *Variant reference -mask*, a default value for *Variant reference mask* will be automatically -generated according to the attribute line settings on the product template (if -any). The mask will then be used as an instruction to generate default code of -each product variant of the product template with the corresponding *Attribute -Code* (of the attribute value) inserted. Besides the default value, *Variant -reference mask* can be configured to your liking, make sure putting the -*Attribute Name* inside `[]` marks (it is case sensitive). - -Example: - -Creating a product named *Jacket* with two attributes, *Size* and *Color*:: - - Product: Jacket - Color: Black(Bl), White(Wh) # Black and White are the attribute values; - 'Bl' and 'Wh' are the corresponding codes - Size: L (L), XL(XL) - -The automatically generated default value for the Variant reference mask will -be `[Color]-[Size]` and so the 'default code' on the variants will be `Bl-L`, -`Wh-L`, `Bl-XL` and `Wh-XL`. - -The mask value can be fully customized whatever you like. You can even have -the attribute name appear more than once in the mask such as, -`Jacket/[Size]~[Color]~[Size]`, and the generated code on variants will be -something like `Jacket/L~Bl~L` (for variant with Color "Black" and Size "L"). - -When the code attribute is changed, it automatically regenerates the 'default -code' on all variants affected. - -Aditionally, a product attribute can be set and so it will be appended to the -product `default_code`. In the first example, setting a `Color` code to `CO` -would give `default_code` like this: `COBl-L`, `COWh-L`, `COBl-XL` and -`COWh-XL`. - -Avoiding mask in variants -~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can avoid this behavior or force a manual default_code on variant. To do -so, go to *Product Variants > [any variant you want to set up]* and set -manually its reference code. The field `manual code` will be set to on and the -variant internal reference will no longer be changed by this module. - -Unset `manual code` and the reference code will be unlocked again. diff --git a/product_variant_default_code/static/description/index.html b/product_variant_default_code/static/description/index.html index 1ea834310..40c233b9e 100644 --- a/product_variant_default_code/static/description/index.html +++ b/product_variant_default_code/static/description/index.html @@ -1,20 +1,20 @@ - - + Product Variant Default Code