Professional Documents
Culture Documents
Odoo 11 Development Cookbook - Second Edition: Over 120 Unique Recipes To Build Effective Enterprise and Business Applications Holger Brunn
Odoo 11 Development Cookbook - Second Edition: Over 120 Unique Recipes To Build Effective Enterprise and Business Applications Holger Brunn
https://textbookfull.com/product/qlik-sense-cookbook-
over-80-recipes-on-data-analytics-to-solve-business-intelligence-
challenges-2nd-edition-labbe/
https://textbookfull.com/product/working-with-odoo-11-configure-
manage-and-customize-your-odoo-system-greg-moss/
https://textbookfull.com/product/openstack-cloud-computing-
cookbook-over-100-practical-recipes-to-help-you-build-and-
operate-openstack-cloud-computing-storage-networking-and-
automation-bunch/
https://textbookfull.com/product/postgresql-10-administration-
cookbook-over-165-effective-recipes-for-database-management-and-
maintenance-in-postgresql-10-4th-edition-simon-riggs/
WildFly Cookbook Over 90 hands on recipes to configure
deploy and manage Java based applications using WildFly
1st Edition Fugaro Luigi
https://textbookfull.com/product/wildfly-cookbook-over-90-hands-
on-recipes-to-configure-deploy-and-manage-java-based-
applications-using-wildfly-1st-edition-fugaro-luigi/
https://textbookfull.com/product/freeswitch-1-6-cookbook-
over-45-practical-recipes-to-empower-you-with-the-latest-
freeswitch-1-6-features-second-edition-anthony-minessale-ii/
https://textbookfull.com/product/web-development-with-django-
cookbook-over-90-practical-recipes-to-help-you-create-scalable-
websites-using-the-django-1-8-framework-bendoraitis/
https://textbookfull.com/product/unity-cookbook-over-160-recipes-
to-craft-your-own-masterpiece-in-unity-2023-4th-edition-
anonymous/
https://textbookfull.com/product/healthy-halogen-cookbook-
over-150-recipes-to-help-you-eat-well-feel-good-and-stay-that-
way-flower/
Odoo 11 Development Cookbook
Second Edition
Alexandre Fayolle
Holger Brunn
BIRMINGHAM - MUMBAI
Odoo 11 Development
Cookbook Second Edition
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the authors, nor Packt
Publishing or its dealers and distributors, will be held liable for any damages caused
or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78847-181-7
>www.packtpub.com
mapt.io
I'd like to thank Daniel Reis for his work on the first edition of this
book, and Nadège Gauffre for her patience and understanding while I
was working on the Cookbook.
Preface
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Getting ready
How to do it...
How it works...
Virtual environments
PostgreSQL configuration
Git configuration
There's more…
Getting ready
How to do it...
How it works...
There's more…
Getting ready
How to do it...
Accessing the database management
interface
password
Duplicating a database
Removing a database
Backing up a database
How it works...
There's more...
How to do it...
How it works...
How to do it...
How it works...
Getting ready
How to do it...
How it works...
Getting ready
How to do it…
How it works…
There's more…
Getting ready
How to do it…
How it works…
How to do it…
How it works…
See also
Getting ready
How to do it…
Addon installation
Addon update
There's more…
Getting ready
How to do it…
How it works…
There's more…
Getting ready
How to do it…
How it works…
See also
Getting ready
How to do it…
How it works…
There's more…
3. Server Deployment
Introduction
Getting ready
How to do it...
How it works...
There's more...
Server dimensioning
PostgreSQL tuning
Backups
See also
Getting ready
How to do it...
How it works...
There's more...
Getting ready
How to do it...
How it works...
There's more...
Let's Encrypt
Getting ready
How to do it...
How it works...
There's more...
See also
Getting ready
How to do it...
How it works...
There's more...
Temporary merges
Freezing a buildout
See also
Getting ready
How to do it…
Building a Docker image
How it works…
There's more…
Introduction
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
There's more…
Getting ready
How to do it...
How it works...
Adding models
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works…
Getting ready
How to do it...
How it works...
5. Application Models
Introduction
Getting ready
How to do it...
How it works...
There's more...
Getting ready
How to do it...
How it works...
There's more...
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
There's more...
Adding a hierarchy to a Model
Getting ready
How to do it...
How it works...
There's more...
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
Getting ready
How to do it...
How it works...
There's more...
How to do it...
How it works...
Getting ready
How to do it...
How it works...
There's more...
Getting ready
How to do it...
How it works...
There's more...
another Model
Getting ready
How to do it...
How it works...
There's more...
Introduction
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.