[ADD]project_issue_sheet: Add the test file
bzr revid: dbr@tinyerp.com-20110908062741-0k1e8zv5yzxt6b4z
This commit is contained in:
parent
5cbd017b19
commit
93d91ddaa9
|
@ -45,6 +45,7 @@ Worklogs can be maintained to signify number of hours spent by users to handle a
|
||||||
],
|
],
|
||||||
'demo_xml': [
|
'demo_xml': [
|
||||||
],
|
],
|
||||||
|
'test': ['test/test_project_issue_sheet.yml'],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'active': False,
|
'active': False,
|
||||||
'certificate' : '00856032058128997037',
|
'certificate' : '00856032058128997037',
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
-
|
||||||
|
I create analytic account.
|
||||||
|
-
|
||||||
|
!record {model: account.analytic.account, id: account_analytic_account1}:
|
||||||
|
name : account_analytic_account
|
||||||
|
partner_id: base.res_partner_asus
|
||||||
|
-
|
||||||
|
I create a project issue.
|
||||||
|
-
|
||||||
|
!record {model: project.issue, id: project_issue_onchangeevent1}:
|
||||||
|
categ_id: project_issue.bug_categ
|
||||||
|
date_open: !eval time.strftime('%Y-%m-%d')
|
||||||
|
name: on_change event does not pass context to the method
|
||||||
|
project_id: project.project_project_22
|
||||||
|
working_hours_close: 0.0
|
||||||
|
working_hours_open: 0.0
|
||||||
|
-
|
||||||
|
I change the project.
|
||||||
|
-
|
||||||
|
!python {model: project.issue}: |
|
||||||
|
project_id = ref('project.project_project_21')
|
||||||
|
self.on_change_project(cr, uid, [ref('project_issue_onchangeevent1')], project_id, context)
|
||||||
|
-
|
||||||
|
I add analytic account.
|
||||||
|
-
|
||||||
|
!python {model: project.issue}: |
|
||||||
|
account_id = ref('account_analytic_account1')
|
||||||
|
self.on_change_account_id(cr, uid, [ref('project_issue_onchangeevent1')], account_id, context)
|
Loading…
Reference in New Issue