← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 763761] [NEW] 'Invalid Model Name' Error when installing Account Check Writing module

 

Public bug reported:

When installing the latest branch of the openerp-usa modules, I get this
warning:

Error occurred while validating the field(s) res_model,src_model:
Invalid model name in the action definition.

Here is the traceback for the error as well:

Traceback (most recent call last):
  File "/home/openerp/server-6.0.2/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/openerp/server-6.0.2/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 511, in execute
    res = my_fct(db, uid, model, method, *args)
  File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 489, in my_fct
    return fct_src(db, uid, model, method, *args)
  File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/server-6.0.2/bin/osv/orm.py", line 1981, in write
    self.datas[object_id].update(vals2)
KeyError: 1

I am assuming that this is something very simple, I will investigate
with my limited knowledge and hopefully be able to pick out the error.
FYI, the other dependencies are installed correctly.

** Affects: openerp-usa
     Importance: Medium
         Status: New

** Description changed:

  When installing the latest branch of the openerp-usa modules, I get this
  warning:
  
- <pre>Error occurred while validating the field(s) res_model,src_model:
- Invalid model name in the action definition.</pre>
+ Error occurred while validating the field(s) res_model,src_model:
+ Invalid model name in the action definition.
  
  Here is the traceback for the error as well:
  
- <pre>
  Traceback (most recent call last):
-   File "/home/openerp/server-6.0.2/bin/netsvc.py", line 489, in dispatch
-     result = ExportService.getService(service_name).dispatch(method, auth, params)
-   File "/home/openerp/server-6.0.2/bin/service/web_services.py", line 599, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 511, in execute
-     res = my_fct(db, uid, model, method, *args)
-   File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 489, in my_fct
-     return fct_src(db, uid, model, method, *args)
-   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 122, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 176, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/openerp/server-6.0.2/bin/osv/orm.py", line 1981, in write
-     self.datas[object_id].update(vals2)
+   File "/home/openerp/server-6.0.2/bin/netsvc.py", line 489, in dispatch
+     result = ExportService.getService(service_name).dispatch(method, auth, params)
+   File "/home/openerp/server-6.0.2/bin/service/web_services.py", line 599, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 511, in execute
+     res = my_fct(db, uid, model, method, *args)
+   File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 489, in my_fct
+     return fct_src(db, uid, model, method, *args)
+   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 122, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 176, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/openerp/server-6.0.2/bin/osv/orm.py", line 1981, in write
+     self.datas[object_id].update(vals2)
  KeyError: 1
- </pre>
  
  I am assuming that this is something very simple, I will investigate
  with my limited knowledge and hopefully be able to pick out the error.
  FYI, the other dependencies are installed correctly.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/763761

Title:
  'Invalid Model Name' Error when installing Account Check Writing
  module

Status in OpenERP - US Localization:
  New

Bug description:
  When installing the latest branch of the openerp-usa modules, I get
  this warning:

  Error occurred while validating the field(s) res_model,src_model:
  Invalid model name in the action definition.

  Here is the traceback for the error as well:

  Traceback (most recent call last):
    File "/home/openerp/server-6.0.2/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/openerp/server-6.0.2/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 511, in execute
      res = my_fct(db, uid, model, method, *args)
    File "/home/openerp/server-6.0.2/bin/addons/audittrail/audittrail.py", line 489, in my_fct
      return fct_src(db, uid, model, method, *args)
    File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/server-6.0.2/bin/osv/orm.py", line 1981, in write
      self.datas[object_id].update(vals2)
  KeyError: 1

  I am assuming that this is something very simple, I will investigate
  with my limited knowledge and hopefully be able to pick out the error.
  FYI, the other dependencies are installed correctly.



Follow ups

References