Thank you Borni for your answer.
I've changed a few things in addons/base/res/res_users.py :
in function "copy"
group_name = self.read(cr, uid, [id], ['name'])[0]['name']
_logger.debug("DEBUG Current group name : %s", group_name)
default = default.copy()
default.update({'name': group_name + " (Copy)"})
_logger.debug("DEBUG Updated group name : %s", default)
return super(groups, self).copy(cr, uid, id, default, context)
and in function "write", i output the name of the group. Strangely, it is not updated :
(timestamp) DEBUG MY_DB openerp.addons.base.res.res_users: DEBUG Current group name : Invoicing & Payments
(timestamp) DEBUG MY_DB openerp.addons.base.res.res_users: DEBUG Updated group name : {'name': u'Invoicing & Payments (Copy)'}
(timestamp) DEBUG MY_DB openerp.addons.base.res.res_users: DEBUG Writing group : {u'name': u'Invoicing & Payments'}
I don't get why the "default" object isn't actually updated with the new value.
Can you give me a track for finding out ?
Thanks a lot
AJ