[FIX] misc onchange YAML bugs
bzr revid: fp@tinyerp.com-20111114223119-iy5u2hlkpvo4qknp
This commit is contained in:
parent
99c26a209f
commit
a60ca41282
|
@ -7,7 +7,7 @@
|
|||
manager_id: base.user_root
|
||||
name: 'R & D'
|
||||
-
|
||||
Now, I create a new employee “Mark Johnson”, and select department as “RD Department”.
|
||||
Now, I create a new employee Mark Johnson, and select department as RD Department.
|
||||
-
|
||||
!record {model: hr.employee, id: hr_employee_mark}:
|
||||
address_home_id: base.res_partner_address_1
|
||||
|
@ -23,7 +23,7 @@
|
|||
values = dict([('company_id', ref('base.main_company'))] + res['value'].items())
|
||||
self.write(cr, uid, [ref('hr_employee_mark')], values, None)
|
||||
-
|
||||
I assign department for employee “Mark Johnson”.
|
||||
I assign department for employee Mark Johnson.
|
||||
-
|
||||
!python {model: hr.employee}: |
|
||||
res = self.onchange_department_id(cr, uid, [ref('hr_employee_mark')], ref('hr_department_rd0'), None)
|
||||
|
@ -31,7 +31,7 @@
|
|||
values = dict([('department_id', ref('hr_department_rd0'))] + res['value'].items())
|
||||
self.write(cr, uid, [ref('hr_employee_mark')], values, None)
|
||||
-
|
||||
Now I create a user for employee “Mark Johnson”.
|
||||
Now I create a user for employee Mark Johnson.
|
||||
-
|
||||
!record {model: res.users, id: hr_users_markjohnson0}:
|
||||
context_lang: en_US
|
||||
|
@ -41,14 +41,14 @@
|
|||
name: Mark Johnson
|
||||
password: markjohnson
|
||||
-
|
||||
I assign user to employee “Mark Johnson”.
|
||||
I assign user to employee Mark Johnson.
|
||||
-
|
||||
!python {model: hr.employee}: |
|
||||
res = self.onchange_user(cr, uid, [ref('hr_employee_mark')], ref('hr_users_markjohnson0'), None)
|
||||
values = dict([('user_id', ref('hr_users_markjohnson0'))] + res['value'].items())
|
||||
self.write(cr, uid, [ref('hr_employee_mark')], values, None)
|
||||
-
|
||||
In order to check the wizard “Employee Hierarchy” , I will create new employee “Phil Graves” and select “Mark Johnson” as
|
||||
In order to check the wizard Employee Hierarchy , I will create new employee Phil Graves and select Mark Johnson as
|
||||
Manager.
|
||||
-
|
||||
!record {model: hr.employee, id: hr_employee_phil}:
|
||||
|
@ -67,8 +67,8 @@
|
|||
values = dict([('address_id', ref('base.res_partner_address_3000'))] + res['value'].items())
|
||||
self.write(cr, uid, [ref('hr_employee_phil')], values, None)
|
||||
-
|
||||
I will open up form view of “Mark Johnson” and test the wizard “Employee Hierarchy” so it display the employee
|
||||
hierarchy starting from “Mark Johnson”.
|
||||
I will open up form view of Mark Johnson and test the wizard Employee Hierarchy so it display the employee
|
||||
hierarchy starting from Mark Johnson.
|
||||
|
||||
-
|
||||
I will create new Job Position. I will check successful creation of new Job Position by adding the information.
|
||||
|
|
|
@ -1,29 +1,10 @@
|
|||
-
|
||||
In order to test hr_timesheet_sheet module in OpenERP, I create timesheet and check validation process done by manager.
|
||||
-
|
||||
I will create a company and set maximum allowed difference between timesheet and attendance to 1 hour
|
||||
-
|
||||
!record {model: res.company, id: res_company_openERP}:
|
||||
currency_id: base.ARS
|
||||
name: OpenERP SA
|
||||
partner_id: base.res_partner_desertic_hispafuentes
|
||||
timesheet_max_difference: 1.0
|
||||
|
||||
-
|
||||
I assign this company to Admin user
|
||||
-
|
||||
!record {model: res.users, id: base.user_root}:
|
||||
company_id: res_company_openERP
|
||||
company_ids:
|
||||
- base.main_company
|
||||
- res_company_openERP
|
||||
|
||||
-
|
||||
I create a new employee “Mark Johnson”.
|
||||
I create a new employee "Mark Johnson".
|
||||
-
|
||||
!record {model: hr.employee, id: hr_employee_employee0}:
|
||||
address_home_id: base.res_partner_address_1
|
||||
company_id: res_company_openERP
|
||||
gender: male
|
||||
marital: single
|
||||
name: Mark Johnson
|
||||
|
|
Loading…
Reference in New Issue