diff --git a/product_warranty/README.rst b/product_warranty/README.rst index a07914af..9cdd668b 100644 --- a/product_warranty/README.rst +++ b/product_warranty/README.rst @@ -1,9 +1,30 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 - +================ 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/11.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-11-0/rma-11-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/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Extends the product warranty management with warranty details on product / supplier relation: @@ -11,6 +32,11 @@ supplier relation: * Set default return address for company (if different from standard one) * Whether to return product to company, supplier, other +**Table of contents** + +.. contents:: + :local: + Usage ===== @@ -18,11 +44,27 @@ 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). +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 @@ -35,17 +77,44 @@ Contributors * Cyril Gaudin * Bima Jati Wijaya -Maintainer ----------- +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 -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit http://odoo-community.org. +.. |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 index 0d135c28..466cdd81 100644 --- a/product_warranty/__init__.py +++ b/product_warranty/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Cyril Gaudin (Camptocamp) # © 2009-2011 Akretion, Emmanuel Samyn # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/product_warranty/__manifest__.py b/product_warranty/__manifest__.py index e2b6badb..563ab9ca 100644 --- a/product_warranty/__manifest__.py +++ b/product_warranty/__manifest__.py @@ -1,44 +1,31 @@ -# -*- coding: utf-8 -*- -######################################################################### -# # -# # -######################################################################### -# # -# Copyright (C) 2009-2011 Akretion, Emmanuel Samyn # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -######################################################################### +# Copyright (C) 2009-2011 Akretion, Emmanuel Samyn +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': 'Product warranty', - 'version': '10.0.1.0.0', + 'name': 'Product Warranty', + 'version': '11.0.1.0.0', 'category': 'Generic Modules/Product', - 'author': "Akretion,Odoo Community Association (OCA),Vauxoo", - 'website': 'http://akretion.com', + 'author': 'Akretion, Vauxoo, Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/rma', 'license': 'AGPL-3', - 'depends': ['product', 'sale'], + 'depends': [ + 'product', + 'sale', + ], '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', ], - 'test': [], - 'installable': True, - 'active': False, 'images': ['images/product_warranty.png'], + 'development_status': 'Production/Stable', + 'maintainers': [ + 'osi-scampbell', + 'max3903', + ] } diff --git a/product_warranty/models/__init__.py b/product_warranty/models/__init__.py index b29d709f..22635978 100644 --- a/product_warranty/models/__init__.py +++ b/product_warranty/models/__init__.py @@ -1,8 +1,10 @@ -# -*- coding: utf-8 -*- # © 2016 Cyril Gaudin (Camptocamp) # © 2009-2011 Akretion, Emmanuel Samyn # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import return_instruction -from . import product_supplierinfo -from . import res_company +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 index 7bf4c88a..ec8ea4d2 100644 --- a/product_warranty/models/product_supplierinfo.py +++ b/product_warranty/models/product_supplierinfo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Cyril Gaudin (Camptocamp) # © 2015 Vauxoo # © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot @@ -8,7 +7,6 @@ from odoo import api, fields, models class ProductSupplierInfo(models.Model): - _inherit = "product.supplierinfo" @api.model diff --git a/product_warranty/models/product_template.py b/product_warranty/models/product_template.py new file mode 100644 index 00000000..bc985aa2 --- /dev/null +++ b/product_warranty/models/product_template.py @@ -0,0 +1,16 @@ +# Copyright (C) 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 index 30009796..9c917fd0 100644 --- a/product_warranty/models/res_company.py +++ b/product_warranty/models/res_company.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) # © 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -7,7 +6,6 @@ from odoo import fields, models class ResCompany(models.Model): - _inherit = "res.company" crm_return_address_id = fields.Many2one( diff --git a/product_warranty/models/return_instruction.py b/product_warranty/models/return_instruction.py index b1798a6e..c0649214 100644 --- a/product_warranty/models/return_instruction.py +++ b/product_warranty/models/return_instruction.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Cyril Gaudin (Camptocamp) # © 2015 Vauxoo # © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot @@ -8,7 +7,6 @@ from odoo import fields, models class ReturnInstruction(models.Model): - _name = "return.instruction" _description = "Instructions for product return" diff --git a/product_warranty/readme/CONTRIBUTORS.rst b/product_warranty/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..d810a2eb --- /dev/null +++ b/product_warranty/readme/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ +* 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 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..da2b8af9 --- /dev/null +++ b/product_warranty/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +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 diff --git a/product_warranty/readme/USAGE.rst b/product_warranty/readme/USAGE.rst new file mode 100644 index 00000000..af453434 --- /dev/null +++ b/product_warranty/readme/USAGE.rst @@ -0,0 +1,3 @@ +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). 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..ab918723 --- /dev/null +++ b/product_warranty/static/description/index.html @@ -0,0 +1,459 @@ + + + + + + +Product Warranty + + + +
+

Product Warranty

+ + +

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
  • +
+

Table of contents

+ +
+

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).

+
+
+

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 index 07376694..1d0ff0c3 100644 --- a/product_warranty/tests/__init__.py +++ b/product_warranty/tests/__init__.py @@ -1,22 +1,5 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Author: Yanina Aular -# Copyright 2015 Vauxoo -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# Author: Yanina Aular +# Copyright 2015 Vauxoo +# 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 index 38a68707..7ddca775 100644 --- a/product_warranty/tests/test_product_warranty.py +++ b/product_warranty/tests/test_product_warranty.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Cyril Gaudin (Camptocamp) # © 2015 Vauxoo, Yanina Aular # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/product_warranty/views/product_template.xml b/product_warranty/views/product_template.xml new file mode 100644 index 00000000..868a7a3c --- /dev/null +++ b/product_warranty/views/product_template.xml @@ -0,0 +1,24 @@ + + + + + product.template + + + + + + + + + + + + + diff --git a/product_warranty/views/res_company.xml b/product_warranty/views/res_company.xml index 51317c05..88c76b06 100644 --- a/product_warranty/views/res_company.xml +++ b/product_warranty/views/res_company.xml @@ -9,7 +9,7 @@ - +