Community mailing list archives

community@mail.odoo.com

Re: Report Error

by
Jordi Riera
- 10/08/2015 08:13:06
I would need an instance to run some tests to help you more :( But no instance here.

Sorry

On Thu, Oct 8, 2015 at 7:07 AM Tibyan Hussien <tibyan.hussien@visionvalley.net> wrote:

I removed formatLang() and got this error
QWebException: "'NoneType' object has no attribute '__getitem__'" while evaluating "pos_orders_details(data['form'])"
 which pos_orders_details(data['form']) is a function defined in  http://hastebin.com/dulehetane.coffee

Tibyan

On 07 أكت, 2015 م 07:22, Yannick Vaucher wrote:
<blockquote cite="mid:CAA50gnHmBXUy6iv24mSMZrA=i5CSn2pNkYXXn8Ls7BhF-o2D-A@mail.gmail.com" type="cite">
In Qweb you don't have acces anymore to the formatLang method.

The easiest option is to make your value a field, so it should format it on display.

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10

On Wed, Oct 7, 2015 at 6: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

_______________________________________________
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

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