Odoo 8 – Useful modules & docker

List of useful modules for Odoo 8

  • product_uom_change_fix : fix an issue when changung a product UOM
  • sale_layout: change sales layout : you can have section, sub-total…
    • by default, sections are sorted by sequence, and id.
    • if you need to sort them by create order (newest first), just modify the file “sale_layout/models/sale_layout.py”; under “class SaleLayoutCategory”, and set “_order”:
      _order = 'create_date desc, sequence, id'
  • odoo-web-print-preview: preview the pdf directly in  your browser
  • report_custom_filename: by default, in Odoo, PDF files have no a fancy filename. This module solves this issue as PDF now takes the invoice reference as filename for example. Warning: incompatible with “odoo-web-print-preview
  • account_invoice_tax_auto_update: with this module, taxes are automatically updated when an invoice/… is validated.

Docker-Compose and Odoo 8

Here is my docker-compose.yml file. Please note that I use an external folder (data) to store multiples things:

  • data/config: configuration file (openerp-server.conf)
  • data/db : database
  • data/addons: addons…
version: '2'
services:
  web:
    image: odoo:8.0
    depends_on:
      - db
    ports:
      - "8069:8069"
    volumes:
      - odoo-web-data:/var/lib/odoo
      - ./data/addons:/mnt/extra-addons
  db:
    image: postgres:latest
    environment:
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
   volumes:
      - ./data/db:/var/lib/postgresql/data/pgdata
volumes:
  odoo-web-data:

 

Leave a comment