Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

custom menu items don't appear, even if they are read, and after editing in admin, they give an error.

By
Adrian
on 10/20/13, 2:23 PM 1,716 views

I created a Custom module, and added views with menuitems.

for some reason recently it started to to add them to the openerp, but they not appearing in the view itself!

I can see them under the setting/technical/User Interface/Menu Items.

but when i try to edit them and save them it gives the following error:

Client Traceback (most recent call last):


 File "/opt/openerp/web/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/web/addons/web/controllers/main.py", line 1128, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/openerp/web/addons/web/controllers/main.py", line 1120, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/web/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/opt/openerp/web/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/web/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/openerp/web/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_menu.py", line 168, in write
    return super(ir_ui_menu, self).write(*args, **kwargs)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4229, in write
    distance = pright - pleft + 1
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

I have no idea what this is, can someone help me? here is my view:
http://pastebin.com/UvEEYmta

0
Roel Adriaans
On 10/21/13, 5:49 AM

You have an error on line 1507:

       -<record id="ng_worksheet_invoice_form" model="ir.ui.view">

Remove the extra -.

thanks for that, but sadly, its not the answer to my problem....I still have that error...

Adrian
on 10/21/13, 6:48 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 10/20/13, 2:23 PM
Seen: 1716 times
Last updated: 3/16/15, 8:10 AM