Logical error in test 'write on a related field'

Bug #1244385 reported by Stefan Rijnhart (Opener)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

In test 'write on a related field', in openerp/tests/test_fields.py, there is a logical error

Line 110 says:

    partner_ids = self.partner.search(self.cr, self.uid, [('related_company_partner_id', '=', company.id)])

However, the field 'related_company_partner_id' points to the partner of the company of the partner, and is compared here with a company id. The correct line would therefore be:

    partner_ids = self.partner.search(self.cr, self.uid, [('company_id', '=', company.id)])

Related branches

summary: - [7.0] Logical errors in test 'write on a related field'
+ [7.0] Logical error in test 'write on a related field'
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
summary: - [7.0] Logical error in test 'write on a related field'
+ Logical error in test 'write on a related field'
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.