From 28c82be271fcaa69352576d8856d285516ad2c8d Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Thu, 16 May 2019 09:36:50 +0200 Subject: [PATCH] [FIX] Issue #712 Need to set is_symmetric False where it is NULL. --- partner_multi_relation/__manifest__.py | 8 ++++---- .../migrations/10.0.1.0.2/post-migration.py | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 partner_multi_relation/migrations/10.0.1.0.2/post-migration.py diff --git a/partner_multi_relation/__manifest__.py b/partner_multi_relation/__manifest__.py index 1ed334d82..2cbee9579 100644 --- a/partner_multi_relation/__manifest__.py +++ b/partner_multi_relation/__manifest__.py @@ -1,15 +1,15 @@ # -*- coding: utf-8 -*- -# Copyright 2013-2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2013-2019 Therp BV . +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Partner relations", - "version": "10.0.1.0.1", + "version": "10.0.1.0.2", "author": "Therp BV,Camptocamp,Odoo Community Association (OCA)", "complexity": "normal", "category": "Customer Relationship Management", "license": "AGPL-3", + "website": "https://github.com/oca/partner-contact", "depends": [ - 'base', 'sales_team', ], "demo": [ diff --git a/partner_multi_relation/migrations/10.0.1.0.2/post-migration.py b/partner_multi_relation/migrations/10.0.1.0.2/post-migration.py new file mode 100644 index 000000000..357359154 --- /dev/null +++ b/partner_multi_relation/migrations/10.0.1.0.2/post-migration.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Therp BV . +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +# pylint: disable=missing-docstring,unused-argument,invalid-name + + +def migrate(cr, version): + + cr.execute( + "UPDATE res_partner_relation_type" + " SET is_symmetric = False" + " WHERE is_symmetric IS NULL")