Odoo Help

3

Please may I have a shortcut example?

By
Dale E. Moore
on 2/14/13, 5:16 PM 2,290 views

I can't get the shortcut tag to work. Design Elements http://doc.openerp.com/v6.0/developer/2_6_views_events/views/design_element.html (here) describes a "new" shortcut tag

New : You can now add shortcut using the shortcut tag.

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

I have been unable to get anything other than error messages, like the following messages

  1. AssertionError: Did not expect element shortcut there, line 7
  2. except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
  3. OpenERP Warning ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Please point me at, or give me an example of a shortcut in use.

The lack of answers is encouragement for me to delve into the source code.

Moore Works, Dale E. Moore
on 3/3/13, 11:57 AM
1
test
On 3/5/13, 2:21 AM

Invalid XML for View Architecture!

Yes, OpenERP Does not gives exact where is the problems but....

As below erros: OpenERP Warning ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Its mean you have done somethings wrong then rules define for view.

All view rules are define at file: server/openerp/addons/base/rng/view.rng

2
Andreas Brueckl
On 3/5/13, 4:07 AM

There is not even one official addon which uses this shortcut tag.

Also as already mentioned by Charlie Jackson, the shortcut tag is not defined in view.rng. So this tag is not supported anymore in v7.

@Andreas Brueckl; shortcut isn't in v6.1 either.

Moore Works, Dale E. Moore
on 3/5/13, 11:06 AM

Ok thank you for the information. I had never heard before of a shortcut tag :-)

Andreas Brueckl
on 3/5/13, 11:08 AM

Haha; I hadn't either until I read the documentation, then I just had to try it out... only it doesn't exist anymore.

Moore Works, Dale E. Moore
on 3/5/13, 11:20 AM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/14/13, 5:16 PM
Seen: 2290 times
Last updated: 3/16/15, 8:10 AM