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 < (datetime.date.today().strftime('%%Y-%%m-%%d)))">
SOLUTION:
The colors structure is wrong and you have to change that with :
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" , analytic_ default_ view.xml" line "9"
xml field "account_
Incorrect line "grey:date_ stop and (date_stop < (datetime. date.today( ).strftime( '%%Y-%% m-%%d)) )">
<tree string="Analytic Defaults" colors=
SOLUTION:
The colors structure is wrong and you have to change that with :
<tree string="Analytic Defaults" colors= "grey:' date_stop' ,'and', ('date_ stop',' <',( datetime. date.today( ).strftime( '%%Y-%% m-%%d') ))">
Solved by David Romero and Andrea Garcia trescloud. com</hr>
TREScloud
<hr>www.