From 96d2081987292ae02efda9826cbe5ba1ad84d6c3 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 9 Nov 2020 13:26:45 +0100 Subject: [PATCH] [IMP] rma: Add migration script + promote development_status - Migration script for having consistent data on existing RMAs. It includes manual version bumping. - This module complies with the requirements for stable development status, so let's promote it. It includes the README file regeneration. --- rma/README.rst | 4 ++-- rma/__manifest__.py | 6 ++++-- rma/migrations/12.0.2.0.0/post-migration.py | 6 ++++++ rma/static/description/index.html | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/rma/README.rst b/rma/README.rst index dea2df0f..a0b89159 100644 --- a/rma/README.rst +++ b/rma/README.rst @@ -7,9 +7,9 @@ Return Merchandise Authorization Management !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png :target: https://odoo-community.org/page/development-status - :alt: Beta + :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 diff --git a/rma/__manifest__.py b/rma/__manifest__.py index d480190a..5eb036d3 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -1,10 +1,12 @@ # Copyright 2020 Tecnativa - Ernesto Tejeda +# Copyright 2020 Tecnativa - David Vidal +# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "12.0.1.6.1", - "development_status": "Beta", + "version": "12.0.2.0.0", + "development_status": "Production/Stable", "category": "RMA", "website": "https://github.com/OCA/rma", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/rma/migrations/12.0.2.0.0/post-migration.py b/rma/migrations/12.0.2.0.0/post-migration.py index 77fe95b4..e36a2fec 100644 --- a/rma/migrations/12.0.2.0.0/post-migration.py +++ b/rma/migrations/12.0.2.0.0/post-migration.py @@ -8,3 +8,9 @@ def migrate(env, version): # Convert Text description field to Html openupgrade.convert_field_to_html( env.cr, "rma", "description", "description") + # Put the same shipping address than customer for existing RMAs + openupgrade.logged_query( + env.cr, + "UPDATE rma SET partner_shipping_id = partner_id " + "WHERE partner_shipping_id IS NULL" + ) diff --git a/rma/static/description/index.html b/rma/static/description/index.html index 88523ce3..f8c7e665 100644 --- a/rma/static/description/index.html +++ b/rma/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows you to manage Return Merchandise Authorization (RMA). RMA documents can be created from scratch, from a delivery order or from an incoming email. Product receptions and returning delivery operations