Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing-
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

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

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
javascriptdevelopmentpythonoptionscustomization
2 Antworten
4791 Ansichten
Avatar
Community Question

What can be done with each?

Are there any best practices?

0
Avatar
Verwerfen
Avatar
Ray Carnes (ray)
Beste Antwort

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
Verwerfen
Avatar
NadiaEira
Beste Antwort

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


0
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How can I use my only web url domain using odoo?
javascript development
Avatar
Avatar
1
Sept. 25
1722
How to Load Related Many2Many Data (pos.ticket.type) into the Frontend?
javascript development
Avatar
0
Juni 25
1938
No handler found error on email validation?
javascript python
Avatar
Avatar
1
Juni 25
5040
Odoo 18 POS - Discount Button Group Permissions Not Working
javascript development
Avatar
Avatar
2
Juni 25
2083
¿Cómo puedo crear un Dashboard con KPIs y gráficos con Chart.js?
javascript development
Avatar
0
Apr. 25
2014
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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