Browse Source

[MIG] portal_partner_select_all: 10.0 to 9.0

fixup! [MIG] portal_partner_select_all: 10.0 to 9.0
pull/715/head
robin.keunen 6 years ago
parent
commit
3c47a0d471
  1. 2
      portal_partner_select_all/__init__.py
  2. 4
      portal_partner_select_all/__openerp__.py
  3. 1
      portal_partner_select_all/readme/CONTRIBUTORS.rst
  4. 2
      portal_partner_select_all/readme/DESCRIPTION.rst
  5. 3
      portal_partner_select_all/wizard/__init__.py
  6. 4
      portal_partner_select_all/wizard/portal_wizard.py

2
portal_partner_select_all/__init__.py

@ -1,3 +1 @@
# -*- coding: utf-8 -*-
from . import wizard from . import wizard

4
portal_partner_select_all/__manifest__.py → portal_partner_select_all/__openerp__.py

@ -1,12 +1,14 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2018 Tecnativa S.L. - David Vidal # 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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'Portal Partner Select All', 'name': 'Portal Partner Select All',
'version': '10.0.1.0.1',
'version': '9.0.1.0.1',
'category': 'Custom', 'category': 'Custom',
'author': 'Tecnativa,' 'author': 'Tecnativa,'
'Coop IT Easy,'
'Odoo Community Association (OCA)', 'Odoo Community Association (OCA)',
'website': 'https://www.github.com/OCA/partner-contact', 'website': 'https://www.github.com/OCA/partner-contact',
"license": "AGPL-3", "license": "AGPL-3",

1
portal_partner_select_all/readme/CONTRIBUTORS.rst

@ -1 +1,2 @@
* David Vidal <david.vidal@tecnativa.com> * David Vidal <david.vidal@tecnativa.com>
* Robin Keunen <robin@keunen.net>

2
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. select them all one by one.
This module adds a helper in the wizard to toggle between all selected and only This module adds a helper in the wizard to toggle between all selected and only

3
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 from . import portal_wizard

4
portal_partner_select_all/wizard/portal_wizard.py

@ -2,7 +2,7 @@
# Copyright 2018 Tecnativa - David Vidal # Copyright 2018 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # 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): class PortalWizard(models.TransientModel):
@ -24,4 +24,4 @@ class PortalWizard(models.TransientModel):
) )
else: else:
not_in_portal = self.user_ids.filtered(lambda x: not x.in_portal) 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})
Loading…
Cancel
Save