Odoo Help


Is it possible to test views in the backend?

on 2/2/15, 11:58 AM 445 views

Is it possible to write tests which test views/wizards of the backend?

The test should test whether one field is available or not. Also I want to test whether the input field contains the right value.



| 5 3 6
Jakarta, Indonesia
On 2/2/15, 7:28 PM

AFAIK, currently there is no tools to do so.  But I don't think it would be that difficult to develop.  You just need to extract the fields_view_get, specifying a specific view ID or just the view type and you'll get the arch in return, with all the Access Control List and view inheritance taken care of.  From there, you can see which fields, buttons, etc. are shown.

You need to be aware that fields_view_get may return different arch for different user ID based on the user ID's Access.

EDIT: If you activate Developer Mode, this tool is available from the Debug dropdown.

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


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)


Asked: 2/2/15, 11:58 AM
Seen: 445 times
Last updated: 3/16/15, 8:10 AM