Skip to Content
Home Blog How To Use JS In Odoo Website
How To Use JS In Odoo Website How To Use JS In Odoo Website

How To Use JS In Odoo Website

Odoo is an ERP software that handles many business operations. It is one of the most used open-Source ERP software

Odoo provides a modular structure to handle all of your business functionalities- ranging from sales to HR to CRM. 

This also includes handling the website and customer portals. In odoo, websites are handled with different coding languages. Odoo uses XML for templates, CSS for designing, Python for handling routes, and API and JS for handling ongoing processes on the website. 

On the Odoo website, JS can be used in two ways. The first way of using JS is the basic way, which means calling the JS function in the document.ready function. The other way of using JS is by calling the JS function by Odoo way, which means inheriting public.widget class and using it.

In this blog, we will learn how to call Internal and External JS in odoo. Also, We are going to explore both ways of using JS in odoo. 


First, we will traverse through the ways of calling Internal and External. 


Internal JS:

This type of JS is to be used when we want to perform short and simple activities/processes on the website. For this, we write code directly in an XML file. We use the <script> tag for that purpose. We can also call some other JS files into the XML using this tag. Some of the examples of internal JS.

Internal JS Code Preview
Internal JS Code Preview

External JS:

This type of JS is used for big, complex JS functions. We can even use it for short and simple JS codes. However, we should mostly use external JS. This gives clarity to the code and makes it more readable. 

For this, we put JS files in our manifest file. We add it in the web.assets_frontend section which is part of the assets section. The way of adding JS changes in various odoo versions. In 14 and lower than 14 versions, we add this in the XML file in the same section whereas, in 15 and above than 15, we add this in the manifest file.

The way of adding JS files in 14 or less than 14 versions. 


External JS Code Preview - Ways of adding JS files in 14 or less than 14 versions

The way of adding JS files in 15 or above 15 versions.

External JS Code Preview - Ways of adding JS files in 15 or above 15 versions

Now we will explore the ways of writing JS code in both the classical way and the Odoo class approach. We are going to create functions so that we can easily understand and learn the way of writing JS code easily.

JS Classical Approach:

For using this approach, we have to call our Event Listener functions and other functions in a main function that should be called each and every time, so that if we create any event listener it acts as soon as possible. For this, we use document.ready function as the main function. We then call all the other functions inside of it. 

JS Classical Approach Code Preview

In the above pic, we are calling the Onclick function on a tag that has id=”blog-example”. Here, we are using JQuery, instead of old classic JS because it makes it easy to code and write as well.


If we break the above example, then $(‘CSS selector’).on(‘Event Name’, ‘call’, function(arguments or no arguments) { Here goes the JS code }). This is the analysis of the code written above.

Odoo Default Approach:

In this approach, we use web.public.widget JS file for creating document.ready type environment. We create our own new class with the help of the widget class of web.public.widget file. 

In this, we first add our base/main/root selector in which all the other selectors exist. Now, we add events in the ‘events’ dictionary, which takes the key as the combination of event and CSS selector and value as the name of the function that is connected to this event. 

Here, we are first declaring the events along with their complementary functions and later on will define those functions. 

The following are the codes for better understanding. 

Odoo Default Approach Code Preview
Odoo Default Approach Code Preview

The above code is a way of declaring events and functions according to the odoo default approach. The following is the way of defining those functions.

Odoo Default Approach Code Preview

We can use any kind of event for odoo. Some of them may have slightly different names other than JQuery one, but all will work properly. We can use JQuery operators and functions while defining a function. This gives a more flexible way of writing even complex code in a simple form.

Conclusion:

Odoo provides developers with the option of using Internal or External JS, offering more flexibility in implementing the functionality of the website. The classical approach is best suited for simple tasks whereas the Odoo default approach, with its structured event handling and inheritance, is apt for managing more complex JS functions.

Looking for Odoo expertise? Contact Kanak Infosystems for all your implementation needs. Get in touch now for more information!

Strong Integration Expertise

Modern ERP systems require seamless connectivity. Kanak specializes in integrations with payment gateways, banking reconciliation systems, eCommerce marketplaces, logistics APIs, HRMS & biometric devices, and CRM and communication tools.

Standard-First ERP Philosophy

One major reason businesses prefer Kanak is its "standard-first" implementation approach. Instead of over-customizing Odoo unnecessarily, Kanak focuses on upgrade-friendly implementations, lower technical debt, better system performance, faster deployment cycles, and long-term scalability.

Global ERP Experience

Kanak serves clients across USA, Middle East, Europe, Australia, Singapore, Malaysia, and 50+ countries - enabling them to handle multi-company setups, multi-currency operations, localization & compliance, and cross-border business workflows.

Best for: Any business requiring deep customization, complex integrations, industry-specific Odoo expertise, or a long-term ERP partner with proven global experience.

Banibro IT Solutions ​
Official Odoo PartnerChennai BasedSME Focused

Banibro IT Solutions is known for its structured implementation methodology and business-focused ERP consulting approach. The company focuses on requirement analysis, workflow optimization, ROI-driven ERP planning, and seamless user adoption for SMEs and growing enterprises. 

Key Strengths
  • Business-centric consulting approach
  • ERP process alignment
  • Odoo customization for SMEs
  • Third-party integrations
  • Long-term support services

Best for: Small to mid-sized businesses in South India looking for practical and cost-effective Odoo implementations.

Serpent Consulting Services
Odoo Gold PartnerAhmedabad Based 10+ Years

Serpent Consulting Services has maintained a strong presence within the Odoo ecosystem for many years. The company specializes in Odoo consultation, migration services, custom development, integration support, and mid-sized enterprise deployments.

Key Strengths
  • Stable and structured implementation methodology
  • Strong upgrade compatibility focus
  • Long-term ERP maintainability
  • Reliable technical consulting

Best for: Mid-market companies needing structured Odoo consulting with long-term upgrade planning.

BrowseInfo
Odoo Best Partner India 20241200+ App Store Apps Ahmedabad Based

BrowseInfo is recognized for handling complex Odoo customization projects and enterprise-grade ERP deployments. The company works with businesses requiring multi-location operations, complex approval workflows, enterprise automation, and high-volume ERP environments.

Key Strengths
  • Large-scale implementation capabilities
  • Enterprise workflow customization
  • Odoo performance optimization
  • Scalable architecture support
  • Largest App Store module volume

Best for: Healthcare, retail, and businesses needing quick module deployment from the App Store.

Cybrosys Technologies
Official Odoo Partner​Kerala BasedTechnical Specialists

Cybrosys Technologies is widely known for its strong technical capabilities in the Odoo ecosystem. The company has extensive experience in module development, Odoo migrations, backend customization, technical optimization, and performance enhancement.

Key Strengths
  • Strong engineering and development capabilities
  • Odoo app and module development
  • Technical troubleshooting expertise
  • Version migration experience

Best for: Businesses needing heavy backend customization, complex module development, or technically intensive implementations.

Side-by-Side Comparison

Side by Side Comparison- Odoo Partners

How to Choose the Right Odoo Implementation Partner

Choosing the right Odoo consulting company is one of the most important decisions for ERP success. Here are the key factors every business should evaluate before signing a contract:


Odoo Experience

Choose a partner with proven implementation experience and long-term Odoo expertise. Look for 10+ years minimum for complex projects.


Industry Understanding

Industry-specific experience reduces implementation time and improves process alignment. Ask for case studies in your exact sector.


Certified Odoo Experts

Certified functional consultants and developers ensure better implementation quality. Ask how many team members hold current Odoo certifications.



Structured Methodology

A reliable partner provides requirement gathering, gap analysis, milestone planning, UAT, training, and go-live support as standard.


Integration Capabilities

Modern ERP needs connections with banking systems, logistics providers, HRMS, payment gateways, and eCommerce. Ask for live demos of past integrations.


Post-Go-Live Support

ERP implementation is not a one-time project. Get SLA response times in writing. Ask about AMC pricing and how version upgrades are handled.



Upgrade-Friendly Development

Excessive customization blocks future Odoo version upgrades. Good partners follow a standard-first approach — customizing only where it creates genuine value.


Scalability

Your ERP should grow with your business. Choose a partner who can support future module expansions, upgrades, and process improvements over 5–10 years.


⚠ Red flag: Any partner who gives a fixed-price quote without a discovery or requirements phase is underscoping your project. This almost always leads to scope creep, delays, and budget overruns. A serious partner insists on a requirements phase before quoting.

Odoo Community vs Enterprise — What's the Difference?

One of the most common questions businesses ask when evaluating Odoo is: What is the difference between Odoo Community and Odoo Enterprise?

Odoo Community vs Odoo Enterprise

For businesses planning long-term ERP scalability, Odoo Enterprise is usually the preferred choice. The added cost is offset by official support, automatic upgrades, and significantly more powerful modules.

How Much Does Odoo Implementation Cost in India?

Odoo implementation cost in India depends on multiple factors including number of users, modules required, customization complexity, integrations, data migration, industry workflows, and training requirements.

Average Odoo Implementation Cost

Partner hourly rates in India typically range from ₹1,500 to ₹4,500 per hour depending on seniority and firm. Budget an additional 10–20% contingency for data cleanup and integration complexity. Note: Odoo Enterprise license costs (approximately ₹2,000–4,000 per user per month) are separate from implementation fees.

⚠ Important: Businesses should focus on implementation quality and long-term ROI — not just the lowest upfront pricing. A cheaper implementation that fails costs significantly more than a quality one done right the first time.

How Long Does Odoo Implementation Take?

Average Odoo Implementation Timeline

Timeline depends on customization level, data migration complexity, user training, integration requirements, and internal approvals. An experienced Odoo partner significantly reduces delays and implementation risks through structured methodology and reusable configurations.

Why India Is a Global Leader in Odoo Consulting ?

India has become one of the world's strongest destinations for Odoo consulting and ERP implementation because of:

  • Highly skilled Odoo developers and consultants — India produces more Odoo-certified professionals than almost any other country
  • Competitive pricing with global service quality — Indian partners deliver enterprise-grade implementations at a fraction of Western market costs
  • Global delivery experience — top Indian partners have successfully delivered ERP projects across USA, Europe, Middle East, and Asia
  • Strong offshore support models — time zone coverage allows near-24/7 support for international clients
  • Large technical talent pool — continuous pipeline of Odoo-trained engineers and functional consultants
  • Enterprise implementation expertise — experience across manufacturing, retail, healthcare, logistics, and finance industries

Final Verdict — Which Odoo Partner Should You Choose?

The best Odoo implementation partner is not simply the company with the lowest pricing or biggest team. The right partner should understand your business processes, recommend scalable ERP strategies, minimize unnecessary customization, ensure smooth user adoption, provide long-term support, and deliver measurable ROI.

For businesses looking for a highly experienced, globally trusted, and scalable ERP consulting company, Kanak Infosystems LLP remains one of the strongest choices for Odoo implementation in India in 2026 — backed by 14+ years of experience, 500+ successful implementations, and one of India's largest Odoo App Store portfolios.

Frequently Asked Questions (FAQs)

Kanak Infosystems LLP. is considered one of the leading Odoo implementation partners in India due to its 14+ years of experience, 500+ implementations, 500+ apps on the Odoo App Store, global presence across 50+ countries, and a 95% client retention rate. Active since the TinyERP era, Kanak is among India's earliest Odoo partners.

Odoo implementation cost in India typically ranges from ₹3 lakh to ₹30 lakh+ depending on business size, modules, customization, and integrations. Small businesses (5–15 users) can expect ₹3–8 lakh. Mid-sized companies typically spend ₹10–25 lakh. Large enterprises may need ₹30 lakh or more. Odoo Enterprise license costs (approximately ₹1,000–2,000/user/month) are separate from implementation fees.

Basic implementations take 4–8 weeks. Mid-sized ERP deployments take 2–5 months. Enterprise-level implementations take 6–12 months. An experienced partner significantly reduces delays through structured methodology and reusable configurations.

Odoo Community is free and open-source with basic ERP functionality and community support. Odoo Enterprise is a paid subscription that includes advanced modules, official Odoo support, mobile app support, better UI/UX, Studio customization tools, and advanced accounting and reporting. For businesses planning long-term scalability, Odoo Enterprise is usually the preferred choice.

Evaluate: years of Odoo-specific experience, number of completed implementations, industry expertise relevant to your sector, certified developers, App Store contributions, client references in your industry, post-go-live support SLA, and customization philosophy. Good partners follow a standard-first approach to keep systems upgrade-friendly.

Yes. Odoo offers strong manufacturing capabilities including MRP, production planning, quality management, inventory tracking, barcode integration, and maintenance management. Kanak Infosystems has implemented Odoo for dozens of manufacturing companies across India and internationally.

Yes. Odoo is highly modular and scalable, making it suitable for startups, SMEs, and enterprises alike. Small businesses can start with just 1–2 apps and add more as they grow. With the right implementation partner, small businesses can go live in 4–6 weeks.

Businesses globally prefer Indian Odoo consulting companies because they offer highly skilled developers, competitive pricing with global service quality, extensive international ERP experience, strong offshore support models, and deep expertise across manufacturing, retail, healthcare, logistics, and finance industries.

Leave a Comment

Your email address will not be published.

Submit
Your comment is under review by our moderation team.