(self, codes)
return self.company_id.get_taxes_from_templates(tax_templates)
Return the codes that correspond to that sii map line codes.

        :param self: Single invoice record.
        :param codes: List of code strings to get the mapping.
        :return: Recordset with the corresponding codes
Return the codes that correspond to that sii map line codes.
Return the codes that correspond to that sii map line codes .
def _get_sii_taxes_map(self, codes):
        """Return the codes that correspond to that sii map line codes.

        :param self: Single invoice record.
        :param codes: List of code strings to get the mapping.
        :return: Recordset with the corresponding codes
        """
        self.ensure_one()
        sii_map = self.env["aeat.sii.map"].search(
            [
                "|",
                ("date_from", "<=", self.date),
                ("date_from", "=", False),
                "|",
                ("date_to", ">=", self.date),
                ("date_to", "=", False),
            ],
            limit=1,
        )
        tax_templates = (
            sii_map.sudo().map_lines.filtered(lambda x: x.code in codes).taxes
        )
        return self.company_id.get_taxes_from_templates(tax_templates)
def _get_sii_taxes_map ( self , codes ) : self . ensure_one ( ) sii_map = self . env [ "aeat.sii.map" ] . search ( [ "|" , ( "date_from" , "<=" , self . date ) , ( "date_from" , "=" , False ) , "|" , ( "date_to" , ">=" , self . date ) , ( "date_to" , "=" , False ) , ] , limit = 1 , ) tax_templates = ( sii_map . sudo ( ) . map_lines . filtered ( lambda x : x . code in codes ) . taxes ) return self . company_id . get_taxes_from_templates ( tax_templates )