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 Jun 19, 2018

https://github.com/OCA/account-financial-reporting -> all
https://github.com/OCA/account-financial-tools
https://github.com/OCA/account-analytic
https://github.com/OCA/community-data-files -> base_bank_from_iban
https://github.com/OCA/currency -> currency_rate_update
https://github.com/OCA/hr -> hr_skill hr_experience
https://github.com/OCA/knowledge -> all(?)
https://github.com/OCA/manufacture -> mrp_sale_info mrp_bom_equivalent quality_control mrp_production_service
https://github.com/OCA/mis-builder -> mis_builder mis_builder_budget
https://github.com/OCA/partner-contact/ -> base_location base_location_geonames_import partner_external_map
https://github.com/OCA/product-attribute -> product_priority product_manufacturer
https://github.com/OCA/project -> project_stage_closed project_stage_state(?) project_task_add_very_high project_task_default_stage project_task_dependency project_timeline project_timeline_hr_timesheet project_timesheet_time_control project_timeline_task_dependency
https://github.com/OCA/purchase-workflow -> subcontracted_service
https://github.com/OCA/reporting-engine -> report_fillpdf report_xlsx
https://github.com/OCA/server-auth auth_signup_verify_email password_security
https://github.com/OCA/server-ux -> date_range mass_editing
https://github.com/OCA/social -> email_template_qweb mail_debrand mail_tracking
https://github.com/OCA/web -> web_responsive web_widget_color web_searchbar_full_width web_timeline web_widget_bokeh_chart web_environment_ribbon web_export_view web_favicon web_notify web_export_view

https://github.com/muk-it/muk_web -> muk_web_share
https://github.com/muk-it/muk_website.git -> muk_website_customize_gradient muk_website_scroll_up muk_website_navbar_transparent muk_website_social_buttons
https://github.com/CybroOdoo/CybroAddons -> developer_mode pivot_heat_map mrp_production_draft mrp_work_order_print import_product_image
https://github.com/JayVora-SerpentCS/SerpentCS_Contributions hr_applicant project_kanban project_task_detail_report hr_grade_rank

https://github.com/marclijour/odoo-s3 -> amazon s3
https://github.com/Openworx/backend_theme
https://github.com/OmniaGit/odooplm

@SalahAdDin
Copy link
Author

Remove app_product_type_sequence and app_stock_picking_type_group in App Odoo.

@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