Odoo Help

0

How to rename a warehouse with this error?

By
Pascal Tremblay
on 5/18/15, 7:53 AM 639 views

Hello guys,

Is it normally possible to rename a warehouse when it is already used? 

I have these warehouses defined.



When trying to change the name or the code of some of these warehouses, I get error below.

By chance, somebody has an idea? Thanks.



Odoo

Odoo Server Error

Traceback (most recent call last):

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 567, in dispatch

result = self._call_function(**self.params)

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 303, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 300, in checked_call

return self.endpoint(*a, **kw)

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 796, in __call__

return self.method(*args, **kw)

File "/home/odoo/odoo-8.0-20150503/openerp/http.py", line 396, in response_wrap

response = f(*args, **kw)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/web/controllers/main.py", line 936, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/web/controllers/main.py", line 928, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/purchase/stock.py", line 262, in write

return super(stock_warehouse, self).write(cr, uid, ids, vals, context=None)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/mrp/stock.py", line 285, in write

return super(stock_warehouse, self).write(cr, uid, ids, vals, context=None)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/stock/stock.py", line 3549, in write

seq_obj.write(cr, uid, warehouse.int_type_id.sequence_id.id, {'name': name + _(' Sequence internal'), 'prefix': vals.get('code', warehouse.code) + '\INT\\'}, context=context)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/addons/base/ir/ir_sequence.py", line 190, in write

rows = self.read(cr, uid, ids, ['implementation', 'number_increment', 'number_next'], context)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/models.py", line 3128, in read

result = BaseModel.read(records, fields, load=load)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/models.py", line 3163, in read

self._read_from_database(stored, inherited)

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/models.py", line 3375, in _read_from_database

forbidden = missing.exists()

File "/home/odoo/odoo-8.0-20150503/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/models.py", line 4846, in exists

self._cr.execute(query, [tuple(ids)])

File "/home/odoo/odoo-8.0-20150503/openerp/sql_db.py", line 158, in wrapper

return f(self, *args, **kwargs)

File "/home/odoo/odoo-8.0-20150503/openerp/sql_db.py", line 234, in execute

res = self._obj.execute(query, params)

ProgrammingError: operator does not exist: integer = boolean

LINE 1: SELECT id FROM "ir_sequence" WHERE id IN (false)

^

HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/18/15, 7:53 AM
Seen: 639 times
Last updated: 5/18/15, 7:57 AM