Hello, hope someone could help me, thanks.
I have a form view, with 2 fields:
field 1: phone_model = fields.Many2one('product.product',required=True)
filed 2: parts =fields.Many2many('rma.parts')
rma. parts is a class i built , with a fields
parts_model=fields.Char()
My question is how to add domain to field 2, to show only the parts with same phone_model name with field 1.
If i use below domain, i got erro message "object has no attribute '_name'
"[('parts_model','like',phone_model._name)]"