Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Odoo supports Python and Javascript. When would I use one over the other?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
javascriptdevelopmentpythonoptionscustomization
2 Antwoorden
4805 Weergaven
Avatar
Community Question

What can be done with each?

Are there any best practices?

0
Avatar
Annuleer
Avatar
Ray Carnes (ray)
Beste antwoord

Odoo is a multi tiered application (presentation, logic, data).

The presentation tier is a combination of HTML5, JavaScript and CSS. 

The logic tier is exclusively written in Python.


Python

1. Back end development

  • Model Definition: Creating and managing models (tables) that define the structure of the business data.
  • Business Logic: Implementing core business logic and workflows. This includes writing methods for models, creating computed fields, and defining constraints.
  • Server Actions: Automating actions like scheduled tasks, server-side processes, and integrations with external services.
  • Custom Modules: Developing custom modules to extend or modify existing functionality.
  • ORM (Object-Relational Mapping): Interacting with the database through ORM, which simplifies database operations and ensures consistency.

2. Security and Access Control

  • Access Control Lists (ACL's): Defining access rights and record rules to control what different users can see and do within the system.
  • Security Checks: Implementing custom security checks and validation logic to protect data integrity and enforce business rules.

3. Reporting

  • Custom Reports: Generating custom reports which may involve complex queries and data manipulations.


JavaScript

1. Front end development

  • Web Interface Customization: Enhancing and customizing the user interface (UI) of applications. This includes modifying views, forms, and dashboards.
  • User Experience (UX) Improvements: Adding interactive features, improving usability, and providing a more dynamic user experience.
  • Widgets and Components: Creating custom widgets and components that users interact with directly in the interface.

2. Client-side Logic

  • Form Validations: Implementing real-time form validations and dynamic field behaviors.
  • Dynamic Data Loading: Fetching and displaying data asynchronously without refreshing the page, often using AJAX calls to interact with the back end.

3. Web Client Customization

  • Modifying Views: Customizing list views, form views, kanban views, etc., to tailor them to specific business needs.
  • QWeb Templates: Extending and modifying QWeb templates to change the presentation of data.

4. Single Page Application Development

  • Developing SPAs: Creating or customizing single-page applications that provide a seamless, app-like experience.


Integration of Python and JavaScript

1. RPC (Remote Procedure Calls): Using JavaScript to call Python methods on the server side. This allows dynamic interaction between the client and server, enabling complex features like live updates and real-time data synchronization.

2. Custom Views: Defining custom views that require both back end (Python) and front end (JavaScript) logic to handle complex business requirements. 


See also https://www.odoo.com/documentation/17.0/developer/tutorials/server_framework_101/01_architecture.html


0
Avatar
Annuleer
Avatar
NadiaEira
Beste antwoord

Thank you both. I was having the same problem and didn't know how to solve it until I read this article.


0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How can I use my only web url domain using odoo?
javascript development
Avatar
Avatar
1
sep. 25
1750
How to Load Related Many2Many Data (pos.ticket.type) into the Frontend?
javascript development
Avatar
0
jun. 25
1947
No handler found error on email validation?
javascript python
Avatar
Avatar
1
jun. 25
5048
Odoo 18 POS - Discount Button Group Permissions Not Working
javascript development
Avatar
Avatar
2
jun. 25
2091
¿Cómo puedo crear un Dashboard con KPIs y gráficos con Chart.js?
javascript development
Avatar
0
apr. 25
2016
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now