Browse Source

[FIX] Issue #712 Need to set is_symmetric False where it is NULL.

pull/740/head
Ronald Portier 6 years ago
parent
commit
28c82be271
  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 -*-
# 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": [

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