From 43abd511ac76ecdf9daa528daf3225f26989b0b0 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Tue, 2 Sep 2014 15:28:20 +0100 Subject: [PATCH] Port users_ldap_populate to v8 --- users_ldap_populate/__openerp__.py | 11 +++++------ users_ldap_populate/model/__init__.py | 4 ++-- users_ldap_populate/model/populate_wizard.py | 2 +- users_ldap_populate/view/populate_wizard.xml | 4 ++-- users_ldap_populate/view/users_ldap.xml | 1 - 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/users_ldap_populate/__openerp__.py b/users_ldap_populate/__openerp__.py index 1906addce..07bd03048 100644 --- a/users_ldap_populate/__openerp__.py +++ b/users_ldap_populate/__openerp__.py @@ -24,8 +24,8 @@ "author": "Therp BV", "category": 'Tools', "description": """ -This module allows to prepopulate the user database with all entries in the LDAP -database. +This module allows to prepopulate the user database with all entries in the +LDAP database. In order to schedule the population of the user database on a regular basis, create a new scheduled action with the following properties: @@ -34,8 +34,8 @@ create a new scheduled action with the following properties: - Function: action_populate - Arguments: [res.company.ldap.id] -Substitute res.company.ldap.id with the actual id of the res.company.ldap object you want to query. - +Substitute res.company.ldap.id with the actual id of the res.company.ldap +object you want to query. """, "depends": [ 'auth_ldap', @@ -44,6 +44,5 @@ Substitute res.company.ldap.id with the actual id of the res.company.ldap object 'view/users_ldap.xml', 'view/populate_wizard.xml', ], - 'installable': False, + 'installable': True, } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/users_ldap_populate/model/__init__.py b/users_ldap_populate/model/__init__.py index 1fa6a8664..a925c6082 100644 --- a/users_ldap_populate/model/__init__.py +++ b/users_ldap_populate/model/__init__.py @@ -1,2 +1,2 @@ -import users_ldap -import populate_wizard +from . import users_ldap +from . import populate_wizard diff --git a/users_ldap_populate/model/populate_wizard.py b/users_ldap_populate/model/populate_wizard.py index ea1ea4ac9..24a7dd264 100644 --- a/users_ldap_populate/model/populate_wizard.py +++ b/users_ldap_populate/model/populate_wizard.py @@ -19,7 +19,7 @@ # ############################################################################## -from osv import orm, fields +from openerp.osv import orm, fields class CompanyLDAPPopulateWizard(orm.TransientModel): diff --git a/users_ldap_populate/view/populate_wizard.xml b/users_ldap_populate/view/populate_wizard.xml index 008869558..766e49f6d 100644 --- a/users_ldap_populate/view/populate_wizard.xml +++ b/users_ldap_populate/view/populate_wizard.xml @@ -5,8 +5,8 @@ Add populate button to ldap view res.company.ldap.populate_wizard -
- + +