Files
odoo_source/addons/event/test/process/event_draft2cancel.yml
T
ron@tinyerp.com 5502ea7a9c [ADD, IMP] event: 1) Added new yml event_draft2cancel.yml,
2) Updated demo data and gave min registration limit and event set to draft state instead of confirm state,
3) Created process from events register below limit but it should not be confirm then cancel event,
4) updated __openerp__.py

bzr revid: ron@tinyerp.com-20111114111313-uhlq0o6vc4enklfn
2011-11-14 16:43:13 +05:30

23 lines
716 B
YAML

-
I want to organize event and its need Minimum 50 Registrations to confirm/start
this Event, but Only 10 registration confirm for this event, I confirm this event.
-
!python {model: event.event}: |
self.button_confirm(cr, uid, [ref("event_1")])
-
Now I cheked for event and It should not be confirm because registrations for
this event is below limit.
-
!assert {model: event.event, id: event_1}:
- state == 'confirm', "Event should be confirm."
-
So I cancel this Event
-
!python {model: event.event}: |
self.button_cancel(cr, uid, [ref("event_1")])
-
I check event should be cancel.
-
!assert {model: event.event, id: event_1}:
- state == 'cancel', "Event should be cancel"