← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 649148] Re: [trunk] stock move analysis - wrong domain

 

Hello Dr.Ferdinand,

There seems that code has been changed.

I would like to request you to update the code and interrupt if the
problem still exists.

Thanks.

-- 
[trunk] stock move analysis - wrong domain
https://bugs.launchpad.net/bugs/649148
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
                 domain="[('date_planned','<=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date_planned','>',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"

should be 
'>=' 

domain="[('date_planned','<=', (datetime.date (int(time.strftime('%%Y')), datetime.date.today().month, 1) - datetime.timedelta (days = 1)).strftime('%%Y-%%m-%%d')),('date_planned','>=',(datetime.date (int(time.strftime('%%Y')), datetime.date.today().month-1, 1)).strftime('%%Y-%%m-%%d'))]"

I really wonder why OpenERP uses unreadable code - see suggestions
https://bugs.launchpad.net/openobject-addons/+bug/626867