Community mailing list archives

community@mail.odoo.com

Re: Report Error

by
Serpent Consulting Services Pvt. Ltd., Jay Vora
- 10/07/2015 12:51:33
Hi,

Qweb surely accesses formatLang!
See addons/product/views/report_pricelist.xml

But when the call inside formatLang is to a function/class you have to define in your report parser.

Check: /addons/account_budget/views/report_budget.xml and the parser in report directory of the module. See  __init__

Thanks.





On Wed, Oct 7, 2015 at 10:04 PM, Jordi Riera <kender.jr@gmail.com> wrote:
The error tells me formatLang() or time.strftime() is None in your case.

I would be on formatLang(). Try to remove it to see if the error is on another line with formatLang.

Let me know if it helped you.

Jordi

On Wed, Oct 7, 2015 at 12:08 PM Tibyan Hussien <tibyan.hussien@visionvalley.net> wrote:








Dear community members
I try to generate a report and stucked with this error
QWebException: "'NoneType' object is not callable" while evaluating
"formatLang(time.strftime('%Y-%m-%d'),date=True)"
you can find the full error on
http://hastebin.com/onoxarucim.rb
the wizard file
 http://hastebin.com/uqoqoladom.coffee
report xml file
http://hastebin.com/ojuladoqan.xml
report python file
 http://hastebin.com/dulehetane.coffee
and xml file for the report
 http://hastebin.com/asixapezom.xml

Regards,
Tibyan


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

--
---
- Jordi Riera, Connecting Softwares and people.
Founder at www.cgstudiomap.org, Because everyone should be familiar with the cg industry

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




--
The Splendid journey of 2 years in Numbers
---
Regards,
Jay Vora,
Managing Director,
<img src="cid:part1.09000700.05080805@serpentcs.com" style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Serpent Consulting Services Pvt. Ltd.
Web : http://www.serpentcs.com
Mobile : 91 - 9879354457
Twitter: jaynvora
Skype: jaynvora
Blog : http://jayvora.blogspot.com