Skip to content

Instantly share code, notes, and snippets.

Last active November 1, 2018 13:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SalahAdDin/d30c35266229d5c3994a46b3d52321fd to your computer and use it in GitHub Desktop.
Odoo tricks

Installing extra addons:

In shell

  • copy the directory of the module in ./addons
  • give permissions chmod -R 755 addons/<module_directory>
  • restart the container

In Odoo:

  • Activate the developer mode
  • Go to Settings, then do Update Apps List
  • Go to Apps, delete Apps from search bar and search the new module

Note: Sometime one module can conflict with other, so, ensure you have a database backup to restore it in order to try again.

Support Amazon S3:

In Odoo:

  • Go to Settings -> Thecnical -> Parameters, choose System Parameters

  • Add a new System parameter as follow:

    • without encryption:
    ir_attachment.location  --->  s3://<Your-AWS-Access-Key-ID>:<Your-AWS-Secret-Key>@<Your-S3-Bucket-name>
    • with server-side encryption (only AES256, since [aws:kms is not supported in boto3 (boto/botocore#471)):
    ir_attachment.location  --->  s3://<Your-AWS-Access-Key-ID>:<Your-AWS-Secret-Key>@<Your-S3-Bucket-name>+SSE

How to:

  • Populate cities:
    Settings / Technical / Locations Management / Locations -> Create
    Settings / Technical / Locations Management / Import from Geonames -> Import from Geonames
    Required developer mode.

  • Populate sales sequences:
    Settings / Technical / Sequences
    Search sales
    Edit and set RFPO.P.%(month)s%(y)s. as prefix and 5 as sequence size (notation at bottom).

  • Incoterms:
    Sales / Settings / Sales / Shipping

  • Full Accounting Features:
    Activate developer mode.
    Users / ${username} / Application Accesses / Accounting & Finance -> Billing Manager
    Users / ${username} / Technical Settings / Show Full Accounting Features
    Refresh the system/browser.
    Invoicing / Adviser

  • Analytic Accounting for Sales:
    Activate developer mode.
    Users / ${username} / Technical Settings / Analytic Accounting for Sales
    Refresh the system/browser.

  • Setup current company's receiving and shipping behaviour:
    Inventory / Configuration / Settings/ Warehouse -> Storage Locations
    Edit Inventory / Configuration / Warehouses/ ${youwarehouse}
    Choose: Incoming Shipments -> (3 steps), Outgoing Shippings -> (Pick + Pack + Ship)

  • Setup mail server for Outgoing messages (development):
    Check General Settings / Discuss / External Email Servers
    In Outgoing Mail Servers create a new server
    SMTP Server: mailhog, SMTP Port: 1025, Debugging: checked