diff --git a/portal_partner_select_all/__init__.py b/portal_partner_select_all/__init__.py index 3b4c3edf0..40272379f 100644 --- a/portal_partner_select_all/__init__.py +++ b/portal_partner_select_all/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import wizard diff --git a/portal_partner_select_all/__manifest__.py b/portal_partner_select_all/__openerp__.py similarity index 81% rename from portal_partner_select_all/__manifest__.py rename to portal_partner_select_all/__openerp__.py index 4939666b7..fa2e7da1d 100644 --- a/portal_partner_select_all/__manifest__.py +++ b/portal_partner_select_all/__openerp__.py @@ -1,12 +1,14 @@ # -*- coding: utf-8 -*- # Copyright 2018 Tecnativa S.L. - David Vidal +# Copyright 2019 Coop IT Easy SCRL fs - Robin keunen # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Portal Partner Select All', - 'version': '10.0.1.0.1', + 'version': '9.0.1.0.1', 'category': 'Custom', 'author': 'Tecnativa,' + 'Coop IT Easy,' 'Odoo Community Association (OCA)', 'website': 'https://www.github.com/OCA/partner-contact', "license": "AGPL-3", diff --git a/portal_partner_select_all/readme/CONTRIBUTORS.rst b/portal_partner_select_all/readme/CONTRIBUTORS.rst index 885d4ba98..b0b7fd46d 100644 --- a/portal_partner_select_all/readme/CONTRIBUTORS.rst +++ b/portal_partner_select_all/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * David Vidal +* Robin Keunen diff --git a/portal_partner_select_all/readme/DESCRIPTION.rst b/portal_partner_select_all/readme/DESCRIPTION.rst index 6281e8dd6..8e509703d 100644 --- a/portal_partner_select_all/readme/DESCRIPTION.rst +++ b/portal_partner_select_all/readme/DESCRIPTION.rst @@ -1,4 +1,4 @@ -When a user wants invite a lot of custumers to the portal it can be a pain to +When a user wants invite a lot of customers to the portal it can be a pain to select them all one by one. This module adds a helper in the wizard to toggle between all selected and only diff --git a/portal_partner_select_all/wizard/__init__.py b/portal_partner_select_all/wizard/__init__.py index ee3fa9521..8bff21fa9 100644 --- a/portal_partner_select_all/wizard/__init__.py +++ b/portal_partner_select_all/wizard/__init__.py @@ -1,4 +1 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from . import portal_wizard diff --git a/portal_partner_select_all/wizard/portal_wizard.py b/portal_partner_select_all/wizard/portal_wizard.py index 1bef89e2b..8f3095468 100644 --- a/portal_partner_select_all/wizard/portal_wizard.py +++ b/portal_partner_select_all/wizard/portal_wizard.py @@ -2,7 +2,7 @@ # Copyright 2018 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from openerp import api, fields, models class PortalWizard(models.TransientModel): @@ -24,4 +24,4 @@ class PortalWizard(models.TransientModel): ) else: not_in_portal = self.user_ids.filtered(lambda x: not x.in_portal) - not_in_portal.update({'in_portal': True}) + not_in_portal.write({'in_portal': True})