Home » Blog » How to Customize Your Odoo Instance

How to Customize Your Odoo Instance

by Salman Chawhan
0 comments

Odoo is a suite of powerful open-source business apps that cover various functionalities such as CRM, eCommerce, Warehouse Management, Accounting, and more. While Odoo offers a robust platform for businesses, many companies prefer to debrand Odoo to replace its default branding with their own, providing a fully customized experience for their users.

In this guide, we will walk you through the steps for Odoo debranding, from editing the Point of Sale (POS) bill and page titles to removing “Powered by Odoo” and other Odoo branding elements.

1. Odoo File Paths for Debranding

To begin the debranding process, locate your Odoo installation:

  • For server installations, navigate to:

     
    /usr/lib/python2.7/site-packages/odoo/addons
  • For local installations (on Windows):

     
    C:/Program Files/odoo 10.0/server/odoo/addons

Once you’re inside the addons folder, you’ll have access to various components of Odoo for debranding.

2. Customizing the POS Bill

If you want to customize the Point of Sale (POS) bill, locate and edit the following file:

addons/point_of_sale/static/src/xml

Within the XML, look for the following code block:

<t t-name="PosTicket"> <div class="pos-sale-ticket"> <img width="170" hspace="70" src="/point_of_sale/static/src/img/image_name.png"/> <div class="pos-center-align"> <t t-esc="moment().format('L LT')"/> <t t-esc="order.name"/> </div> <br/> User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/> <br/> Shop: <t t-esc="widget.pos.shop.name"/> <br/> Table: <t t-esc="widget.pos.table.name"/> <br/> Customer: <t t-esc="order.changed.client.name"/> <br/> </div> </t>

Replace the placeholders, such as the logo image (image_name.png) and text details, with your company’s details.

3. Editing Page Titles

To change the page titles across the Odoo interface, edit the following JavaScript file:

addons/web/static/src/js/abstract_web_client.js

Locate the following block of code and modify it to update the title:

init: function(parent) { this.client_options = {}; this._super(parent); this.set('title_part', {"zopenerp": "Your Company Name"}); }

Replace "Your Company Name" with the name of your company or the desired title.

4. Changing the Company Logo

You can replace the default Odoo logo with your company logo by updating the following file:

addons/base/res/res_company_view.png

Simply replace this file with your company’s .png or .svg logo.

5. Removing “Powered by Odoo” Branding

To remove “Powered by Odoo” from the login and footer, edit the web.login_layout view by commenting out the following lines:

<!-- <span class="oe_footer_separator"> | </span> --> <!-- <a href="https://www.odoo.com" target="_blank">Powered by <span>Odoo</span></a> -->

Additionally, edit the web.menu_secondary view and comment out the “Powered by Odoo” line:

<!-- Powered by <a href="http://www.openerp.com" target="_blank"><span>Odoo</span></a> -->

6. Removing “Odoo Support” User for Instant Messaging

To remove the “Odoo Support” user that appears in the instant messaging feature, follow these steps:

  1. Go to Settings > Local Modules.
  2. Uninstall the Odoo Live Support module (im_odoo_support).

7. Removing Odoo Announcements

To disable the top bar that shows Odoo announcements, empty the openerp_announcement function in the following file:

addons/mail/static/src/js/announcement.js

Modify it as follows to prevent announcements from displaying:

openerp_announcement: function () { // Empty function }

8. Hiding the “My Odoo.com Account” and “Help” Menu Items

To remove the “My Odoo.com Account” and “Help” menu items, edit the following XML file:

addons/web/static/src/xml/base.xml

Comment out the lines that refer to these menu items to remove them from the interface.

9. Editing Email Templates

You can customize email templates in Odoo by editing the following file:

addons/auth_signup/data/auth_signup_data.xml

Modify the email templates to remove Odoo branding and insert your company’s details instead.

10. Database Manager and Security

To enhance security, it’s recommended to disable access to the “Database Manager” link on the login page. You can achieve this by:

  1. Editing the config file to hide the “Database Manager” link.
  2. Modifying the URL to the database manager in the addons/web/controllers/main.py file.

You may also like

Leave a Comment

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00