odoo tricks

Tips and tricks for Odoo (OpenERP)

Category Archives: Uncategorized

How to change the default header/footer in Odoo 8 PDF reports

You probably already know that you can customise the default Odoo header/footer by changing the Company settings. However when you create a PDF report such as a sale, quote or invoice you will find the header/footer remains unchanged.

The issue is that Quote/Sale orders do not use the Company-level report header/footer configuration.

To edit the header and footer for Quote/Sale orders you need to edit the QWeb view. Here is how to do this:

(1) Settings > Technical > User Interface > Views
(2) Search for “external”
(3) You will see report.external_layout, report.external_layout_header and report.external_layout_footer
(4) Edit these views as appropriate to modify the PDF version of the Quote/Sales orders

Maybe this is obvious to others, but I couldn’t find any documentation explaining how this works.

Advertisements

Changing the number of decimal places for quantities in Odoo

By default Odoo displays product quantities with three decimal places. In most cases this is unnecessary. Here is how to change the number of decimal places Odoo will display for quantities:

  1. Login to Odoo as the Administrator (or a user with admin privileges)
  2. From the menu at the top of the screen click Settings
  3. In the menu on the left, under Technical Settings, click Database Structure
  4. Click Decimal Accuracy
  5. Click Product UoS
  6. Click Edit
  7. Change the number of digits as required
  8. Click Save

Installing Odoo 8 on CentOS 6 with Python 2.7

Update 28 May 2016: This tutorial has been re-tested and updated to include the latest changes. It’s confirmed working. Thank you to everyone for your contributions in the comments section. I hope you find the tutorial useful!

This tutorial will walk you through the process of installing the latest version of Odoo on CentOS 6. It is intended for those who might not be experienced Linux administrators but who want to run their own Odoo server. You can simply copy-paste the commands into your terminal or SSH window.

The tutorial is fully tested on CentOS 6.5 but should work for any 6.x version. Please see my other tutorial for CentOS 7 instructions.

Read more of this post

Installing Odoo 8 on CentOS 7 with virtual Python install

This tutorial will walk you through the process of installing the latest version of Odoo on CentOS 7. It is intended for those who might not be experienced Linux administrators but who want to run their own Odoo server. You can simply copy-paste the commands into your terminal or SSH window.

Please note this tutorial is only for CentOS 7. For CentOS 6.x please see my other tutorial.

Read more of this post

Setting up Google Apps authentication with Odoo 8

If you have Google Apps then you probably want to allow your Odoo users to login with their Google account. The good news is Odoo supports OAuth authentication which means it plays nicely with Google Apps. However setting this up can be quite tricky. In this guide I’m going to step you through the process so you can get it working first time.

Read more of this post