← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680346] Re: tools.convert.xml_import:Parse error when loading module hotel

 

Hello,

Hotel module is only compatible with version 5.** , To make compatible with version 6.0 or to remove this error make change to menuitem tag as e.g.
<menuitem  id="hotel_restaurant_menu" name="Hotel Management/Restaurant" />
This producing Error.
For this just remove the '/' sign using 'parent' attribute and name="Restaurant" only , that's it.

Thanks.

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

Title:
  tools.convert.xml_import:Parse error when loading module hotel 

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  Client error

Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
    model.get_button_action(self.form.screen, id, self.attrs)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/widget/model/record.py", line 373, in get_button_action
    self.resource,attrs['name'], [id], context)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 256, in rpc_exec_auth
    return sock.exec_auth(method, *args)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 180, in exec_auth
    res = self.execute(method, self._uid, self._passwd, *args)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 221, in execute
    self.raise_exception(self.exception)
  File "/home/phongnt/Documents/Projects/openerp-trunk/client/bin/rpc.py", line 109, in raise_exception
    raise exception
tiny_socket.Myexception: ('warning -- ValidateError\n\nError occurred while validating the field(s) parent_id: Error ! You can not create recursive Menu.', 'Traceback (most recent call last):\n  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch\n    result = ExportService.getService(service_name).dispatch(method, auth, params)\n  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 586, in dispatch\n    res = fn(db, uid, *params)\n  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/osv.py", line 61, in wrapper\n    self.abortResponse(1, inst.name, \'warning\', inst.value)\n  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 70, in abortResponse\n    raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- ValidateError\n\nError occurred while validating the field(s) parent_id: Error ! You can not create recursive Menu.\n')


Server log:

[2010-11-23 09:28:18,960][dev60] INFO:init:module hotel: no quality certificate
[2010-11-23 09:28:18,961][dev60] INFO:init:module hotel: loading hotel_view.xml
[2010-11-23 09:28:19,334][dev60] INFO:init:module hotel: loading hotel_data.xml
[2010-11-23 09:28:23,481][dev60] INFO:init:module hotel: loading hotel_folio_workflow.xml
[2010-11-23 09:28:23,691][dev60] INFO:init:module hotel: loading hotel_report.xml
[2010-11-23 09:28:23,702][dev60] INFO:init:module hotel: loading hotel_wizard.xml
[2010-11-23 09:28:23,739][dev60] ERROR:tools.convert.xml_import:Parse error in /home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/hotel/hotel_wizard.xml:17:
<menuitem name="Hotel Management/Reports/Hotel Folio Report" action="wizard_hotel_total" type="wizard" id="wizard_hotel_menu" sequence="31"/>
[2010-11-23 09:28:23,742][dev60] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException







References