Skip to content

Commit

Permalink
[MIG] users_ldap_populate: Migrate to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanc-me committed Jul 30, 2024
1 parent f749ce9 commit eef2d08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion users_ldap_populate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Copyright 2021 Tecnativa - João Marques
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/gpl.html).

{
"name": "LDAP Populate",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"author": "Therp BV, Odoo Community Association (OCA)",
"maintainers": ["joao-p-marques"],
"website": "https://github.com/OCA/server-auth",
Expand Down
2 changes: 1 addition & 1 deletion users_ldap_populate/views/users_ldap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<field name="deactivate_unknown_users" />
<field
name="no_deactivate_user_ids"
attrs="{'invisible': [('deactivate_unknown_users', '=', False)]}"
invisible="not deactivate_unknown_users"
widget="many2many_tags"
/>
</group>
Expand Down
4 changes: 2 additions & 2 deletions users_ldap_populate/wizards/populate_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class CompanyLDAPPopulateWizard(models.TransientModel):

name = fields.Char(size=16)
ldap_id = fields.Many2one("res.company.ldap", "LDAP Configuration")
users_created = fields.Integer("Number of users created", readonly=True)
users_deactivated = fields.Integer("Number of users deactivated", readonly=True)
users_created = fields.Integer("Number of users created")
users_deactivated = fields.Integer("Number of users deactivated")

@api.model_create_multi
def create(self, vals_list):
Expand Down
4 changes: 2 additions & 2 deletions users_ldap_populate/wizards/populate_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<field name="arch" type="xml">
<form string="Add populate button to ldap view">
<group>
<field name="users_created" />
<field name="users_deactivated" />
<field name="users_created" readonly="1" />
<field name="users_deactivated" readonly="1" />
<button icon="fa-check-circle" string="OK" special="cancel" />
</group>
</form>
Expand Down

0 comments on commit eef2d08

Please sign in to comment.