Book Image

Working with Odoo 10 - Second Edition

Book Image

Working with Odoo 10 - Second Edition

Overview of this book

Para 1: Take full advantage of the benefits of the Odoo module ecosystem whilst learning how to modernise your business with Working with Odoo 10. Covering everything from Odoo development essentials through to CRM and analytic accounting, this guide is a must-have for Odoo beginners. Para 2: A powerful set of open source enterprise management applications, Odoo 10 gives you access to a website builder, integrated e-commerce features, and a fast-growing community to allow you to transform your business. Para 3: With this Odoo book you?ll learn how to set up Odoo online, configure basic company settings, and then explore CRM in Odoo. You?ll cover all the Odoo development essentials and much more, including purchasing application, ERP systems, analytic accounting, and other recent Odoo features. Para 4: What?s Inside ? Understand Odoo installation & the basics of implementing Odoo in your business ? Explore accounting & finance setup and modules to help business efficiency ? Build a website with Odoo ? Customise and configure Odoo to an advanced level
Table of Contents (25 chapters)
Working with Odoo 10 Second Edition
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Learning more about the power of QWeb templates


Now that we have learned to make that small change, let's look a little closer at how Odoo is able to use the exact same template for both the quotation and the sales order. In fact you may have already figured out how Odoo does this from looking a little bit around the code we just modified.

One of the best things you can do to learn how to modify reports is looking at existing reports within Odoo and seeing how they accomplish what you may wish to accomplish. When trying to solve a problem, see if you can find another report in Odoo that is already doing something similar to what you want.

Tip

Often it can make it a lot easier to copy and paste part of template you need and then change it rather than trying to get all the <./?> syntax all straight and just right. It's easier if you are working from a reference point.

Using a t-if to create a dynamic QWeb template report

Much of the power of QWeb allows for you to conditionally show information...