Browse Source
Merge pull request #740 from NL66278/10.0-partner_multi_relation-migration
[10.0] [FIX] Issue #712 Need to set is_symmetric False where it is NULL.
pull/683/merge
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
16 additions and
4 deletions
-
partner_multi_relation/__manifest__.py
-
partner_multi_relation/migrations/10.0.1.0.2/post-migration.py
|
|
@ -1,15 +1,15 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# Copyright 2013-2017 Therp BV <http://therp.nl> |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
# Copyright 2013-2019 Therp BV <https://therp.nl>. |
|
|
|
# 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": [ |
|
|
|
|
|
@ -0,0 +1,12 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# Copyright 2019 Therp BV <https://therp.nl>. |
|
|
|
# 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") |