[IMP, ADD] event: Add duplicate_event.yml and move code of duplicate of event from onchange_events.yml to duplicate yml

bzr revid: ron@tinyerp.com-20111117062756-drk1hm8jtryq4xmb
This commit is contained in:
ron@tinyerp.com
2011-11-17 11:57:56 +05:30
parent 59f40986a2
commit e477f052e9
3 changed files with 9 additions and 8 deletions
+1
View File
@@ -57,6 +57,7 @@ Note that:
'test': ['test/process/event_confirm2done.yml',
'test/process/event_draft2cancel.yml',
'test/process/partner_register2invoice.yml',
'test/ui/duplicate_event.yml',
'test/ui/onchange_events.yml'],
'installable': True,
'active': False,
+8
View File
@@ -0,0 +1,8 @@
-
Copy of event.
-
!python {model: event.event}: |
try:
self.copy(cr, uid, ref("event_2"))
except:
pass
-8
View File
@@ -24,11 +24,3 @@
!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)
-
Copy of event.
-
!python {model: event.event}: |
try:
self.copy(cr, uid, ref("event_2"))
except:
pass