(self, tax_template, company)
return (
            xmlids
            and self.env["ir.model.data"]
            .search(
                [
                    ("model", "=", "account.tax"),
                    ("module", "=", xmlids[0]["module"]),
                    ("name", "=", "{}_{}".format(company.id, xmlids[0]["name"])),
                ]
            )
            .res_id
            or False
        )
Low level cached search for a tax given its tax template and
        company.
Low level cached search for a tax given its tax template and
        company.
Low level cached search for a tax given its tax template and company .
def _get_tax_id_from_tax_template(self, tax_template, company):
        """Low level cached search for a tax given its tax template and
        company.
        """
        xmlids = self.env["ir.model.data"].search_read(
            [("model", "=", "account.tax.template"), ("res_id", "=", tax_template.id)],
            ["name", "module"],
        )
        return (
            xmlids
            and self.env["ir.model.data"]
            .search(
                [
                    ("model", "=", "account.tax"),
                    ("module", "=", xmlids[0]["module"]),
                    ("name", "=", "{}_{}".format(company.id, xmlids[0]["name"])),
                ]
            )
            .res_id
            or False
        )
def _get_tax_id_from_tax_template ( self , tax_template , company ) : xmlids = self . env [ "ir.model.data" ] . search_read ( [ ( "model" , "=" , "account.tax.template" ) , ( "res_id" , "=" , tax_template . id ) ] , [ "name" , "module" ] , ) return ( xmlids and self . env [ "ir.model.data" ] . search ( [ ( "model" , "=" , "account.tax" ) , ( "module" , "=" , xmlids [ 0 ] [ "module" ] ) , ( "name" , "=" , "{}_{}" . format ( company . id , xmlids [ 0 ] [ "name" ] ) ) , ] ) . res_id or False )