Commit 846141be authored by fedexin40's avatar fedexin40 Committed by agb80

Create custom parser for invoice report

On version 8 the account_print_invoice that we were using as base
parser for print invoice report is deprecated, whit this commit we
replicate the entire behavior on our custom parser for prevent
localization crash on new version

Ya no hereda del account_print_invoice en lugar de eso hereda de openerp.report
parent e0e0769f
Pipeline #195 failed with stage
......@@ -26,9 +26,9 @@ import string
import logging
import base64
import StringIO
import time
from openerp.tools.translate import _
from openerp.addons.account.report import account_print_invoice
from openerp.report import report_sxw
import openerp
import qrcode
......@@ -36,11 +36,13 @@ import qrcode
logger = logging.getLogger(__name__)
class PrintInvoice(account_print_invoice.account_invoice):
class PrintInvoice(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(PrintInvoice, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'get_taxes': self._get_taxes,
'get_taxes_ret': self._get_taxes_ret,
'get_text_promissory': self._get_text_promissory,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment