openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18903
[Bug 1085221] Re: NameError: name 'datetime' is not defined
> When you enter to Accounting/Configuration/Analytic in the webclient
As far as i can tell, the Analytic Defaults tree view does not have any
@colors, at least in the latest trunk
> The colors structure is wrong
No, it is not. @colors is a bunch of Python expression, not weird things
which kinda sorta looks like domains but aren't actually domains.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1085221
Title:
NameError: name 'datetime' is not defined
Status in OpenERP Addons (modules):
Incomplete
Bug description:
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 :
<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
www.trescloud.com
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1085221/+subscriptions
References