From f2f2677d92013d4b692988ea837ddf300ee7c98a Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Mon, 2 Nov 2020 16:07:03 -0500 Subject: [PATCH] [MIG] product_warranty: Migration to 13.0 --- product_warranty/README.rst | 29 +++++------ product_warranty/__manifest__.py | 8 ++-- product_warranty/i18n/es.po | 14 +++--- product_warranty/i18n/es_MX.po | 14 +++--- product_warranty/i18n/es_PA.po | 14 +++--- product_warranty/i18n/es_VE.po | 14 +++--- product_warranty/i18n/fr.po | 14 +++--- product_warranty/i18n/product_warranty.pot | 48 ++++++++++++------- product_warranty/i18n/pt_BR.po | 47 +++++++++++------- .../models/product_supplierinfo.py | 6 +-- product_warranty/models/product_template.py | 2 +- product_warranty/models/res_company.py | 4 +- product_warranty/models/return_instruction.py | 6 +-- product_warranty/readme/DESCRIPTION.rst | 8 +--- product_warranty/readme/USAGE.rst | 11 +++-- .../static/description/index.html | 27 ++++++----- .../tests/test_product_warranty.py | 4 +- product_warranty/views/product_warranty.xml | 1 - 18 files changed, 151 insertions(+), 120 deletions(-) diff --git a/product_warranty/README.rst b/product_warranty/README.rst index 4224e525..7953db07 100644 --- a/product_warranty/README.rst +++ b/product_warranty/README.rst @@ -14,23 +14,19 @@ Product Warranty :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github - :target: https://github.com/OCA/rma/tree/12.0/product_warranty + :target: https://github.com/OCA/rma/tree/13.0/product_warranty :alt: OCA/rma .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-product_warranty + :target: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-product_warranty :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/145/12.0 + :target: https://runbot.odoo-community.org/runbot/145/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| -Extends the product warranty management with warranty details on product / -supplier relation: - -* Supplier warranty duration -* Set default return address for company (if different from standard one) -* Whether to return product to company, supplier, other +This module extends the functionality of 'Sales Management' to allows you +to set product warranty details on products and product-supplier relation. **Table of contents** @@ -40,9 +36,14 @@ supplier relation: Usage ===== -The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management). +To use this module, you need to: + +#. Go to *Sales > Products > Products (or Product Variants)* +#. Create a new product (or product variant) or edit an existing one + and set 'Warranty Duration' under 'Sales' tab. +#. If 'Purchase' module is installed, got to + *Sales > Products > Products (or Product Variants)*, go to 'Purchase' tab, + edit supplier information lines an set the warranty information for each one. Bug Tracker =========== @@ -50,7 +51,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. @@ -116,6 +117,6 @@ Current `maintainers `__: |maintainer-osi-scampbell| |maintainer-max3903| -This module is part of the `OCA/rma `_ project on GitHub. +This module is part of the `OCA/rma `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_warranty/__manifest__.py b/product_warranty/__manifest__.py index c9aa12b4..ef9b053a 100644 --- a/product_warranty/__manifest__.py +++ b/product_warranty/__manifest__.py @@ -3,20 +3,20 @@ { "name": "Product Warranty", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Generic Modules/Product", "author": "Akretion, Vauxoo, Odoo Community Association (OCA)", "website": "https://github.com/OCA/rma", "license": "AGPL-3", - "depends": ["sale_management",], + "depends": ["sale_management"], "data": [ "security/ir.model.access.csv", "views/res_company.xml", "views/product_warranty.xml", "views/product_template.xml", ], - "demo": ["demo/product_warranty.xml", "demo/res_company.xml",], + "demo": ["demo/product_warranty.xml", "demo/res_company.xml"], "images": ["images/product_warranty.png"], "development_status": "Production/Stable", - "maintainers": ["osi-scampbell", "max3903",], + "maintainers": ["osi-scampbell", "max3903"], } diff --git a/product_warranty/i18n/es.po b/product_warranty/i18n/es.po index d4c553e1..aece0a78 100644 --- a/product_warranty/i18n/es.po +++ b/product_warranty/i18n/es.po @@ -37,7 +37,7 @@ msgid "Companies" msgstr "Compañías" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "Compañía" @@ -52,7 +52,7 @@ msgid "Created on" msgstr "Creado el" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" @@ -133,12 +133,12 @@ msgid "Last Updated on" msgstr "Última actualización el" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -182,7 +182,7 @@ msgid "Return type" msgstr "Tipo de devolución" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier #, fuzzy msgid "Supplier" msgstr "Proveedor activo" @@ -233,7 +233,7 @@ msgid "Warranty informations" msgstr "Información de garantía" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" @@ -272,7 +272,7 @@ msgstr "" "se puede devolver a la empresa y estar bajo la garantía de la marca)" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" diff --git a/product_warranty/i18n/es_MX.po b/product_warranty/i18n/es_MX.po index a54e5619..b4d0827a 100644 --- a/product_warranty/i18n/es_MX.po +++ b/product_warranty/i18n/es_MX.po @@ -32,7 +32,7 @@ msgid "Companies" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "" @@ -47,7 +47,7 @@ msgid "Created on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" @@ -119,12 +119,12 @@ msgid "Last Updated on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -167,7 +167,7 @@ msgid "Return type" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier msgid "Supplier" msgstr "" @@ -212,7 +212,7 @@ msgid "Warranty informations" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" @@ -240,6 +240,6 @@ msgid "" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" diff --git a/product_warranty/i18n/es_PA.po b/product_warranty/i18n/es_PA.po index a54e5619..b4d0827a 100644 --- a/product_warranty/i18n/es_PA.po +++ b/product_warranty/i18n/es_PA.po @@ -32,7 +32,7 @@ msgid "Companies" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "" @@ -47,7 +47,7 @@ msgid "Created on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" @@ -119,12 +119,12 @@ msgid "Last Updated on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -167,7 +167,7 @@ msgid "Return type" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier msgid "Supplier" msgstr "" @@ -212,7 +212,7 @@ msgid "Warranty informations" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" @@ -240,6 +240,6 @@ msgid "" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" diff --git a/product_warranty/i18n/es_VE.po b/product_warranty/i18n/es_VE.po index a54e5619..b4d0827a 100644 --- a/product_warranty/i18n/es_VE.po +++ b/product_warranty/i18n/es_VE.po @@ -32,7 +32,7 @@ msgid "Companies" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "" @@ -47,7 +47,7 @@ msgid "Created on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" @@ -119,12 +119,12 @@ msgid "Last Updated on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -167,7 +167,7 @@ msgid "Return type" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier msgid "Supplier" msgstr "" @@ -212,7 +212,7 @@ msgid "Warranty informations" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" @@ -240,6 +240,6 @@ msgid "" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" diff --git a/product_warranty/i18n/fr.po b/product_warranty/i18n/fr.po index fe59555a..80737010 100644 --- a/product_warranty/i18n/fr.po +++ b/product_warranty/i18n/fr.po @@ -35,7 +35,7 @@ msgid "Companies" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "" @@ -50,7 +50,7 @@ msgid "Created on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" @@ -122,12 +122,12 @@ msgid "Last Updated on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -170,7 +170,7 @@ msgid "Return type" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier #, fuzzy msgid "Supplier" msgstr "Fournisseur actif" @@ -221,7 +221,7 @@ msgid "Warranty informations" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" @@ -255,7 +255,7 @@ msgstr "" "celui qui gère le retour." #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" diff --git a/product_warranty/i18n/product_warranty.pot b/product_warranty/i18n/product_warranty.pot index a7dd119f..3461b785 100644 --- a/product_warranty/i18n/product_warranty.pot +++ b/product_warranty/i18n/product_warranty.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_warranty +# * product_warranty # 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" @@ -29,7 +29,7 @@ msgid "Companies" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "" @@ -44,13 +44,15 @@ msgid "Created on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_res_company__crm_return_address_id -msgid "Default address where the customers has to send back the returned product. If empty, the address is the company address." +msgid "" +"Default address where the customers has to send back the returned product. " +"If empty, the address is the company address." msgstr "" #. module: product_warranty @@ -65,7 +67,9 @@ msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_return_instruction__is_default -msgid "If is default, will be use to set the default value in supplier info's. Be careful to have only one default." +msgid "" +"If is default, will be use to set the default value in supplier info's. Be " +"careful to have only one default." msgstr "" #. module: product_warranty @@ -112,12 +116,12 @@ msgid "Last Updated on" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "" @@ -160,7 +164,7 @@ msgid "Return type" msgstr "" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier msgid "Supplier" msgstr "" @@ -193,7 +197,10 @@ msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_duration -msgid "Warranty in month for this product/supplier relation. Only for company/supplier relation (purchase order) ; the customer/company relation (sale order) always use the product main warranty field." +msgid "" +"Warranty in month for this product/supplier relation. Only for " +"company/supplier relation (purchase order) ; the customer/company relation " +"(sale order) always use the product main warranty field." msgstr "" #. module: product_warranty @@ -202,27 +209,34 @@ msgid "Warranty informations" msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_other_address -msgid "Where the customer has to send back the product(s) if warranty return is set to 'other'." +msgid "" +"Where the customer has to send back the product(s) if warranty return is set" +" to 'other'." msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_address -msgid "Where the goods should be returned (computed field based on other infos.)" +msgid "" +"Where the goods should be returned (computed field based on other infos.)" msgstr "" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_partner -msgid "Who is in charge of the warranty return treatment toward the end customer. Company will use the current company delivery or default address and so on for supplier and brand manufacturer. Doesn't necessarily mean that the warranty to be applied is the one of the return partner (ie: can be returned to the company and be under the brand warranty)." +msgid "" +"Who is in charge of the warranty return treatment toward the end customer. " +"Company will use the current company delivery or default address and so on " +"for supplier and brand manufacturer. Doesn't necessarily mean that the " +"warranty to be applied is the one of the return partner (ie: can be returned" +" to the company and be under the brand warranty)." msgstr "" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "" - diff --git a/product_warranty/i18n/pt_BR.po b/product_warranty/i18n/pt_BR.po index b323f45e..bfd32300 100644 --- a/product_warranty/i18n/pt_BR.po +++ b/product_warranty/i18n/pt_BR.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * product_warranty +# * product_warranty # msgid "" msgstr "" @@ -32,7 +32,7 @@ msgid "Companies" msgstr "Empresas" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__company msgid "Company" msgstr "Empresa" @@ -47,13 +47,15 @@ msgid "Created on" msgstr "Criado em" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__day msgid "Day(s)" msgstr "Dia(s)" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_res_company__crm_return_address_id -msgid "Default address where the customers has to send back the returned product. If empty, the address is the company address." +msgid "" +"Default address where the customers has to send back the returned product. " +"If empty, the address is the company address." msgstr "" "Endereço padrão em que os clientes devem entregar o produto a ser devolvido. " "Se o campo estiver vazio, o endereço será o da empresa." @@ -70,7 +72,9 @@ msgstr "ID" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_return_instruction__is_default -msgid "If is default, will be use to set the default value in supplier info's. Be careful to have only one default." +msgid "" +"If is default, will be use to set the default value in supplier info's. Be " +"careful to have only one default." msgstr "" "Se for o padrão, será usado para definir o valor padrão nas informações do " "fornecedor. Cuidado para ter apenas um padrão." @@ -119,12 +123,12 @@ msgid "Last Updated on" msgstr "Última Atualização Feita em" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__month msgid "Month(s)" msgstr "Mês(es)" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__other msgid "Other" msgstr "Outro(a)" @@ -167,7 +171,7 @@ msgid "Return type" msgstr "Tipo de Devolução" #. module: product_warranty -#: selection:product.supplierinfo,warranty_return_partner:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_supplierinfo__warranty_return_partner__supplier msgid "Supplier" msgstr "Fornecedor" @@ -200,11 +204,14 @@ msgstr "Tipo de Garantia" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_duration -msgid "Warranty in month for this product/supplier relation. Only for company/supplier relation (purchase order) ; the customer/company relation (sale order) always use the product main warranty field." +msgid "" +"Warranty in month for this product/supplier relation. Only for company/" +"supplier relation (purchase order) ; the customer/company relation (sale " +"order) always use the product main warranty field." msgstr "" "Garantia em meses para a este produto deste fornecedor. Somente para esta " -"relação de empresa e fornecedor (pedido); a relação do cliente e empresa (" -"pedido de venda) sempre usa o campo principal de garantia do produto." +"relação de empresa e fornecedor (pedido); a relação do cliente e empresa " +"(pedido de venda) sempre usa o campo principal de garantia do produto." #. module: product_warranty #: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view @@ -212,27 +219,35 @@ msgid "Warranty informations" msgstr "Informações da Garantia" #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__week msgid "Week(s)" msgstr "Semana(s)" #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_other_address -msgid "Where the customer has to send back the product(s) if warranty return is set to 'other'." +msgid "" +"Where the customer has to send back the product(s) if warranty return is set " +"to 'other'." msgstr "" "Onde o cliente deve devolver o(s) produto(s) se a devolução em garantia " "estiver definida como 'outro'." #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_address -msgid "Where the goods should be returned (computed field based on other infos.)" +msgid "" +"Where the goods should be returned (computed field based on other infos.)" msgstr "" "Onde as mercadorias devem ser devolvidas (campo calculado com base em outras " "informações)." #. module: product_warranty #: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_partner -msgid "Who is in charge of the warranty return treatment toward the end customer. Company will use the current company delivery or default address and so on for supplier and brand manufacturer. Doesn't necessarily mean that the warranty to be applied is the one of the return partner (ie: can be returned to the company and be under the brand warranty)." +msgid "" +"Who is in charge of the warranty return treatment toward the end customer. " +"Company will use the current company delivery or default address and so on " +"for supplier and brand manufacturer. Doesn't necessarily mean that the " +"warranty to be applied is the one of the return partner (ie: can be returned " +"to the company and be under the brand warranty)." msgstr "" "Quem é responsável pelo tratamento da devolução em garantia para o cliente " "final. A empresa usará a entrega atual da empresa ou o endereço padrão e " @@ -242,6 +257,6 @@ msgstr "" "marca)." #. module: product_warranty -#: selection:product.template,warranty_type:0 +#: model:ir.model.fields.selection,name:product_warranty.selection__product_template__warranty_type__year msgid "Year(s)" msgstr "Ano(s)" diff --git a/product_warranty/models/product_supplierinfo.py b/product_warranty/models/product_supplierinfo.py index 97859386..e9c3dd64 100644 --- a/product_warranty/models/product_supplierinfo.py +++ b/product_warranty/models/product_supplierinfo.py @@ -1,6 +1,6 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo -# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo +# Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models diff --git a/product_warranty/models/product_template.py b/product_warranty/models/product_template.py index c445c7c2..d671734c 100644 --- a/product_warranty/models/product_template.py +++ b/product_warranty/models/product_template.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators +# Copyright 2018 - TODAY, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/product_warranty/models/res_company.py b/product_warranty/models/res_company.py index 8dee633b..85be27e1 100644 --- a/product_warranty/models/res_company.py +++ b/product_warranty/models/res_company.py @@ -1,5 +1,5 @@ -# © 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) -# © 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau +# Copyright 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) +# Copyright 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/product_warranty/models/return_instruction.py b/product_warranty/models/return_instruction.py index db7ed798..bd5e74e8 100644 --- a/product_warranty/models/return_instruction.py +++ b/product_warranty/models/return_instruction.py @@ -1,6 +1,6 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo -# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo +# Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/product_warranty/readme/DESCRIPTION.rst b/product_warranty/readme/DESCRIPTION.rst index da2b8af9..c0788acf 100644 --- a/product_warranty/readme/DESCRIPTION.rst +++ b/product_warranty/readme/DESCRIPTION.rst @@ -1,6 +1,2 @@ -Extends the product warranty management with warranty details on product / -supplier relation: - -* Supplier warranty duration -* Set default return address for company (if different from standard one) -* Whether to return product to company, supplier, other +This module extends the functionality of 'Sales Management' to allows you +to set product warranty details on products and product-supplier relation. diff --git a/product_warranty/readme/USAGE.rst b/product_warranty/readme/USAGE.rst index af453434..bf3f1e20 100644 --- a/product_warranty/readme/USAGE.rst +++ b/product_warranty/readme/USAGE.rst @@ -1,3 +1,8 @@ -The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management). +To use this module, you need to: + +#. Go to *Sales > Products > Products (or Product Variants)* +#. Create a new product (or product variant) or edit an existing one + and set 'Warranty Duration' under 'Sales' tab. +#. If 'Purchase' module is installed, got to + *Sales > Products > Products (or Product Variants)*, go to 'Purchase' tab, + edit supplier information lines an set the warranty information for each one. diff --git a/product_warranty/static/description/index.html b/product_warranty/static/description/index.html index c7ed0462..3ecabce9 100644 --- a/product_warranty/static/description/index.html +++ b/product_warranty/static/description/index.html @@ -367,14 +367,9 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/rma Translate me on Weblate Try me on Runbot

-

Extends the product warranty management with warranty details on product / -supplier relation:

-
    -
  • Supplier warranty duration
  • -
  • Set default return address for company (if different from standard one)
  • -
  • Whether to return product to company, supplier, other
  • -
+

Production/Stable License: AGPL-3 OCA/rma Translate me on Weblate Try me on Runbot

+

This module extends the functionality of ‘Sales Management’ to allows you +to set product warranty details on products and product-supplier relation.

Table of contents

    @@ -391,16 +386,22 @@ supplier relation:

Usage

-

The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management).

+

To use this module, you need to:

+
    +
  1. Go to Sales > Products > Products (or Product Variants)
  2. +
  3. Create a new product (or product variant) or edit an existing one +and set ‘Warranty Duration’ under ‘Sales’ tab.
  4. +
  5. If ‘Purchase’ module is installed, got to +Sales > Products > Products (or Product Variants), go to ‘Purchase’ tab, +edit supplier information lines an set the warranty information for each one.
  6. +

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.

@@ -451,7 +452,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

osi-scampbell max3903

-

This module is part of the OCA/rma project on GitHub.

+

This module is part of the OCA/rma project on GitHub.

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

diff --git a/product_warranty/tests/test_product_warranty.py b/product_warranty/tests/test_product_warranty.py index 3d6137a6..11ee1f0f 100644 --- a/product_warranty/tests/test_product_warranty.py +++ b/product_warranty/tests/test_product_warranty.py @@ -1,5 +1,5 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo, Yanina Aular +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo, Yanina Aular # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase diff --git a/product_warranty/views/product_warranty.xml b/product_warranty/views/product_warranty.xml index 53474d94..3c2db686 100644 --- a/product_warranty/views/product_warranty.xml +++ b/product_warranty/views/product_warranty.xml @@ -32,7 +32,6 @@ Products Return Instructions return.instruction - form tree,form