← Back to team overview

openerp-india team mailing list archive

[Bug 1039973] Re: Openerp 6.1 login error 'Field res_model not found in browse_record(ir.actions.act_window, 687)'

 

[Expired for OpenERP Addons because there has been no activity for 60
days.]

** Changed in: openobject-addons
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1039973

Title:
  Openerp 6.1 login error 'Field res_model not found in
  browse_record(ir.actions.act_window, 687)'

Status in OpenERP Addons (modules):
  Expired

Bug description:
  Error on login (on the first login, and the module menu disappered) :

  Client Traceback (most recent call last):
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/controllers/main.py", line 746, in load
      return {'data': self.do_load(req)}
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/controllers/main.py", line 783, in do_load
      menu_roots = Menus.read(self.do_get_user_roots(req), ['name', 'sequence', 'parent_id'], context)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/controllers/main.py", line 770, in do_get_user_roots
      return Menus.search(menu_domain, 0, False, False, context)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/common/http.py", line 611, in send
      raise fault

  
  Server Traceback (most recent call last):
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/service/web_services.py", line 572, in dispatch
      res = fn(db, uid, *params)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/base/ir/ir_ui_menu.py", line 123, in search
      result = self._filter_visible_menus(cr, uid, ids, context=context)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/base/ir/ir_ui_menu.py", line 99, in _filter_visible_menus
      if not menu.child_id:
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/orm.py", line 476, in __getattr__
      return self[name]
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/orm.py", line 391, in __getitem__
      field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/orm.py", line 3381, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/orm.py", line 3504, in _read_flat
      res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/fields.py", line 551, in get
      ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/base/ir/ir_ui_menu.py", line 123, in search
      result = self._filter_visible_menus(cr, uid, ids, context=context)
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/addons/base/ir/ir_ui_menu.py", line 99, in _filter_visible_menus
      if not menu.child_id:
    File "/opt/OpenObject/OpenERP/openerp-6.1-1/openerp/osv/orm.py", line 478, in __getattr__
      raise AttributeError(e)
  AttributeError: 'Field res_model not found in browse_record(ir.actions.act_window, 687)'

  because action id 687 has deleted.

  Module purchase create action WITHOUT NAME (row 105 in
  purchase_view.xml) :

  <record id="action_invoice_pending" model="ir.actions.act_window">
          <field name="res_model">account.invoice</field>
          <field name="view_type">form</field>
          <field name="view_mode">tree,form,calendar,graph</field>
          <field eval="False" name="view_id"/>
          <field name="domain">[('type','=','in_invoice')]</field>
          <field name="context">{'default_type':'in_invoice', 'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1}</field>
          <field name="search_view_id" ref="account.view_account_invoice_filter"/>
              <field name="help">Use this menu to control the invoices to be received from your supplier. OpenERP pregenerates draft invoices from your purchase orders or receptions, according to your settings. Once you receive a supplier invoice, you can match it with the draft invoice and validate it.</field>
      </record>

  I insert the field name and updated the error disappered (everything
  returned OK).

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1039973/+subscriptions