[MIG] product_warranty: Migration to 14.0

This commit is contained in:
Lois Suarez
2021-08-11 09:47:44 +01:00
committed by Antoni Marroig Campomar
parent 975bb9f330
commit 7508184a35
5 changed files with 23 additions and 14 deletions

View File

@@ -14,13 +14,13 @@ Product Warranty
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github .. |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 :target: https://github.com/OCA/rma/tree/14.0/product_warranty
:alt: OCA/rma :alt: OCA/rma
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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 :target: https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-product_warranty
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/145/13.0 :target: https://runbot.odoo-community.org/runbot/145/14.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -51,7 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@@ -117,6 +117,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-osi-scampbell| |maintainer-max3903| |maintainer-osi-scampbell| |maintainer-max3903|
This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/13.0/product_warranty>`_ project on GitHub. This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/14.0/product_warranty>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -3,7 +3,7 @@
{ {
"name": "Product Warranty", "name": "Product Warranty",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"category": "Generic Modules/Product", "category": "Generic Modules/Product",
"author": "Akretion, Vauxoo, Odoo Community Association (OCA)", "author": "Akretion, Vauxoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rma", "website": "https://github.com/OCA/rma",

View File

@@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@@ -56,11 +56,17 @@ msgid ""
msgstr "" msgstr ""
#. module: product_warranty #. module: product_warranty
#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__display_name
#: model:ir.model.fields,field_description:product_warranty.field_product_template__display_name
#: model:ir.model.fields,field_description:product_warranty.field_res_company__display_name
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name #: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name
msgid "Display Name" msgid "Display Name"
msgstr "" msgstr ""
#. module: product_warranty #. module: product_warranty
#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__id
#: model:ir.model.fields,field_description:product_warranty.field_product_template__id
#: model:ir.model.fields,field_description:product_warranty.field_res_company__id
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id #: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id
msgid "ID" msgid "ID"
msgstr "" msgstr ""
@@ -101,6 +107,9 @@ msgid "Is this supplier still active, only for information."
msgstr "" msgstr ""
#. module: product_warranty #. module: product_warranty
#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo____last_update
#: model:ir.model.fields,field_description:product_warranty.field_product_template____last_update
#: model:ir.model.fields,field_description:product_warranty.field_res_company____last_update
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update #: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update
msgid "Last Modified on" msgid "Last Modified on"
msgstr "" msgstr ""

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/rma/tree/13.0/product_warranty"><img alt="OCA/rma" src="https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-product_warranty"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/145/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/rma/tree/14.0/product_warranty"><img alt="OCA/rma" src="https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/rma-14-0/rma-14-0-product_warranty"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/145/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of Sales Management to allows you <p>This module extends the functionality of Sales Management to allows you
to set product warranty details on products and product-supplier relation.</p> to set product warranty details on products and product-supplier relation.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
@@ -401,7 +401,7 @@ edit supplier information lines an set the warranty information for each one.</l
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rma/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rma/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@@ -452,7 +452,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a> <a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p> <p><a class="reference external" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a> <a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rma/tree/13.0/product_warranty">OCA/rma</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/rma/tree/14.0/product_warranty">OCA/rma</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@@ -46,7 +46,7 @@ class TestProductWarranty(TransactionCase):
"product_warranty." "return_instruction_1" "product_warranty." "return_instruction_1"
) )
self.assertEquals( self.assertEqual(
self.supplierinfo_brw.return_instructions.id, return_instructions_id.id self.supplierinfo_brw.return_instructions.id, return_instructions_id.id
) )
@@ -57,21 +57,21 @@ class TestProductWarranty(TransactionCase):
""" """
self.create_product_supplierinfo() self.create_product_supplierinfo()
self.assertEquals( self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id, self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.name.id, self.supplierinfo_brw.name.id,
) )
self.supplierinfo_brw.write({"warranty_return_partner": "company"}) self.supplierinfo_brw.write({"warranty_return_partner": "company"})
self.assertEquals( self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id, self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.company_id.crm_return_address_id.id, self.supplierinfo_brw.company_id.crm_return_address_id.id,
) )
self.supplierinfo_brw.write({"warranty_return_partner": "other"}) self.supplierinfo_brw.write({"warranty_return_partner": "other"})
self.assertEquals( self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id, self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.warranty_return_other_address.id, self.supplierinfo_brw.warranty_return_other_address.id,
) )