[IMP] tests for lead2opp conversion; properly use m2m operations instead of a simple list of ids

bzr revid: abo@openerp.com-20121130192537-2ammzl0irumnau2g
This commit is contained in:
Antonin Bourguignon
2012-11-30 20:25:37 +01:00
parent 6d0aaa0dde
commit 26ef6d145f
@@ -76,7 +76,7 @@
-
!python {model: crm.lead2opportunity.partner.mass}: |
context.update({'active_model': 'crm.lead', 'active_ids': [ref("crm_case_11"), ref("crm_case_2")], 'active_id': ref("crm_case_11")})
id = self.create(cr, uid, {'user_ids': [ref('base.user_root')], 'section_id': ref('crm.section_sales_department')}, context=context)
id = self.create(cr, uid, {'user_ids': [(6, 0, [ref('base.user_root')])], 'section_id': ref('crm.section_sales_department')}, context=context)
self.mass_convert(cr, uid, [id], context=context)
-
Now I check first lead converted on opportunity.