[IMP, REN]: event:

* renamed file event/test/ui/onchange_events.yml => event/test/ui/demo_data.yml,
* Created record for onchange event

bzr revid: ron@tinyerp.com-20111122104126-vyfp6bf7at9ap205
This commit is contained in:
ron@tinyerp.com
2011-11-22 16:11:26 +05:30
parent e477f052e9
commit 5d8c487a36
3 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ Note that:
'test/process/event_draft2cancel.yml',
'test/process/partner_register2invoice.yml',
'test/ui/duplicate_event.yml',
'test/ui/onchange_events.yml'],
'test/ui/demo_data.yml'],
'installable': True,
'active': False,
'certificate': '0083059161581',
+20
View File
@@ -0,0 +1,20 @@
-
I create event registation record to call event onchange and partner onchange.
-
!record {model: event.registration, id: reg_0_1}:
event_id: event_0
partner_id: base.res_partner_c2c
name: 'Ticket for Concert'
-
I create event record to call product onchange and team onchange.
-
!record {model: event.event, id: event_2}:
product_id: event_product_2
section_id: crm.section_sales_department
name: 'Conference on ERP Buisness'
-
I call onchange event from event registration wizard.
-
!python {model: partner.event.registration}: |
context.update({'active_id': ref("base.res_partner_ericdubois0")})
self.onchange_event_id(cr, uid, 1, ref("event_1"), context=context)
-26
View File
@@ -1,26 +0,0 @@
-
I call onchange event to change costing of registration base on event.
-
!python {model: event.registration}: |
self.onchange_event(cr, uid, ref('reg_1_1'), ref("event_1"), [])
-
I call onchange event to change the partner of event registration.
-
!python {model: event.registration}: |
self.onchange_partner_id(cr, uid, ref('reg_1_1'), ref("base.res_partner_asus"), ref("event_1"), email=False)
-
I call onchange event to change the product of event.
-
!python {model: event.event}: |
self.onchange_product(cr, uid, ref("event_1"), ref("event_product_0"))
-
I call onchange event to change the team of event.
-
!python {model: event.event}: |
self.do_team_change(cr, uid, ref("event_1"), ref("crm.section_sales_department"))
-
I call onchange event on partner registration.
-
!python {model: partner.event.registration}: |
context.update({'active_id': ref("base.res_partner_ericdubois0")})
self.onchange_event_id(cr, uid, 1, ref("event_1"), context=context)