Port users_ldap_populate to v8

pull/45/head
Daniel Reis 2014-09-02 15:28:20 +01:00
parent 73a1c76f61
commit 43abd511ac
5 changed files with 10 additions and 12 deletions

View File

@ -24,8 +24,8 @@
"author": "Therp BV", "author": "Therp BV",
"category": 'Tools', "category": 'Tools',
"description": """ "description": """
This module allows to prepopulate the user database with all entries in the LDAP This module allows to prepopulate the user database with all entries in the
database. LDAP database.
In order to schedule the population of the user database on a regular basis, In order to schedule the population of the user database on a regular basis,
create a new scheduled action with the following properties: 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 - Function: action_populate
- Arguments: [res.company.ldap.id] - 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": [ "depends": [
'auth_ldap', '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/users_ldap.xml',
'view/populate_wizard.xml', 'view/populate_wizard.xml',
], ],
'installable': False, 'installable': True,
} }
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,2 +1,2 @@
import users_ldap from . import users_ldap
import populate_wizard from . import populate_wizard

View File

@ -19,7 +19,7 @@
# #
############################################################################## ##############################################################################
from osv import orm, fields from openerp.osv import orm, fields
class CompanyLDAPPopulateWizard(orm.TransientModel): class CompanyLDAPPopulateWizard(orm.TransientModel):

View File

@ -5,8 +5,8 @@
<field name="name">Add populate button to ldap view</field> <field name="name">Add populate button to ldap view</field>
<field name="model">res.company.ldap.populate_wizard</field> <field name="model">res.company.ldap.populate_wizard</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Add populate button to ldap view" version="7.0"> <form string="Add populate button to ldap view">
<group col="4"> <group>
<field name="users_created"/> <field name="users_created"/>
<button icon="gtk-ok" string="OK" special="cancel"/> <button icon="gtk-ok" string="OK" special="cancel"/>
</group> </group>

View File

@ -17,4 +17,3 @@
</record> </record>
</data> </data>
</openerp> </openerp>