from openerp import fields, api, models

class example_report_parser(object):
	def __init__(self, cr, uid, name, context):
		self.localcontext = {
			'some_value' : 'some static value',
			'somefunc' : self._somefunc,
		}

	def _somefunc(self):
		return 'FUNCVALUE'

	def set_context(self, objects, data, ids, report_type = None):
		self.localcontext['data'] = data
		self.localcontext['objects'] = objects

class report_test1_parser(models.AbstractModel):
	_name="report.dih_reports_test.report_dih_move"
	_inherit='report.abstract_report'
	_template='dih_reports_test.report_dih_move'
	_wrapped_report_class=example_report_parser
fe4c2d5b69f37daad8fb4fb3a27f36e6ce1f5d44
<mask token>


class report_test1_parser(models.AbstractModel):
    _name = 'report.dih_reports_test.report_dih_move'
    _inherit = 'report.abstract_report'
    _template = 'dih_reports_test.report_dih_move'
    _wrapped_report_class = example_report_parser

<mask token>


class example_report_parser(object):
    <mask token>
    <mask token>
    <mask token>


class report_test1_parser(models.AbstractModel):
    _name = 'report.dih_reports_test.report_dih_move'
    _inherit = 'report.abstract_report'
    _template = 'dih_reports_test.report_dih_move'
    _wrapped_report_class = example_report_parser

<mask token>


class example_report_parser(object):

    def __init__(self, cr, uid, name, context):
        self.localcontext = {'some_value': 'some static value', 'somefunc':
            self._somefunc}

    def _somefunc(self):
        return 'FUNCVALUE'

    def set_context(self, objects, data, ids, report_type=None):
        self.localcontext['data'] = data
        self.localcontext['objects'] = objects


class report_test1_parser(models.AbstractModel):
    _name = 'report.dih_reports_test.report_dih_move'
    _inherit = 'report.abstract_report'
    _template = 'dih_reports_test.report_dih_move'
    _wrapped_report_class = example_report_parser

from openerp import fields, api, models


class example_report_parser(object):

    def __init__(self, cr, uid, name, context):
        self.localcontext = {'some_value': 'some static value', 'somefunc':
            self._somefunc}

    def _somefunc(self):
        return 'FUNCVALUE'

    def set_context(self, objects, data, ids, report_type=None):
        self.localcontext['data'] = data
        self.localcontext['objects'] = objects


class report_test1_parser(models.AbstractModel):
    _name = 'report.dih_reports_test.report_dih_move'
    _inherit = 'report.abstract_report'
    _template = 'dih_reports_test.report_dih_move'
    _wrapped_report_class = example_report_parser

from openerp import fields, api, models

class example_report_parser(object):
	def __init__(self, cr, uid, name, context):
		self.localcontext = {
			'some_value' : 'some static value',
			'somefunc' : self._somefunc,
		}

	def _somefunc(self):
		return 'FUNCVALUE'

	def set_context(self, objects, data, ids, report_type = None):
		self.localcontext['data'] = data
		self.localcontext['objects'] = objects

class report_test1_parser(models.AbstractModel):
	_name="report.dih_reports_test.report_dih_move"
	_inherit='report.abstract_report'
	_template='dih_reports_test.report_dih_move'
	_wrapped_report_class=example_report_parser