(self, tax_line, tax_lines)
return tax_dict
Get the SII tax dictionary for the passed tax line.

        :param self: Single invoice record.
        :param tax_line: Tax line that is being analyzed.
        :param tax_lines: Dictionary of processed invoice taxes for further operations
            (like REQ).
        :return: A dictionary with the corresponding SII tax values.
Get the SII tax dictionary for the passed tax line.
Get the SII tax dictionary for the passed tax line .
def _get_sii_tax_dict(self, tax_line, tax_lines):
        """Get the SII tax dictionary for the passed tax line.

        :param self: Single invoice record.
        :param tax_line: Tax line that is being analyzed.
        :param tax_lines: Dictionary of processed invoice taxes for further operations
            (like REQ).
        :return: A dictionary with the corresponding SII tax values.
        """
        tax = tax_line["tax"]
        tax_base_amount = tax_line["base"]
        if tax.amount_type == "group":
            tax_type = abs(tax.children_tax_ids.filtered("amount")[:1].amount)
        else:
            tax_type = abs(tax.amount)
        tax_dict = {"TipoImpositivo": str(tax_type), "BaseImponible": tax_base_amount}
        if self.move_type in ["out_invoice", "out_refund"]:
            key = "CuotaRepercutida"
        else:
            key = "CuotaSoportada"
        tax_dict[key] = tax_line["amount"]
        # Recargo de equivalencia
        req_tax = self._get_sii_tax_req(tax)
        if req_tax:
            tax_dict["TipoRecargoEquivalencia"] = req_tax.amount
            tax_dict["CuotaRecargoEquivalencia"] = tax_lines[req_tax]["amount"]
        return tax_dict
def _get_sii_tax_dict ( self , tax_line , tax_lines ) : tax = tax_line [ "tax" ] tax_base_amount = tax_line [ "base" ] if tax . amount_type == "group" : tax_type = abs ( tax . children_tax_ids . filtered ( "amount" ) [ : 1 ] . amount ) else : tax_type = abs ( tax . amount ) tax_dict = { "TipoImpositivo" : str ( tax_type ) , "BaseImponible" : tax_base_amount } if self . move_type in [ "out_invoice" , "out_refund" ] : key = "CuotaRepercutida" else : key = "CuotaSoportada" tax_dict [ key ] = tax_line [ "amount" ] # Recargo de equivalencia req_tax = self . _get_sii_tax_req ( tax ) if req_tax : tax_dict [ "TipoRecargoEquivalencia" ] = req_tax . amount tax_dict [ "CuotaRecargoEquivalencia" ] = tax_lines [ req_tax ] [ "amount" ] return tax_dict