diff --git a/base_partner_one2many_phone/post_install.py b/base_partner_one2many_phone/post_install.py index 128fc9b..5059913 100644 --- a/base_partner_one2many_phone/post_install.py +++ b/base_partner_one2many_phone/post_install.py @@ -10,7 +10,7 @@ logger = logging.getLogger(__name__) def create_partner_phone(cr, phone_field, phone_type): cr.execute( 'SELECT id, ' + phone_field + ' FROM res_partner WHERE ' + - phone_field + ' IS NOT null') + phone_field + ' IS NOT null AND ' + phone_field + "!= ''") to_create = [] for partner in cr.fetchall(): to_create.append({ @@ -22,7 +22,8 @@ def create_partner_phone(cr, phone_field, phone_type): def create_partner_email(cr): - cr.execute('SELECT id, email FROM res_partner WHERE email IS NOT null') + cr.execute( + "SELECT id, email FROM res_partner WHERE email IS NOT null AND email != ''") to_create = [] for partner in cr.fetchall(): to_create.append({ diff --git a/product_manager_group/__manifest__.py b/product_manager_group/__manifest__.py index 9a5452d..8906452 100644 --- a/product_manager_group/__manifest__.py +++ b/product_manager_group/__manifest__.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2019 Akretion +# Copyright 2014-2020 Akretion (http://www.akretion.com/) # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Manager Group', - 'version': '12.0.1.0.0', + 'version': '14.0.1.0.0', 'category': 'Hidden', 'license': 'AGPL-3', 'summary': 'Add a group Product Manager', @@ -24,5 +23,5 @@ This module has been written by Alexis de Lattre from Akretion Product Manager - + diff --git a/product_manager_group_stock/__manifest__.py b/product_manager_group_stock/__manifest__.py index 361cc49..5434787 100644 --- a/product_manager_group_stock/__manifest__.py +++ b/product_manager_group_stock/__manifest__.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2019 Akretion (http://www.akretion.com) +# Copyright 2014-2020 Akretion (http://www.akretion.com) # @author Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Product Manager Group Stock', - 'version': '12.0.1.0.0', + 'version': '14.0.1.0.0', 'category': 'Hidden', 'license': 'AGPL-3', 'summary': 'Extend the group Product Manager to Stock', @@ -23,6 +22,6 @@ This module has been written by Alexis de Lattre from Akretion