Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Odoo Development Cookbook

You're reading from   Odoo Development Cookbook Build effective applications by applying Odoo development best practices

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781785883644
Length 400 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Holger Brunn Holger Brunn
Author Profile Icon Holger Brunn
Holger Brunn
Alexandre Fayolle Alexandre Fayolle
Author Profile Icon Alexandre Fayolle
Alexandre Fayolle
Daniel Reis Daniel Reis
Author Profile Icon Daniel Reis
Daniel Reis
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Installing the Odoo Development Environment FREE CHAPTER 2. Managing Odoo Server Instances 3. Creating Odoo Modules 4. Application Models 5. Basic Server Side Development 6. Advanced Server Side Development Techniques 7. Debugging and Automated Testing 8. Backend Views 9. Module Data 10. Access Security 11. Internationalization 12. Automation and Workflows 13. Web Server Development 14. CMS Website Development 15. Web Client Development 16. Server Deployment Index

Activating the Odoo developer tools

When using Odoo as a developer, you need to know how to activate Developer Mode in the web interface to access the advanced settings menu and developer information.

How to do it...

To activate Developer Mode in the web interface:

  1. Connect to your instance and authenticate (not necessarily as admin; this function is available to all users, but the Administrator has more tools available).
  2. Click on the down arrow next to your user name in the top right corner of the page .
    How to do it...
  3. In the drop-down menu, click on About.
  4. In the dialog box which is displayed, click on Activate the developer mode in the top right corner.
    How to do it...

    Note

    It is also possible to activate the developer mode by editing the URL: before the # sign, insert ?debug=. For instance, if you are starting from: http://localhost:8069/web#menu_id=102&action=94, then you need to change this to: http://localhost:8069/web?debug=#menu_id=102&action=94.

  5. To exit developer mode, you can edit the URL and remove that string, close your browser tab and open a new one, or use the Leave Debug Mode option at the bottom of the debug drop-down menu next to the user menu in the top right of the screen.

    How to do it...

How it works...

When in developer mode, three things happen:

  • The JavaScript and CSS code sent to the browser is not minified, which means that the web development tools of your browser are easy to use for debugging the JavaScript code (more on this in Chapter 15, Web Client Development).
  • You get tooltips when hovering over a field in a form view or over a column in list view providing technical information about the field (internal name, type, and so on).
  • A drop-down menu with a Bug icon is displayed next to the user's menu in the top right corner giving access to technical information about the model being displayed, the various related view definitions, the workflow, custom filter management, and so on.

Note

Caution!

Test your addons both with and without developer mode, as the unminified versions of the JavaScript libraries can hide bugs which only bite you in the minified version.

You have been reading a chapter from
Odoo Development Cookbook
Published in: Apr 2016
Publisher: Packt
ISBN-13: 9781785883644
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image