Community mailing list archives

community@mail.odoo.com

Re: Report from a wizard ERROR

by
Shivam Goyal
- 09/29/2015 03:12:34
Hey Sry i overlooked the second error that u sent. The thing is u r calling get_requests(data['form']['req_ids'])

If you check ur parser file (http://hastebin.com/asusiditiy.coffee)

class order_print(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(order_print, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, # 'lst': self._lst, # 'total': self._lst_total, 'get_requests':self.get_orders, })


u r saying 'get_request':self.get_orders


However i do not see any get_orders() inside the class order_print



On Tue, Sep 29, 2015 at 12:32 PM, Shivam Goyal <shivam1111@gmail.com> wrote:
You have declared variable 'data_error' in your py file (http://hastebin.com/yusasovale.coffee) under method 'print_report'

Put a print statement -: print "===================================",data_error 

on line no 59 of this file and send it to me

You are almost there..........It is just that we need to see the exact format in which 'data_error' is being passed in to the 'form' key




On Tue, Sep 29, 2015 at 12:29 PM, tibyan zarroug <777m@live.co.uk> wrote:
Pardon what do you mean by output of data_error

Subject: Re: Report from a wizard ERROR
From: shivam1111@gmail.com
Date: Tue, 29 Sep 2015 06:48:29 +0000
To: community@mail.odoo.com

Send the output of data_error after line 58 in py file
_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe