(self)
return res
V 1.2
        <element name="DetalleExenta" type="T:DetalleExentaType" minOccurs="1"
                 maxOccurs="7" />
            <sequence>
                <element name="CausaExencion" type="T:CausaExencionType" />
                    <restriction base="string">
                        <enumeration value="E1">
                        ...
                <element name="BaseImponible" type="T:ImporteSgn12.2Type"/>
            </sequence>
        :return: list<OrderedDict>
V 1.2
        <element name="DetalleExenta" type="T:DetalleExentaType" minOccurs="1"
                 maxOccurs="7" />
            <sequence>
                <element name="CausaExencion" type="T:CausaExencionType" />
                    <restriction base="string">
                        <enumeration value="E1">
                        ...
                <element name="BaseImponible" type="T:ImporteSgn12.2Type"/>
            </sequence>
        :return: list<OrderedDict>
V 1 . 2 <element name = DetalleExenta type = T : DetalleExentaType minOccurs = 1 maxOccurs = 7 / > <sequence > <element name = CausaExencion type = T : CausaExencionType / > <restriction base = string > <enumeration value = E1 > ... <element name = BaseImponible type = T : ImporteSgn12 . 2Type / > < / sequence > : return : list<OrderedDict >
def build_detalle_exenta(self):
        """V 1.2
        <element name="DetalleExenta" type="T:DetalleExentaType" minOccurs="1"
                 maxOccurs="7" />
            <sequence>
                <element name="CausaExencion" type="T:CausaExencionType" />
                    <restriction base="string">
                        <enumeration value="E1">
                        ...
                <element name="BaseImponible" type="T:ImporteSgn12.2Type"/>
            </sequence>
        :return: list<OrderedDict>
        """
        tbai_exempted_taxes = self.get_exempted_taxes()
        res = []
        if 7 < len(tbai_exempted_taxes):
            raise exceptions.ValidationError(
                _("TicketBAI Invoice %s: Max. number of exempted taxes is 7!")
                % self.name
            )
        for tax in tbai_exempted_taxes:
            res.append(
                OrderedDict(
                    [("CausaExencion", tax.exempted_cause), ("BaseImponible", tax.base)]
                )
            )
        return res
def build_detalle_exenta ( self ) : tbai_exempted_taxes = self . get_exempted_taxes ( ) res = [ ] if 7 < len ( tbai_exempted_taxes ) : raise exceptions . ValidationError ( _ ( "TicketBAI Invoice %s: Max. number of exempted taxes is 7!" ) % self . name ) for tax in tbai_exempted_taxes : res . append ( OrderedDict ( [ ( "CausaExencion" , tax . exempted_cause ) , ( "BaseImponible" , tax . base ) ] ) ) return res