~openerp/openobject-server/trunk-speedup-need_action-tde

« back to all changes in this revision

Viewing changes to bin/addons/base/res/res_user.py

  • Committer: Harry (Open ERP)
  • Author(s): xrg
  • Date: 2009-11-20 14:31:04 UTC
  • mfrom: (1119.1.208)
  • mto: (1898.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1900.
  • Revision ID: hmo@tinyerp.com-20091120143104-tb6136unkdw7yfy9
[merge] merge from lp:~xrg/openobject-server/optimize-5.0 and removed some confilts

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                aid.write({'groups_id': [(4, gid)]})
72
72
        return gid
73
73
 
 
74
    def copy(self, cr, uid, id, default={}, context={}, done_list=[], local=False):
 
75
        group = self.browse(cr, uid, id, context=context)
 
76
        default = default.copy()
 
77
        if not 'name' in default:
 
78
                default['name'] = group['name']
 
79
        default['name'] = default['name'] + _(' (copy)')
 
80
        return super(groups, self).copy(cr, uid, id, default, context=context)
 
81
 
74
82
groups()
75
83
 
76
84