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.