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

Making our first simple change


You have to start somewhere. When modifying reports, the best approach is to start simple and to test each and every change as you make it. Do not expect to go in and make a dozen changes to the header and then run the report without any testing -- not until you have a lot of experience.

For our change, notice that in the default internal report header in Odoo only has the company name. Let's add a bit of QWeb code to append the company phone number to the report header.

Tip

Here we can use a little shortcut, because we know that the default footer for the external report has the phone number. By editing the footer and copying the code from there, we can paste it into the internal header without having to worry about making a typo.

The actual code we will add is very simple:

    : <span t-field="company.phone"/> 

The colon is a simple separator and then we use standard QWeb syntax to specify the phone number for the company. When you are done the edited...