Configuration Overview : Invoicing method selection

Asked by Jean-Remi PINNA

Using openerp 6.1.1.
Configuration overview in the web client. Installed modules :

Customer Relationship Management
Sales Management
Warehouse Management
Purchase Management
eInvoicing
Automated Action Rules
Delivery Costs
Electronic Data Interchange (EDI)
E-Mail Templates
Email Gateway
France - Accounting
Products & Pricelists
Purchase To Sale
Process

Use case:
Go in the setting. In the configuration overview select Setup Invoicing Method then check Based on delivery orders. Apply.

Client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1006, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 950, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 964, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/base/res/res_config.py", line 120, in action_next
    next = self.execute(cr, uid, ids, context=context)
  File "/opt/openerp/server/openerp/addons/sale/sale.py", line 1411, in execute
    prod_id = data_obj.get_object(cr, uid, 'product', 'product_consultant').id
  File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 662, in get_object
    res_model, res_id = self.get_object_reference(cr, uid, module, xml_id)
  File "/opt/openerp/server/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/opt/openerp/server/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 654, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/opt/openerp/server/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/opt/openerp/server/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 647, 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: product.product_consultant

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

This more like a User's mistake !

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#2

Jean-Remi,

This has happened because you have removed the Product (Service on timesheet), and hence the reference is missing.

Thanks,
Serpent Consulting Services.

Revision history for this message
Jean-Remi PINNA (jrpinna) said :
#3

OK I will try on tomorrow and keep you in touch
Thank you very much

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#4

Jean-Remi,

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
Numérigraphe (numerigraphe) said :
#5

If that value is needed by a portion of code, it should not be in a noupdate section.
Serpent Consulting Services, would you care to file a bug about that please ?
Lionel.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) said :
#6

As I have discovered recently, the 'forcecreate' attribute defaults to True even when it is not present. That implies that a regular upgrade of the module without any modifications should re-add the entry.

Jean-remi, could you verify this?

Can you help with this problem?

Provide an answer of your own, or ask Jean-Remi PINNA for more information if necessary.

To post a message you must log in.