Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
Last active November 1, 2018 13:15
Show Gist options
  • 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