Merge lp:~therp-nl/openobject-server/7.0-lp1244385-logical_error_in_test into lp:openobject-server/7.0

Proposed by Stefan Rijnhart (Opener) on 2013-10-24
Status: Needs review
Proposed branch: lp:~therp-nl/openobject-server/7.0-lp1244385-logical_error_in_test
Merge into: lp:openobject-server/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
openerp/tests/test_fields.py (+1/-1)
To merge this branch: bzr merge lp:~therp-nl/openobject-server/7.0-lp1244385-logical_error_in_test
Reviewer Review Type Date Requested Status
OpenERP Core Team 2013-10-24 Pending
Review via email: mp+192585@code.launchpad.net

Description of the change

Green on runbot

To post a comment you must log in.

Unmerged revisions

5106. By Stefan Rijnhart (Opener) on 2013-10-24

[FIX] Logical error in related fields write test

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/tests/test_fields.py'
2--- openerp/tests/test_fields.py 2012-12-17 14:30:29 +0000
3+++ openerp/tests/test_fields.py 2013-10-24 20:43:00 +0000
4@@ -105,7 +105,7 @@
5 company = self.company.browse(self.cr, self.uid, company_ids[0])
6
7 # find partners that satisfy [('partner_id.company_id', '=', company.id)]
8- partner_ids = self.partner.search(self.cr, self.uid, [('related_company_partner_id', '=', company.id)])
9+ partner_ids = self.partner.search(self.cr, self.uid, [('company_id', '=', company.id)])
10 partner = self.partner.browse(self.cr, self.uid, partner_ids[0])
11
12 # create a new partner, and assign it to company