Hi everyone,
I don't know why this error is showing up. I'm trying to add a custom report with a function this way:
class sale_recurring_orders_agreement(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context=None):
super(sale_recurring_orders_agreement, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'prueba': self.prueba,
})
def prueba(self):
return 'A'
And as I press "Print" it just says:
sale_recurring_orders_agreement' object has no attribute 'prueba'
(<type 'exceptions.AttributeError'>, AttributeError("'sale_recurring_orders_agreement' object has no attribute 'prueba'",), <traceback object at 0x03CB1E40>)
Can someone help me?
Thank you very much for your support.