I have added a domain of filtering customer_category = "main customer" in res partner many2one field in Sales App
partner_id = fields.Many2one('res.partner', domain="[('category_id', '=', 'Main Customer')]",string='Customer')
Therefore i would like it to be passed too when someone creates a new customer from Sales Application it should add that domain too as default value, how can l archive this?
Regards.