Open nabilragab opened 6 months ago
https://github.com/OCA/purchase-workflow/blob/6d1ad9abc2409eddc315c73a592679a48911cb42/purchase_tag/models/purchase_tag.py#L46
change the args to the below @api.model def _name_search( self, name="", domain=None, operator="ilike", limit=100, order=None ): if name: domain = [("name", operator, name.split(" / ")[-1])] + list(domain or []) return super()._name_search( name=name, domain=domain, operator=operator, limit=limit, order=order, )
Could you make a Pull Request ? Thanks
@legalsylvain i did, you rejected.
https://github.com/OCA/purchase-workflow/blob/6d1ad9abc2409eddc315c73a592679a48911cb42/purchase_tag/models/purchase_tag.py#L46
change the args to the below @api.model def _name_search( self, name="", domain=None, operator="ilike", limit=100, order=None ): if name: domain = [("name", operator, name.split(" / ")[-1])] + list(domain or []) return super()._name_search( name=name, domain=domain, operator=operator, limit=limit, order=order, )