c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08986
[Bug 692899] Re: stock_planning module create period wizard datetime object wrong usage
More Error :
addons/stock_planning/wizard/stock_planning_create_periods.py line 74,
83, 92 :
- ds = ds + relativedelta(days=interval) + 1
+ ds = ds + relativedelta(days=interval + 1)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/692899
Title:
stock_planning module create period wizard datetime object wrong usage
Status in OpenObject Addons Modules:
New
Bug description:
addons/stock_planning/wizard/stock_planning_create_periods.py line 38 : _get_new_period_start method
- period_start = datetime(last_date,"%Y-%m-%d %H:%M:%S")+ relativedelta(days=1)
+ period_start = datetime.strptime(last_date,"%Y-%m-%d %H:%M:%S")+ relativedelta(days=1)
References