error en parseo reporte de factura del módulo l10n_ar_invoice

Bug #1253440 reported by Adolfo Arbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-l10n-ar-localization
New
Undecided
Unassigned

Bug Description

Ejecutando el .rml de la factura que está en el módulo l10n_ar_invoice, me da el siguiente error:

 Cannot eval "is_class(o, 'A')"

Traceback (most recent call last):
  File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'is_class' is not defined

Esa función is_class pertenece a la clase "class ar_account_invoice(report_sxw.rml_parse)", dentro del archivo invoice.py, de dicho módulo.

Es decir, no toma el parser.

Tampoco encuentro el llamado a:

def publish_account_invoice():
    del openerp.report.interface.report_int['report.account.invoice']

    report_sxw.report_sxw(
        'report.account.invoice',
        'account.invoice',
        'addons/l10n_ar_wsafip/report/invoice.rml',
        parser=ar_account_invoice,
        header=False
    )

que reemplazaría el parser.

La solución la encontré por este lado: http://anybox.fr/blog/openerp-how-to-use-a-custom-rml-report-parser-class

Sds.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.