when i use domain="[('partner_id','=',parent.partner_id)]" its working
parent.partner_id is not working in given below but hardcoded id i.e 9 is working why
domain=lambda self:[('id', 'not in', self.env['master.detail.lines'].search([]).mapped('sites').ids),('partner_id','=',9)])
try this : ('partner_id','=',parent.partner_id.id)
still unresolved
Sent: Thursday, October 19, 2017 4:23:22 PM
To: Fawad Mazhar
Subject: Re: parent.partner_id is not working in domain in odoo 10 ent
try this : ('partner_id','=',parent.partner_id.id)
--
Pravitha
Sent by Odoo S.A. using Odoo.