Odoo Help

0

warehouse_id error

By
sneha antony
on 10/27/14, 2:13 AM 1,402 views

I installed a new openerp server with freshly installed modules.The modules that I am having now are Messaging,SuperCalendar,Sales,Project,Invoicing,Purchases,Warehouse,Human Resources etc.Now the following error occurs when I try to create a product through the following steps.

Sales->Leads->Create Lead->Lead created and saved->Convert to Opportunity where Conversion Action-Convert To opportunity,related customer -Link to an existing customer and the customer column prefilled with the customer selected while creating lead->create opportunity->convert to quotation->Make Quotation->Create->then a quotation page appears with the edit link.when edit button is clicked and a new product is added in the orderline using create and edit, the following error appears though the product is saved.

OpenERP Server Error

Client Traceback (most recent call last): File "/opt/openerp1/server/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/opt/openerp1/server/openerp/addons/web/controllers/main.py", line 1125, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/opt/openerp1/server/openerp/addons/web/controllers/main.py", line 1111, in _call_kw records = req.session.model(model).read(*args, **kwargs) File "/opt/openerp1/server/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/opt/openerp1/server/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/opt/openerp1/server/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/opt/openerp1/server/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp1/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp1/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/opt/openerp1/server/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/opt/openerp1/server/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/opt/openerp1/server/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/opt/openerp1/server/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/opt/openerp1/server/openerp/osv/orm.py", line 3625, in read result = self._read_flat(cr, user, select, fields, context, load) File "/opt/openerp1/server/openerp/osv/orm.py", line 3734, in _read_flat res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res) File "/opt/openerp1/server/openerp/osv/fields.py", line 1142, in get result = self._fnct(obj, cr, uid, ids, name, self._arg, context) File "/opt/openerp1/server/openerp/addons/stock/product.py", line 358, in _product_available return res File "/opt/openerp1/server/openerp/addons/stock/product.py", line 219, in get_product_available

KeyError: 'warehouse_id' .

I tried but not able to trace the root cause for this issue.Somebody please help

 

0

Ludo - Neobis

--Ludo - Neobis--
2407
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 10/27/14, 4:59 AM

Apparently the shop that you try to sell your product out of has no reference to a warehouse. This is a mandatory reference and should be prefilled when installing the stock module.

Are you useing a multi-company structure? If so, check the shops for all the companies created and see if they have the correct warehouses.

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: 10/27/14, 2:13 AM
Seen: 1402 times
Last updated: 3/16/15, 8:10 AM