Skip to content

Instantly share code, notes, and snippets.

@gomezgleonardob
Created August 9, 2022 13:53
Show Gist options
  • Save gomezgleonardob/3c7c0e8a9236f7ed837a2118e8a8a155 to your computer and use it in GitHub Desktop.
Save gomezgleonardob/3c7c0e8a9236f7ed837a2118e8a8a155 to your computer and use it in GitHub Desktop.
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH (<http://www.camptocamp.at>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import time
from openerp.report import report_sxw
from openerp.osv import osv
#from .webkit_parser_header_fix import HeaderFooterTextWebKitParser
class StdMemoryXlsxReportReportParametersPricelistAddWebkit(report_sxw.rml_parse):
def __init__(self, name, context):
super(std_memory_xlsx_report_report_parameters_pricelist_add_webkit, self).__init__(cr, uid, name, context=context)
self.cursor = self.cr
self.localcontext.update({
'time': time,
'cr':cr,
'uid': uid,
})
def set_context(self, objects, data, ids, report_type=None):
new_ids = None
self.localcontext.update({
})
return super(std_memory_xlsx_report_report_parameters_pricelist_add_webkit, self).set_context(
objects, data, new_ids, report_type=report_type)
report_sxw.report_sxw('report.ek_report_view_pricelist_add.report_std_memory_xlsx_report_template_pricelist_add',
'wizard.filter.report.parameters.pricelist',
'addons/ek_report_view_pricelist_add/report/std_memory_xlsx_report_template_pricelist_add.mako',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment