set up your invoicing method

Bug #877495 reported by Aline (OpenERP)
50
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
qdp (OpenERP)

Bug Description

in a db with sales installed, go to administration, from the configuration pannel, open (in sales category) set up your invoicing method. Check based on delivery orders and change the delivery cost.

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 718, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 710, in call_common
    return getattr(req.session.model(model), method)(*args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 417, in proxy
    *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 294, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 264, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 245, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/addons/base/res/res_config.py", line 117, in action_next
    next = self.execute(cr, uid, ids, context=context)
  File "/home/aline/source/addons/trunk/sale/sale.py", line 1315, in execute
    prod_id = data_obj.get_object(cr, uid, 'hr_timesheet', 'product_consultant').id
  File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 637, in get_object
    res_model, res_id = self.get_object_reference(cr, uid, module, xml_id)
  File "/home/aline/source/server/trunk/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/home/aline/source/server/trunk/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 629, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/home/aline/source/server/trunk/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/home/aline/source/server/trunk/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 622, in _get_id
    raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))
ValueError: No such external ID currently defined in the system: hr_timesheet.product_consultant

Related branches

qdp (OpenERP) (qdp)
affects: openerp-web → openobject-addons
Changed in openobject-addons:
assignee: nobody → qdp (OpenERP) (qdp)
status: New → Confirmed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

hello Aline (OpenERP),

the fix is released under the revision 5398. Please note that you'd need to create a new database to make it working.

Thanks for your contribution (and patience :p),
Quentin

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Ray Carnes (rcarnes) wrote :

Hello.

Is the fix for this something simple that I can apply myself?

Ray Carnes.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Ray,

This fix already available in 6.1 release.

You can find it here : http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/revision/5398

Regards,
Serpent Consulting Services.
http://www.serpentcs.com

Revision history for this message
Ray Carnes (rcarnes) wrote : RE: [Bug 877495] Re: set up your invoicing method
Download full text (4.6 KiB)

We are already using 6.1-1-1, the build from 22-Feb-2012.

Do you have any suggestions? I am an OpenERP Ready Partner
and this issue it occurring at a client site where we have
quoted warranty and they will be purchasing it.

Ray.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Serpent Consulting Services
Sent: Monday, April 02, 2012 12:09 PM
To: <email address hidden>
Subject: [Bug 877495] Re: set up your invoicing method

Ray,

This fix already available in 6.1 release.

You can find it here : http://bazaar.launchpad.net/~openerp/openobject-
addons/6.1/revision/5398

Regards,
Serpent Consulting Services.
http://www.serpentcs.com

--
You received this bug notification because you are subscribed to a duplicate
bug report (943109).
https://bugs.launchpad.net/bugs/877495

Title:
  set up your invoicing method

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  in a db with sales installed, go to administration, from the
  configuration pannel, open (in sales category) set up your invoicing
  method. Check based on delivery orders and change the delivery cost.

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154,
in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line
718, in call_button
      action = self.call_common(req, model, method, args, domain_id,
context_id)
    File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line
710, in call_common
      return getattr(req.session.model(model), method)(*args)
    File
"/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line
417, in proxy
      *args)
    File
"/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line
294, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File
"/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line
264, in send
      raise fault

  Server Traceback (most recent call last):
    File
"/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line
245, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in
dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method,
params)
    File "/home/aline/source/server/trunk/openerp/service/web_services.py",
line 580, in dispatch
      res = fn(db, uid, *params)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in
wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in
execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in
execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File
"/home/aline/source/server/trunk/openerp/addons/base/res/res_config.py",
line 117, in action_next
      next = self.execute(cr, uid, ids, context=context)...

Read more...

Revision history for this message
Alexis Yushin (ase0is) wrote :

I've encountered exactly the same problem. Is it possible to fix the issue without reinstalling the database? I have all the data and transactions entered already and it would be a disaster if i the customer has to do it all anew

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Alexis,

There is a hack available.

You have to go to addons/product/product_data.xml, replace the line no.3 <data noupdate="1"> by <data>.

And, update the product module.

Thanks,
Serpent Consulting Services.

Revision history for this message
Ray Carnes (rcarnes) wrote :

Alexis,

I set a default value for invoicing method without using the wizard.

In the install for 6.1.1 on two systems, the code already had the changes from the revision were already there, yet I still have the problem on both Ubuntu and Windows 7.

Ray,

Revision history for this message
Mike Lindsay (mlindsay-o) wrote :

I followed Serpent Consultings advice and that worked for me.

You have to go to addons/product/product_data.xml, replace the line no.3 <data noupdate="1"> by <data>.

And, update the product module.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.