Community mailing list archives
Re: Domain for Many2one on onchangeby
Yes and no, except that part was changed. I couldn't access the current record using this method. Doesnt matter tho, because i can use search / @onchange together. Am Dienstag, den 07.06.2016, 14:22 +0000 schrieb MD Tanzilul Hasan Khan: > If you want domain when the form is loaded, you can use domain function. > > Like - > > @api.model > def _a_fuction(self): > your_code > > > field_name = fields.Many2one(domain = _a_fuction.....) > > Regards.