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
parent
commit
5eaf9f5078
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      partner_multi_relation/__manifest__.py
  2. 12
      partner_multi_relation/migrations/10.0.1.0.2/post-migration.py

8
partner_multi_relation/__manifest__.py

@ -1,15 +1,15 @@
# -*- coding: utf-8 -*- # -*- 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", "name": "Partner relations",
"version": "10.0.1.0.1",
"version": "10.0.1.0.2",
"author": "Therp BV,Camptocamp,Odoo Community Association (OCA)", "author": "Therp BV,Camptocamp,Odoo Community Association (OCA)",
"complexity": "normal", "complexity": "normal",
"category": "Customer Relationship Management", "category": "Customer Relationship Management",
"license": "AGPL-3", "license": "AGPL-3",
"website": "https://github.com/oca/partner-contact",
"depends": [ "depends": [
'base',
'sales_team', 'sales_team',
], ],
"demo": [ "demo": [

12
partner_multi_relation/migrations/10.0.1.0.2/post-migration.py

@ -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")
Loading…
Cancel
Save