(self, args, offset=0, limit=None, order=None, count=False)
return super().search(
            args, offset=offset, limit=limit, order=order, count=count
        )
Include commercial name in direct name search.
Include commercial name in direct name search.
Include commercial name in direct name search .
def search(self, args, offset=0, limit=None, order=None, count=False):
        """Include commercial name in direct name search."""
        args = expression.normalize_domain(args)
        for arg in args:
            if isinstance(arg, (list, tuple)) and (
                arg[0] == "name" or arg[0] == "display_name"
            ):
                index = args.index(arg)
                args = (
                    args[:index] + ["|", ("comercial", arg[1], arg[2])] + args[index:]
                )
                break
        return super().search(
            args, offset=offset, limit=limit, order=order, count=count
        )
def search ( self , args , offset = 0 , limit = None , order = None , count = False ) : args = expression . normalize_domain ( args ) for arg in args : if isinstance ( arg , ( list , tuple ) ) and ( arg [ 0 ] == "name" or arg [ 0 ] == "display_name" ) : index = args . index ( arg ) args = ( args [ : index ] + [ "|" , ( "comercial" , arg [ 1 ] , arg [ 2 ] ) ] + args [ index : ] ) break return super ( ) . search ( args , offset = offset , limit = limit , order = order , count = count )