← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 709123] Re: base_sale_multichannels crashes when accessing sale. shop module

 

I have the same kind of error when I try to access either the Sales ->
Configuration -> Sales -> Shop or the Magento-Connection -> Core
Settings -> Magento Instances -> Magento Shops

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1621, in fields_view_get
    xml = self.__get_default_search_view(cr, user, context)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1384, in __get_default_search_view
    form_view = self.fields_view_get(cr, uid, False, 'form', context=context)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1591, in fields_view_get
    result['arch'] = _inherit_apply_rec(inherit_result, sql_res[3])
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1586, in _inherit_apply_rec
    result = _inherit_apply(result, inherit, id)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1528, in _inherit_apply
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/usr/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 1442, in raise_view_error
    'model': self._name, })
AttributeError: View definition error for inherited view 'base_sale_multichannels.base_sale_multichannels_view_shop_form' on 'sale.shop' model: Element '<form string="Sale Shop">' not found in parent view 'sale.view_shop_form'


Did you find a solution to this problem?

-- 
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/709123

Title:
  base_sale_multichannels crashes when accessing sale. shop module

Status in Magento Open ERP Connector:
  New

Bug description:
  I am using OpenERP release 6.01, and I am trying to integrate the Magento ecommerce module v6 (openerp6-module) into the system. I can successfully install the module and its dependencies, however when I try to access  either the Sales -> Configuration -> Sales -> Shop  or the Magento-Connection -> Core Settings -> Magento Instances -> Magento Shops ,
  I get the following error message: 

  View error

  Can't find field 'sale_journal' in the following view parts composing the view of object model 'sale.shop':
   * base_sale_multichannels_view_shop_form

  Either you wrongly customized this view, or some modules bringing
  those views are not compatible with your current data model


  My log show  the complete traceback as follows:

  Traceback (most recent call last):
    File "/usr/share/pyshared/openerp-client/modules/gui/window/tree.py", line 209, in sig_open
      if not self.sig_action(widget, 'tree_but_open', warning=False):
    File "/usr/share/pyshared/openerp-client/modules/gui/window/tree.py", line 203, in sig_action
      warning=warning)
    File "/usr/share/pyshared/openerp-client/modules/action/main.py", line 199, in exec_keyword
      self._exec_action(action, data, context=context)
    File "/usr/share/pyshared/openerp-client/modules/action/main.py", line 143, in _exec_action
      limit=datas['limit'], auto_refresh=datas['auto_refresh'], auto_search = datas['auto_search'], search_view = datas['search_view'])
    File "/usr/share/pyshared/openerp-client/modules/gui/window/__init__.py", line 49, in create
      auto_refresh=auto_refresh, auto_search=auto_search, search_view=search_view)
    File "/usr/share/pyshared/openerp-client/modules/gui/window/form.py", line 73, in __init__
      show_search=True, window=self.window, limit=limit, readonly=bool(auto_refresh), auto_search=auto_search, search_view=search_view)
    File "/usr/share/pyshared/openerp-client/widget/screen/screen.py", line 131, in __init__
      self.display()
    File "/usr/share/pyshared/openerp-client/widget/screen/screen.py", line 810, in display
      show_search=self.show_search and vt in ('tree', 'graph'),
    File "/usr/share/pyshared/openerp-client/widget/screen/screen.py", line 156, in search_active
      self.context)
    File "/usr/share/pyshared/openerp-client/rpc.py", line 186, in rpc_exec_auth
      return sock.exec_auth(method, *args)
    File "/usr/share/pyshared/openerp-client/rpc.py", line 120, in exec_auth
      res = self.execute(method, self._uid, self._passwd, *args)
    File "/usr/share/pyshared/openerp-client/rpc.py", line 137, in execute
      raise e
  tiny_socket.Myexception: ("warning -- View error\n\nCan't find field 'sale_journal' in the following view parts composing the view of object model 'sale.shop':\n * base_sale_multichannels_view_shop_form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model", 'Traceback (most recent call last):\n  File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch\n    result = ExportService.getService(service_name).dispatch(method, auth, params)\n  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch\n    res = fn(db, uid, *params)\n  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 126, in wrapper\n    self.abortResponse(1, inst.name, \'warning\', inst.value)\n  File "/usr/share/pyshared/openerp-server/netsvc.py", line 70, in abortResponse\n    raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- View error\n\nCan\'t find field \'sale_journal\' in the following view parts composing the view of object model \'sale.shop\':\n * base_sale_multichannels_view_shop_form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model\n')

  
  This problem occurs even if I have only installed the base_sale_multichannels module in preparation for the openerp6-module. The only difference is that it would appear when accessing the sale. shop module only instead of both the sale and openerp6 modules.

  I am running Ubuntu 9.10, Python 2.6, and Postgresql 8.3. and I just upgraded to the v6.01 stable release of Open ERP.
  These modules worked correctly when I was using Open ERP v 5.015.

  Any suggestions on how this can be fixed?

  Regards,
  CJ





References