probably this could work ?
red: name <
(datetime.date.today() - relativedelta(day=31,
months=6)).strftime('%%Y-%%m-%%d'))
--
colors - condition not correctly evaluated
https://bugs.launchpad.net/bugs/605334
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Server: Invalid
Bug description:
in my py file:
'name' : fields.date ('From', required=True),
in xml
<tree string="xyz" editable="top" colors="green: name > current_date ; red:
name < current_date">
works
whereas in
<tree string="xyz" editable="top" colors="green: name > current_date ; red:
name < current_date - 180">
the "current_date - 180" is not evaluated
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp