Community mailing list archives

community@mail.odoo.com

Re: [v8] Eror when creating a new warehouse

by
Omal Bastin
- 10/24/2016 02:01:46
please try updating stock module

On Mon, Oct 24, 2016 at 11:23 AM, Apoorv Soral <soral.apoorv@gmail.com> wrote:
2016-10-24 05:41:14,624 8165 ERROR guage openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/home/asoral/dex8/core/openerp/http.py", line 543, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/asoral/dex8/core/openerp/http.py", line 580, in dispatch
    result = self._call_function(**self.params)
  File "/home/asoral/dex8/core/openerp/http.py", line 316, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/http.py", line 313, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/asoral/dex8/core/openerp/http.py", line 809, in __call__
    return self.method(*args, **kw)
  File "/home/asoral/dex8/core/openerp/http.py", line 409, in response_wrap
    response = f(*args, **kw)
  File "/home/asoral/dex8/core/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/asoral/dex8/core/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/asoral/dex8/repo/crm_rma_location/models/stock_warehouse.py", line 178, in create
    warehouse_id = super(StockWarehouse, self).create(vals=vals)
  File "/home/asoral/dex8/core/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/asoral/dex8/core/addons/stock/stock.py", line 3552, in create
    wh_loc_id = location_obj.create(cr, uid, loc_vals, context=context)
  File "/home/asoral/dex8/core/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/asoral/dex8/repo/stock_inventory_lockdown/models/stock_location.py", line 40, in create
    return super(StockLocation, self).create(vals)
  File "/home/asoral/dex8/core/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/asoral/dex8/core/addons/stock/stock.py", line 162, in create
    return super(stock_location, self).create(cr, uid, default, context=context)
  File "/home/asoral/dex8/core/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/asoral/dex8/repo/connector/producer.py", line 48, in create
    record_id = create_original(self, vals)
  File "/home/asoral/dex8/core/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/asoral/dex8/repo/web_auto_refresh/web_auto_refresh.py", line 48, in create
    record_id = create_original(self, vals)
  File "/home/asoral/dex8/core/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/models.py", line 4100, in create
    record = self.browse(self._create(old_vals))
  File "/home/asoral/dex8/core/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/asoral/dex8/core/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/asoral/dex8/core/openerp/models.py", line 4272, in _create
    cr.execute('update '+self._table+' set parent_left=%s,parent_right=%s where id=%s', (pleft+1, pleft+2, id_new))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Omal Bastin
Steigend IT Solutions