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

how can I use the shortcut tag in xml

By
Felipe
on 11/25/13, 4:54 PM 992 views

in the technical documentation https://doc.openerp.com/trunk/server/03_module_dev_03/#design-elements

there is a example about a shortcut tag, but without any detailed explanation of what it does

<shortcut
    name="Draft Purchase Order (Proposals)"
    model="purchase.order"
    logins="demo"
    menu="m"/>

I tried it in my code with login 'admin' and a valid menu id, but got this error

File "lxml.etree.pyx", line 3027, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:129517)
AssertionError: Did not expect element shortcut there, line 9

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: 11/25/13, 4:54 PM
Seen: 992 times
Last updated: 3/16/15, 8:10 AM