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

Bug #680346 reported by OpenBMS JSC
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Undecided
OpenBMS JSC

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

OpenBMS JSC (openbmsjsc)
description: updated
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

The hotel module is of extra-addons and it is only compatible with the stable version not trunk. Currently our R&D Teams are focused on the latest OpenERP version, and this issue does not seem to affect it.

Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Jitendra Sandbhor (jitendrasandbhor) wrote :

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.

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

This was fixed in https://code.launchpad.net/~phong-nguyen-thanh/openobject-addons/addons-extra-trunk-hotel/+merge/43466.
Please review and merge the code there.

BTW, how to mark if a bug is affecting branches other than addons (e.g. addons-community, addons-extra, etc).

OpenBMS JSC (openbmsjsc)
Changed in openobject-addons:
assignee: nobody → Phong Nguyen-Thanh (phong-nguyen-thanh)
status: Invalid → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.