Odoo Help

Welcome!

This community 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.

0

Request a Quotation: Error

By
Peter
on 1/28/15, 11:47 AM 916 views

[7.0]

I made some changes in the file .../addons/purchase_requisition/purchase_requistion.py.

Now, when I request a quotation in a purchase requisition, I get the following error, even if I replace it again with file with the original.

 

Client Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 1137, in call_button action = self._call_kw(req, model, method, args, {}) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 1125, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/python2.7/dist-packages/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/python2.7/dist-packages/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/purchase_requisition/wizard/purchase_requisition_partner.py", line 47, in create_order self.pool.get('purchase.requisition').make_purchase_order(cr, uid, active_ids, data.partner_id.id, context=context) File "/usr/lib/python2.7/dist-packages/openerp/addons/purchase_requisition/purchase_requisition.py", line 156, in make_purchase_order taxes = fiscal_position.map_tax(cr, uid, supplier.property_account_position, taxes_ids) File "/usr/lib/python2.7/dist-packages/openerp/addons/purchase_requisition/purchase_requisition.py", line 109, in _seller_details seller_price = False File "/usr/lib/python2.7/dist-packages/openerp/addons/product/product.py", line 170, in _compute_qty return self._compute_qty_obj(cr, uid, from_unit, qty, to_unit) File "/usr/lib/python2.7/dist-packages/openerp/addons/product/product.py", line 175, in _compute_qty_obj if from_unit.category_id.id <> to_unit.category_id.id: File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 503, in __getattr__ return self[name] File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 406, in __getitem__ field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write") File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 3708, in read result = self._read_flat(cr, user, select, fields, context, load) File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 3762, in _read_flat cr.execute(query, [tuple(sub_ids)] + rule_params) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 161, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 226, in execute res = self._obj.execute(query, params) File "/usr/lib/python2.7/dist-packages/psycopg2/extensions.py", line 129, in getquoted pobjs = [adapt(o) for o in self._seq] ProgrammingError: can't adapt type 'product_uom'

Does anybody know whats wrong?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/28/15, 11:47 AM
Seen: 916 times
Last updated: 3/16/15, 8:10 AM