diff --git a/openerp/addons/base/base_update.xml b/openerp/addons/base/base_update.xml
index dc3b34c710f..0d9f12c2c09 100644
--- a/openerp/addons/base/base_update.xml
+++ b/openerp/addons/base/base_update.xml
@@ -247,78 +247,6 @@
-
- res.config.users.confirm.form
- res.config.users
- form
-
-
-
-
-
- New User
-
-
- Create additional users and assign them groups that will allow them to have access to selected functionalities within the system. Click on 'Done' if you do not wish to add more users at this stage, you can always do this later.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- action_add
- Add User
- gtk-add
-
-
-
-
- action_next
- Done
- gtk-go-forward
-
-
-
-
-
-
- Create Users
- ir.actions.act_window
- res.config.users
- form
- form
-
- new
-
-
Configure Your Interface
res.config.view
@@ -360,12 +288,6 @@
new
-
-
- 10
- normal
- done
-
special
diff --git a/openerp/addons/base/ir/ir.xml b/openerp/addons/base/ir/ir.xml
index 2877370b4bb..7e07350032e 100644
--- a/openerp/addons/base/ir/ir.xml
+++ b/openerp/addons/base/ir/ir.xml
@@ -1899,6 +1899,7 @@
+
@@ -1953,6 +1954,30 @@
power_on
()
+
+
+ ir.actions.todo.category.form
+ ir.actions.todo.category
+ form
+
+
+
+
+
+
+ ir.actions.todo.category.tree
+ ir.actions.todo.category
+ tree
+
+
+
+
+
+
+
diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py
index c64039e9f81..949a67395a1 100644
--- a/openerp/addons/base/ir/ir_actions.py
+++ b/openerp/addons/base/ir/ir_actions.py
@@ -800,6 +800,14 @@ class act_window_close(osv.osv):
}
act_window_close()
+class ir_actions_todo_category(osv.osv):
+ _name = 'ir.actions.todo.category'
+ _columns = {
+ 'name':fields.char('Name', size=64, required=True),
+ 'sequence': fields.integer('Sequence'),
+ }
+ir_actions_todo_category()
+
# This model use to register action services.
TODO_STATES = [('open', 'To Do'),
('done', 'Done'),
@@ -818,6 +826,7 @@ class ir_actions_todo(osv.osv):
'type': fields.selection([('special','Special'),('normal','Normal'),('normal_recurring','Normal Recurring')],'Type',required=True),
'groups_id':fields.many2many('res.groups', 'res_groups_action_rel', 'uid', 'gid', 'Groups'),
'note':fields.text('Text', translate=True),
+ 'category_id': fields.many2one('ir.actions.todo.category','Category'),
}
_defaults={
'state': 'open',
diff --git a/openerp/addons/base/res/res_user.py b/openerp/addons/base/res/res_user.py
index 261ec699659..db180ed6de6 100644
--- a/openerp/addons/base/res/res_user.py
+++ b/openerp/addons/base/res/res_user.py
@@ -508,58 +508,6 @@ class users(osv.osv):
users()
-class config_users(osv.osv_memory):
- _name = 'res.config.users'
- _inherit = ['res.users', 'res.config']
-
- def _generate_signature(self, cr, name, email, context=None):
- return _('--\n%(name)s %(email)s\n') % {
- 'name': name or '',
- 'email': email and ' <'+email+'>' or '',
- }
-
- def create_user(self, cr, uid, new_id, context=None):
- """ create a new res.user instance from the data stored
- in the current res.config.users.
-
- If an email address was filled in for the user, sends a mail
- composed of the return values of ``get_welcome_mail_subject``
- and ``get_welcome_mail_body`` (which should be unicode values),
- with the user's data %-formatted into the mail body
- """
- base_data = self.read(cr, uid, new_id, context=context)
- partner_id = self.pool.get('res.partner').main_partner(cr, uid)
- address = self.pool.get('res.partner.address').create(
- cr, uid, {'name': base_data['name'],
- 'email': base_data['email'],
- 'partner_id': partner_id,},
- context)
- user_data = dict(
- base_data,
- signature=self._generate_signature(
- cr, base_data['name'], base_data['email'], context=context),
- address_id=address,
- )
- new_user = self.pool.get('res.users').create(
- cr, uid, user_data, context)
- self.send_welcome_email(cr, uid, new_user, context=context)
- def execute(self, cr, uid, ids, context=None):
- 'Do nothing on execution, just launch the next action/todo'
- pass
- def action_add(self, cr, uid, ids, context=None):
- 'Create a user, and re-display the view'
- self.create_user(cr, uid, ids[0], context=context)
- return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'res.config.users',
- 'view_id':self.pool.get('ir.ui.view')\
- .search(cr,uid,[('name','=','res.config.users.confirm.form')]),
- 'type': 'ir.actions.act_window',
- 'target':'new',
- }
-config_users()
-
class groups2(osv.osv): ##FIXME: Is there a reason to inherit this object ?
_inherit = 'res.groups'
_columns = {