diff --git a/product_warranty/README.rst b/product_warranty/README.rst new file mode 100644 index 00000000..7953db07 --- /dev/null +++ b/product_warranty/README.rst @@ -0,0 +1,122 @@ +================ +Product Warranty +================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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%2Frma-lightgray.png?logo=github + :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-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/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +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** + +.. contents:: + :local: + +Usage +===== + +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 +=========== + +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 +~~~~~~~ + +* Akretion +* Vauxoo + +Contributors +~~~~~~~~~~~~ + +* Emmanuel Samyn +* Paulius Sladkevičius +* Benoît Guillot +* David Beal +* Maxime Chambreuil +* Joël Grand-Guillaume +* Ondřej Kuzník +* Yanina Aular +* Cyril Gaudin +* Bima Jati Wijaya +* Serpent Consulting Services Pvt. Ltd. + +Other credits +~~~~~~~~~~~~~ + +This module has been financially supported by: + +* Inovera +* Akretion Brazil +* Akretion +* Savoir-faire Linux +* Credativ +* Vauxoo +* Camp 2 Camp +* Open Source Integrators + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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-osi-scampbell| image:: https://github.com/osi-scampbell.png?size=40px + :target: https://github.com/osi-scampbell + :alt: osi-scampbell +.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 + +Current `maintainers `__: + +|maintainer-osi-scampbell| |maintainer-max3903| + +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/__init__.py b/product_warranty/__init__.py new file mode 100644 index 00000000..83e553ac --- /dev/null +++ b/product_warranty/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/product_warranty/__manifest__.py b/product_warranty/__manifest__.py new file mode 100644 index 00000000..ef9b053a --- /dev/null +++ b/product_warranty/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright (C) 2009-2011 Akretion, Emmanuel Samyn +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Product Warranty", + "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"], + "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"], + "images": ["images/product_warranty.png"], + "development_status": "Production/Stable", + "maintainers": ["osi-scampbell", "max3903"], +} diff --git a/product_warranty/demo/product_warranty.xml b/product_warranty/demo/product_warranty.xml new file mode 100644 index 00000000..db2d913b --- /dev/null +++ b/product_warranty/demo/product_warranty.xml @@ -0,0 +1,73 @@ + + + + Default Instruction + To return a product purchased through our + platform vendor Marketplace access our online Returns Center and + click Return products to begin the application process for the + return. + Select the product you want to return and the reason for the + return. You will need you to provide detailed information to enable + the seller to handle your request. Once the seller has reviewed + your application, it will respond by e-mail within 3 working days. + + 1 + + + Provisional Instruction + Under the provisions of these Conditions of + Sale, you may return the products received once you have contacted + our customer service department adidas Mexico and the request is + authorized. If you choose to return your order, we will refund: the + full purchase price, as long as we have previously returned the + products you order in perfect condition: (i) new product unused, + (ii) with packaging, original box and tags (iii) be in the period + of 30 calendar days after receiving the product. If you do not + return the products to fulfill the above conditions, we are + entitled to charge the products or the costs of recovery. + + + + + 5 + + + + other + + 8 + + + 5 + 1 + + + + supplier + 12 + + + 5 + 1 + + + + 5 + + + + supplier + 10 + + + + supplier + 6 + + diff --git a/product_warranty/demo/res_company.xml b/product_warranty/demo/res_company.xml new file mode 100644 index 00000000..7ba9a9ae --- /dev/null +++ b/product_warranty/demo/res_company.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/product_warranty/i18n/es.po b/product_warranty/i18n/es.po new file mode 100644 index 00000000..d4c553e1 --- /dev/null +++ b/product_warranty/i18n/es.po @@ -0,0 +1,307 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: product_warranty.es\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-11-21 15:06+0000\n" +"PO-Revision-Date: 2020-08-22 13:59+0000\n" +"Last-Translator: Pedro M. Baeza \n" +"Language-Team: Domatix Technologies\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" +"X-Launchpad-Export-Date: 2014-05-24 06:50+0000\n" +"X-Poedit-SourceCharset: utf-8\n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +#, fuzzy +msgid "Active Supplier" +msgstr "Proveedor activo" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +#, fuzzy +msgid "CRM Product Return Address" +msgstr "Dirección de devolución del producto" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "Compañía" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Day(s)" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_res_company__crm_return_address_id +#, fuzzy +msgid "" +"Default address where the customers has to send back the returned product. " +"If empty, the address is the company address." +msgstr "" +"Dirección por defecto donde los clientes deben enviar de regresa los " +"productos devueltos. Si está vacío, la dirección es la dirección de la " +"compañía" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +msgstr "ID" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_return_instruction__is_default +#, fuzzy +msgid "" +"If is default, will be use to set the default value in supplier info's. Be " +"careful to have only one default." +msgstr "" +"Si es por defecto, se usará para establecer el valor por defecto en la " +"información del proveedor. Tenga cuidado de tener sólo un por defecto" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "Instrucciones" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "Instrucciones para la devolución del producto" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +#, fuzzy +msgid "Instructions for product return." +msgstr "Instrucciones para la devolución del producto" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "Por defecto" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +#, fuzzy +msgid "Is this supplier still active, only for information." +msgstr "Indica si el proveedor todavía está activo. Sólo para información" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "Última modificación en" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "Periodo" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "Intrucciones para devolución de productos" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "Dirección de devolución" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "Instrucciones de devolución" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +#, fuzzy +msgid "Return other address" +msgstr "Dirección de devolución" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "Tipo de devolución" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +#, fuzzy +msgid "Supplier" +msgstr "Proveedor activo" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "Título" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +#, fuzzy +msgid "Warranty Duration" +msgstr "Información de garantía" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_duration +#, fuzzy +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 "" +"Garantía en meses para la relación producto/proveedor. Sólo para la relación " +"producto/compañía (orden de compra); la relación cliente/compañía (orden de " +"venta) siempre usa el producto principal para el campo garantía" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "Información de garantía" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +msgstr "" +"Dónde debe enviar el cliente de vuelta el/los producto/s si la garantía de " +"devolución se establece a 'otra'." + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_address +#, fuzzy +msgid "" +"Where the goods should be returned (computed field based on other infos.)" +msgstr "" +"Dónde se devolverán los bienes (campo calculado basado en otra información)." + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_partner +#, fuzzy +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 "" +"Especifica quién es el responsable del tratamiento de la devolución de " +"garantía para el cliente final. La compañía utilizará la dirección por " +"defecto o la dirección de envío de la compañía, y así sucesivamente por " +"proveedor y marca del fabricante. No significa necesariamente que la " +"garantía que se aplica es el de la empresa que hace la devolución (es decir: " +"se puede devolver a la empresa y estar bajo la garantía de la marca)" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" + +#~ 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 "" +#~ "Garantía en meses para este producto/proveedor. Únicamente para " +#~ "relaciones empresa/proveedor (Orden de compra); la relación cliente/" +#~ "proveedor (Orden de venta) usa siempre el campo garantía de la ficha de " +#~ "producto" + +#~ msgid "Products return instructions" +#~ msgstr "Instrucciones de devolución de los productos" + +#~ msgid "Information about a product supplier" +#~ msgstr "Información sobre un proveedor de producto" + +#~ msgid "" +#~ "Who is in charge of the warranty return treatment toward the end " +#~ "customer. Company will use the current compagny delivery or default " +#~ "address and so on for supplier and brand manufacturer. Doesn't necessarly " +#~ "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 "" +#~ "Quién se encarga del tratamiento de retorno de garantía hacia el cliente " +#~ "final. Compañía utilizará la entrega compagny actual o la dirección por " +#~ "defecto y así sucesivamente para el proveedor y el fabricante de la " +#~ "marca. No significa necessarly que la garantía que se aplica es el de la " +#~ "pareja de retorno (es decir: pueden ser devueltos a la empresa y estar " +#~ "bajo la garantía de la marca" diff --git a/product_warranty/i18n/es_MX.po b/product_warranty/i18n/es_MX.po new file mode 100644 index 00000000..a54e5619 --- /dev/null +++ b/product_warranty/i18n/es_MX.po @@ -0,0 +1,245 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-17 20:41+0000\n" +"PO-Revision-Date: 2015-07-17 20:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +msgid "Active Supplier" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Supplier" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +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." +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +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)." +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" diff --git a/product_warranty/i18n/es_PA.po b/product_warranty/i18n/es_PA.po new file mode 100644 index 00000000..a54e5619 --- /dev/null +++ b/product_warranty/i18n/es_PA.po @@ -0,0 +1,245 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-17 20:41+0000\n" +"PO-Revision-Date: 2015-07-17 20:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +msgid "Active Supplier" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Supplier" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +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." +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +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)." +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" diff --git a/product_warranty/i18n/es_VE.po b/product_warranty/i18n/es_VE.po new file mode 100644 index 00000000..a54e5619 --- /dev/null +++ b/product_warranty/i18n/es_VE.po @@ -0,0 +1,245 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-17 20:41+0000\n" +"PO-Revision-Date: 2015-07-17 20:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +msgid "Active Supplier" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Supplier" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +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." +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +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)." +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" diff --git a/product_warranty/i18n/fr.po b/product_warranty/i18n/fr.po new file mode 100644 index 00000000..fe59555a --- /dev/null +++ b/product_warranty/i18n/fr.po @@ -0,0 +1,263 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.0.2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-11-21 15:06+0000\n" +"PO-Revision-Date: 2014-01-22 19:17+0000\n" +"Last-Translator: Joël Grand-Guillaume @ camptocamp \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-05-24 06:50+0000\n" +"X-Generator: Launchpad (build 17017)\n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +#, fuzzy +msgid "Active Supplier" +msgstr "Fournisseur actif" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +#, fuzzy +msgid "Supplier" +msgstr "Fournisseur actif" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_duration +#, fuzzy +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 "" +"Garantie en nombre de mois pour ce fournisseur. Uniquement pour la relation " +"entreprise/fournisseur (commandes d'achat) ; La relation entreprise/client " +"(commandes de vente) utilise toujours le champ de garantie de la fiche " +"produit" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__warranty_return_partner +#, fuzzy +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 "" +"Indique qui est en charge du traitement du retour garantie envers le client " +"final. L'entreprise utilise l'adresse de livraison, et sinon l'adresse par " +"défaut. Il en va de même pour les options fournisseur ou fabricant. Ce champ " +"n'implique pas forcément que la garantie qui va s'appliquer est celle de " +"celui qui gère le retour." + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" + +#~ msgid "Information about a product supplier" +#~ msgstr "Information sur le fournisseur du produit" diff --git a/product_warranty/i18n/product_warranty.pot b/product_warranty/i18n/product_warranty.pot new file mode 100644 index 00000000..a7dd119f --- /dev/null +++ b/product_warranty/i18n/product_warranty.pot @@ -0,0 +1,228 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +msgid "Active Supplier" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Supplier" +msgstr "" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +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." +msgstr "" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +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)." +msgstr "" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "" + diff --git a/product_warranty/i18n/pt_BR.po b/product_warranty/i18n/pt_BR.po new file mode 100644 index 00000000..b323f45e --- /dev/null +++ b/product_warranty/i18n/pt_BR.po @@ -0,0 +1,247 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_warranty +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-07-22 18:19+0000\n" +"Last-Translator: Fernando Colus \n" +"Language-Team: none\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__active_supplier +msgid "Active Supplier" +msgstr "Fornecedor Ativo" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.company_form +msgid "CRM Product Return Address" +msgstr "Endereço de Devolução do Produto (CRM)" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_res_company +msgid "Companies" +msgstr "Empresas" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Company" +msgstr "Empresa" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_uid +msgid "Created by" +msgstr "Criado por" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__create_date +msgid "Created on" +msgstr "Criado em" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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." +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." + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name +msgid "Display Name" +msgstr "Exibir Nome" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id +msgid "ID" +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." +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." + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__instructions +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +msgid "Instructions" +msgstr "Instruções" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_return_instruction +msgid "Instructions for product return" +msgstr "Instruções para a devolução do produto" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__return_instructions +#: model:ir.model.fields,help:product_warranty.field_return_instruction__instructions +msgid "Instructions for product return." +msgstr "Instruções para a devolução do produto." + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__is_default +msgid "Is default" +msgstr "É padrão" + +#. module: product_warranty +#: model:ir.model.fields,help:product_warranty.field_product_supplierinfo__active_supplier +msgid "Is this supplier still active, only for information." +msgstr "Este fornecedor ainda está ativo, apenas para informações." + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update +msgid "Last Modified on" +msgstr "Última modificação Feita em" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_uid +msgid "Last Updated by" +msgstr "Última Atualização Feita por" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__write_date +msgid "Last Updated on" +msgstr "Última Atualização Feita em" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Month(s)" +msgstr "Mês(es)" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Other" +msgstr "Outro(a)" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_duration +msgid "Period" +msgstr "Período" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_template +msgid "Product Template" +msgstr "Modelo de Produto" + +#. module: product_warranty +#: model:ir.actions.act_window,name:product_warranty.product_return_instructions_action +#: model:ir.ui.menu,name:product_warranty.menu_product_return_instructions_action +msgid "Products Return Instructions" +msgstr "Instruções para devolução dos produtos" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_address +#: model:ir.model.fields,field_description:product_warranty.field_res_company__crm_return_address_id +msgid "Return address" +msgstr "Endereço de Devolução" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_form_view +#: model_terms:ir.ui.view,arch_db:product_warranty.product_return_instructions_tree_view +msgid "Return instructions" +msgstr "Instruções para devolução" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_other_address +msgid "Return other address" +msgstr "Outro endereço para devolução dos produtos" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__warranty_return_partner +msgid "Return type" +msgstr "Tipo de Devolução" + +#. module: product_warranty +#: selection:product.supplierinfo,warranty_return_partner:0 +msgid "Supplier" +msgstr "Fornecedor" + +#. module: product_warranty +#: model:ir.model,name:product_warranty.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "Lista de Preços do Fornecedor" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__name +msgid "Title" +msgstr "Título" + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_template_extend_warranty +msgid "Warranty" +msgstr "Garantia" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty +msgid "Warranty Duration" +msgstr "Duração da Garantia" + +#. module: product_warranty +#: model:ir.model.fields,field_description:product_warranty.field_product_product__warranty_type +#: model:ir.model.fields,field_description:product_warranty.field_product_template__warranty_type +msgid "Warranty Type" +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." +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." + +#. module: product_warranty +#: model_terms:ir.ui.view,arch_db:product_warranty.product_supplierinfo_warranty_form_view +msgid "Warranty informations" +msgstr "Informações da Garantia" + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +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'." +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.)" +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)." +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 " +"assim por diante para o fornecedor e o fabricante da marca. Não significa " +"necessariamente que a garantia a ser aplicada seja a do parceiro de " +"devolução (ou seja: pode ser devolvido à empresa e estar sob a garantia da " +"marca)." + +#. module: product_warranty +#: selection:product.template,warranty_type:0 +msgid "Year(s)" +msgstr "Ano(s)" diff --git a/product_warranty/images/product_warranty.png b/product_warranty/images/product_warranty.png new file mode 100644 index 00000000..c2eb36e6 Binary files /dev/null and b/product_warranty/images/product_warranty.png differ diff --git a/product_warranty/models/__init__.py b/product_warranty/models/__init__.py new file mode 100644 index 00000000..6dde5c17 --- /dev/null +++ b/product_warranty/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import return_instruction, product_supplierinfo, res_company, product_template diff --git a/product_warranty/models/product_supplierinfo.py b/product_warranty/models/product_supplierinfo.py new file mode 100644 index 00000000..e9c3dd64 --- /dev/null +++ b/product_warranty/models/product_supplierinfo.py @@ -0,0 +1,84 @@ +# 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 + + +class ProductSupplierInfo(models.Model): + _inherit = "product.supplierinfo" + + @api.model + def _get_default_instructions(self): + """ Get selected lines to add to exchange """ + return self.env["return.instruction"].search( + [("is_default", "=", True)], limit=1 + ) + + @api.depends("warranty_return_partner") + def _compute_warranty_return_address(self): + """ Method to return the partner delivery address or if none, the + default address + """ + for record in self: + return_partner = record.warranty_return_partner + partner_id = record.company_id.partner_id.id + if return_partner and return_partner == "supplier": + partner_id = record.name.id + elif ( + return_partner + and return_partner == "company" + and record.company_id.crm_return_address_id + ): + partner_id = record.company_id.crm_return_address_id.id + elif ( + return_partner + and return_partner == "other" + and record.warranty_return_other_address + ): + partner_id = record.warranty_return_other_address.id + record.warranty_return_address = partner_id + + warranty_duration = fields.Float( + "Period", + help="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.", + ) + warranty_return_partner = fields.Selection( + [("company", "Company"), ("supplier", "Supplier"), ("other", "Other")], + string="Return type", + required=True, + default="company", + help="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).", + ) + return_instructions = fields.Many2one( + "return.instruction", + "Instructions", + default=_get_default_instructions, + help="Instructions for product return.", + ) + active_supplier = fields.Boolean( + help="Is this supplier still active, only for information." + ) + warranty_return_address = fields.Many2one( + "res.partner", + compute="_compute_warranty_return_address", + string="Return address", + help="Where the goods should be returned " + "(computed field based on other infos.)", + ) + warranty_return_other_address = fields.Many2one( + "res.partner", + string="Return other address", + help="Where the customer has to send back the product(s) " + "if warranty return is set to 'other'.", + ) diff --git a/product_warranty/models/product_template.py b/product_warranty/models/product_template.py new file mode 100644 index 00000000..d671734c --- /dev/null +++ b/product_warranty/models/product_template.py @@ -0,0 +1,21 @@ +# Copyright 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + warranty = fields.Integer(string="Warranty Duration") + warranty_type = fields.Selection( + [ + ("day", "Day(s)"), + ("week", "Week(s)"), + ("month", "Month(s)"), + ("year", "Year(s)"), + ], + string="Warranty Type", + required=True, + default="day", + ) diff --git a/product_warranty/models/res_company.py b/product_warranty/models/res_company.py new file mode 100644 index 00000000..85be27e1 --- /dev/null +++ b/product_warranty/models/res_company.py @@ -0,0 +1,17 @@ +# 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 + + +class ResCompany(models.Model): + _inherit = "res.company" + + crm_return_address_id = fields.Many2one( + "res.partner", + string="Return address", + help="Default address where the customers has to send back the " + "returned product. If empty, the address is the " + "company address.", + ) diff --git a/product_warranty/models/return_instruction.py b/product_warranty/models/return_instruction.py new file mode 100644 index 00000000..bd5e74e8 --- /dev/null +++ b/product_warranty/models/return_instruction.py @@ -0,0 +1,21 @@ +# 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 + + +class ReturnInstruction(models.Model): + _name = "return.instruction" + _description = "Instructions for product return" + + name = fields.Char("Title", required=True) + instructions = fields.Text("Instructions", help="Instructions for product return.") + is_default = fields.Boolean( + "Is default", + help="If is default, will be use " + "to set the default value in " + "supplier info's. Be careful to " + "have only one default.", + ) diff --git a/product_warranty/readme/CONTRIBUTORS.rst b/product_warranty/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..48dad312 --- /dev/null +++ b/product_warranty/readme/CONTRIBUTORS.rst @@ -0,0 +1,11 @@ +* Emmanuel Samyn +* Paulius Sladkevičius +* Benoît Guillot +* David Beal +* Maxime Chambreuil +* Joël Grand-Guillaume +* Ondřej Kuzník +* Yanina Aular +* Cyril Gaudin +* Bima Jati Wijaya +* Serpent Consulting Services Pvt. Ltd. diff --git a/product_warranty/readme/CREDITS.rst b/product_warranty/readme/CREDITS.rst new file mode 100644 index 00000000..b6f1055f --- /dev/null +++ b/product_warranty/readme/CREDITS.rst @@ -0,0 +1,10 @@ +This module has been financially supported by: + +* Inovera +* Akretion Brazil +* Akretion +* Savoir-faire Linux +* Credativ +* Vauxoo +* Camp 2 Camp +* Open Source Integrators diff --git a/product_warranty/readme/DESCRIPTION.rst b/product_warranty/readme/DESCRIPTION.rst new file mode 100644 index 00000000..c0788acf --- /dev/null +++ b/product_warranty/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +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 new file mode 100644 index 00000000..bf3f1e20 --- /dev/null +++ b/product_warranty/readme/USAGE.rst @@ -0,0 +1,8 @@ +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/security/ir.model.access.csv b/product_warranty/security/ir.model.access.csv new file mode 100644 index 00000000..ba6c463e --- /dev/null +++ b/product_warranty/security/ir.model.access.csv @@ -0,0 +1,4 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_return_instruction_user","return.instruction.user","model_return_instruction","base.group_user","True","False","False","False" +"access_return_instruction_manager","return.instruction.manager","model_return_instruction","sales_team.group_sale_manager","True","True","True","True" +"access_return_instruction_salesman","return.instruction.salesman","model_return_instruction","sales_team.group_sale_salesman","True","True","True","True" diff --git a/product_warranty/static/description/icon.png b/product_warranty/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/product_warranty/static/description/icon.png differ diff --git a/product_warranty/static/description/index.html b/product_warranty/static/description/index.html new file mode 100644 index 00000000..3ecabce9 --- /dev/null +++ b/product_warranty/static/description/index.html @@ -0,0 +1,461 @@ + + + + + + +Product Warranty + + + +
+

Product Warranty

+ + +

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

+ +
+

Usage

+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Vauxoo
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

This module has been financially supported by:

+ +
+
+

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.

+

Current maintainers:

+

osi-scampbell max3903

+

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/__init__.py b/product_warranty/tests/__init__.py new file mode 100644 index 00000000..4e58d94d --- /dev/null +++ b/product_warranty/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_product_warranty diff --git a/product_warranty/tests/test_product_warranty.py b/product_warranty/tests/test_product_warranty.py new file mode 100644 index 00000000..11ee1f0f --- /dev/null +++ b/product_warranty/tests/test_product_warranty.py @@ -0,0 +1,77 @@ +# 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 + + +class TestProductWarranty(TransactionCase): + def setUp(self): + super(TestProductWarranty, self).setUp() + self.instruction_model = self.env["return.instruction"] + self.supplierinfo = self.env["product.supplierinfo"] + self.create_product_supplierinfo() + + def create_product_supplierinfo(self): + """ + Create a record of product.supplier for next tests + """ + + product_tmpl_id = self.env.ref("product.product_product_3") + + partner_id = self.env.ref("base.res_partner_4") + other_partner = self.env.ref("base.res_partner_12") + + supplierinfo_data = dict( + name=partner_id.id, + product_name="Test SupplierInfo for display Default Instruction", + min_qty=4, + delay=5, + warranty_return_partner="supplier", + product_tmpl_id=product_tmpl_id.id, + warranty_return_other_address=other_partner.id, + ) + + self.supplierinfo_brw = self.supplierinfo.create(supplierinfo_data) + + def test_default_instruction(self): + """ + Test for return.instruction record with + default field in True. If is assigned + correctly when one record of + product.supplierinfo is created + """ + + return_instructions_id = self.env.ref( + "product_warranty." "return_instruction_1" + ) + + self.assertEquals( + self.supplierinfo_brw.return_instructions.id, return_instructions_id.id + ) + + def test_warranty_return_address(self): + """ + Test warranty_return_address field is calculate correctly depends of + warranty_return_partner + """ + self.create_product_supplierinfo() + + self.assertEquals( + self.supplierinfo_brw.warranty_return_address.id, + self.supplierinfo_brw.name.id, + ) + + self.supplierinfo_brw.write({"warranty_return_partner": "company"}) + + self.assertEquals( + self.supplierinfo_brw.warranty_return_address.id, + self.supplierinfo_brw.company_id.crm_return_address_id.id, + ) + + self.supplierinfo_brw.write({"warranty_return_partner": "other"}) + + self.assertEquals( + self.supplierinfo_brw.warranty_return_address.id, + self.supplierinfo_brw.warranty_return_other_address.id, + ) diff --git a/product_warranty/views/product_template.xml b/product_warranty/views/product_template.xml new file mode 100644 index 00000000..005dd868 --- /dev/null +++ b/product_warranty/views/product_template.xml @@ -0,0 +1,21 @@ + + + + product.template + + + + + + + + + + + + diff --git a/product_warranty/views/product_warranty.xml b/product_warranty/views/product_warranty.xml new file mode 100644 index 00000000..3c2db686 --- /dev/null +++ b/product_warranty/views/product_warranty.xml @@ -0,0 +1,88 @@ + + + + + product.return.instructions.tree + return.instruction + + + + + + + + + + + product.return.instructions.form + return.instruction + +
+ + + + + + + + +
+
+
+ + Products Return Instructions + return.instruction + tree,form + + + + + + product.supplierinfo.warranty.tree + product.supplierinfo + + + + + + + + + + + + + + product.supplierinfo.warranty.form + product.supplierinfo + + + + + + + + + + + + + + + + +
diff --git a/product_warranty/views/res_company.xml b/product_warranty/views/res_company.xml new file mode 100644 index 00000000..34bef43c --- /dev/null +++ b/product_warranty/views/res_company.xml @@ -0,0 +1,22 @@ + + + + + crm_claim_rma.company_form + res.company + + + + + + + + + + + + + diff --git a/setup/product_warranty/odoo/addons/product_warranty b/setup/product_warranty/odoo/addons/product_warranty new file mode 120000 index 00000000..a1e24b0a --- /dev/null +++ b/setup/product_warranty/odoo/addons/product_warranty @@ -0,0 +1 @@ +../../../../product_warranty \ No newline at end of file diff --git a/setup/product_warranty/setup.py b/setup/product_warranty/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/product_warranty/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)