Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
Last active November 1, 2018 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalahAdDin/d30c35266229d5c3994a46b3d52321fd to your computer and use it in GitHub Desktop.
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

@SalahAdDin
Copy link
Author

@SalahAdDin
Copy link
Author

SalahAdDin commented Jul 16, 2018

Copy files matching pattern linux: find $orig/ -type f -name '$pattern.ext' -exec cp '{}' $dir/ ';'
Example: find -type f -name '*BOM.xlsx' -exec cp '{}' /home/salahaddin/Proyectos/Works/rotafilo/BOM ';'

@SalahAdDin
Copy link
Author

SalahAdDin commented Aug 15, 2018

Good but private repo modules:
https://apps.odoo.com/apps/modules/11.0/bi_project_template/ -> Project Template
https://www.odoo.com/apps/modules/11.0/prt_report_attachment_preview/ -> Open PDF Reports and PDF Attachments in Browser
https://www.odoo.com/apps/modules/11.0/prt_email_from/ -> Email Fields Tweaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment