[IMP] event: Added registration process from patner on partner_register2invoice.yml

bzr revid: ron@tinyerp.com-20111115083553-v7xg40kj9l7ayrs5
This commit is contained in:
ron@tinyerp.com 2011-11-15 14:05:53 +05:30
parent 63adefd9a3
commit ed2cd316f6
1 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,19 @@
-
I want to organize one conference event, First I registered partner for event
with 5 tickets, so I confirm this registration.
with 5 tickets.
-
!python {model: partner.event.registration}: |
context.update({'active_model': 'res.partner', 'active_ids': [ref("base.res_partner_ericdubois0")], 'active_id': ref("base.res_partner_ericdubois0")})
register = self.create(cr, uid, {'event_id': ref('event_1'),'nb_register': 5}, context=context)
self.open_registration(cr, uid, [register], context=context)
-
Now I check for registration created base on partner.
-
!python {model: event.registration}: |
ids = self.search(cr, uid, [('partner_id','=',ref("base.res_partner_ericdubois0")), ('event_id', '=', ref('event_1'))])
assert ids, "Registratin should be create here."
-
I confirm registration process.
-
!python {model: event.registration}: |
self.check_confirm(cr, uid, [ref("reg_1_1")])