Comment 0 for bug 1085221

Revision history for this message
Andrea Garcia (andrea-garcia) wrote :

When you enter to Accounting/Configuration/Analytic in the webclient

THIS ERROR appears

Uncaught Error: QWeb2 - template['ListView.rows']: Runtime Error: Error: QWeb2 - template['ListView.row']: Runtime Error: Error: NameError: name 'datetime' is not defined

The error appears in module "account_analytic_default",
xml field "account_analytic_default_view.xml" line "9"

Incorrect line
<tree string="Analytic Defaults" colors="grey:date_stop and (date_stop &lt; (datetime.date.today().strftime('%%Y-%%m-%%d)))">

SOLUTION:

The colors structure is wrong and you have to change that with :

<tree string="Analytic Defaults" colors="grey:'date_stop','and',('date_stop','&lt;',(datetime.date.today().strftime('%%Y-%%m-%%d')))">

Solved by David Romero and Andrea Garcia
TREScloud
<hr>www.trescloud.com</hr>