← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 690581] Re: Stock_planning : Unable to create Forecasting periods.

 

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
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/690581

Title:
  Stock_planning : Unable to create Forecasting periods.

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  Sales/Configuration/Stock and Sales Periods/Create Stock and Sales Periods

Traceback.


Environment Information : 
System : Linux-2.6.32-26-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.1 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-26-generic
Operating System Version : #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1720 launchpad_translations_on_behalf_of_openerp-20101215043920-1z87yv1nae08otlg
Traceback (most recent call last):
  File "/home/jvo/workspace/trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/jvo/workspace/trunk/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jvo/workspace/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jvo/workspace/trunk/addons/stock_planning/wizard/stock_planning_create_periods.py", line 72, in create_stock_periods
    ds = ds + relativedelta(days=interval) + 1
TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'int'





References