hi! On 2013-09-12 18:17, Jean C wrote:
Could you by chance provide me with some sample code to do so ?
monkey-patching the Report parse-method: put into this into some .py file in your module, import it in __init__.py: ----8<---- (abbreviated) import stuff # [...] # import class to monkey patch from trytond.report import Report # this is the new method @classmethod def parse(cls, report, records, data, localcontext): # bla bla bla # [...] # this is the monkey patching Report.parse = parse ----8<---- that's it. mfg Robert
