Contact records are not filtering

Bug #1189440 reported by Purnendu Singh (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

If partner is not company then it's related records are not filtering!!

i created an invoice, an opportunity, a sale, a contract and a phone call for Joseph walters (from the link in partner form), when i come back to partner, and click again on invoice links, i don't find invoice of Joseph Walters.

Same for all there links.

-> actually, it is working fine for company but not for contact

problem is due to the filter_domain applied on search views on invoice, opportunity, sale, contracts, phone calls.

to fix this problem update domain
-<field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
+<field name="partner_id" filter_domain="['|',('partner_id.is_company','=',False),('partner_id', 'child_of', self)]"/>

Regards,

affects: openerp-web → openobject-addons
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.