[FIX] project_timesheet tests: user creation should also have its partner.
bzr revid: tde@openerp.com-20120813081054-csyaq8p7lf7e1nvh
This commit is contained in:
parent
18aaed7f4f
commit
db7e49ca91
|
@ -85,7 +85,6 @@ class res_users(osv.osv):
|
|||
cr.execute('ALTER TABLE res_users ALTER COLUMN alias_id SET NOT NULL')
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def create(self, cr, uid, data, context=None):
|
||||
# create default alias same as the login
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
-
|
||||
Create a user 'HR Manager'
|
||||
-
|
||||
!record {model: res.partner, id: res_partner_hrmanager0}:
|
||||
name: HR Manager
|
||||
lang: en_US
|
||||
!record {model: res.users, id: res_users_hrmanager0}:
|
||||
company_id: base.main_company
|
||||
lang: en_US
|
||||
partner_id: res_partner_hrmanager0
|
||||
login: hr
|
||||
name: HR Manager
|
||||
password: hr
|
||||
groups_id:
|
||||
- base.group_hr_manager
|
||||
|
|
Loading…
Reference in New Issue