[FIX]: crm: Fixed problem of wrong model in yml test

bzr revid: rpa@tinyerp.com-20100514063225-gtwfy8pkeq88ih66
This commit is contained in:
rpa (Open ERP)
2010-05-14 12:02:25 +05:30
parent 594d903416
commit 9d6cdee4ed
+2 -2
View File
@@ -49,8 +49,8 @@
!python {model: crm.phonecall}: |
xid= ref('crm_phonecall_interviewcall0')
obj_phonecall = self.browse(cr, uid, xid)
ids = self.pool.get('crm.opportunity').search(cr, uid, [('name', '=', obj_phonecall.opportunity_id.name)])
obj_opp = self.pool.get('crm.opportunity').browse(cr, uid, ids)[0]
ids = self.pool.get('crm.lead').search(cr, uid, [('name', '=', obj_phonecall.opportunity_id.name)])
obj_opp = self.pool.get('crm.lead').browse(cr, uid, ids)[0]
assert obj_phonecall.partner_id == obj_opp.partner_id
- |