← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 692899] [NEW] stock_planning module create period wizard datetime object wrong usage

 

Public bug reported:

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)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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)





Follow ups

References