Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How can i run Odoo 10 and Odoo 12 on same server with two python versions ?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
odooodoo10.0odoo12.0
8 Réponses
10667 Vues
Avatar
Kabeer KB

Hi,

 I am trying to run Odoo10 and Odoo12 on the same server, I did following configuration.

  1. Installed Python2.x and Python 3.x

  2. Downloaded Odoo 10 and 12

  3. And installed all dependencies

  4. Created two configuration files with two different ports

  5. And run on terminal like

    1. python <path_to_odoo_bin/./odoo-bin --conif=/etc/odoo10.conf

    2. python3 <path_to_odoo_bin/./odoo-bin --conif=/etc/odoo12.conf


    So far everything is working fine.

  6. My questions is, I need to run odoo as services like

  7.    sudo /etc/init.d/odoo10.server start

  8. and 

  9.    sudo /etc/init.d/odoo12.server start

  10. How can i tell Odoo to choose correct python version?

  11. ie, Odoo 10 = python2.x and Odoo12 = Python3.x



0
Avatar
Ignorer
Avatar
HoltRead
Meilleure réponse

First off all let me make you clear that python2 and 3 use different syntax for print In Python2 print is consider as statement so you can write initial command. but in Python3 print is consider as function so you must have to write.

 

0
Avatar
Ignorer
Kabeer KB
Auteur

I think you didn't understand my question. I would like to run Odoo 10 and 12 as services. i created two separate conf files and two services files for each version. And i started both services but only Odoo 10 is running, not Odoo12.

When i type python -V in terminal i get `Python 2.7.15rc1`. Because i think odoo 12 trying to run on python2.x instead of python3.x, How can I resolve this.

Avatar
Cayprol
Meilleure réponse

try playing with the environmental variables in your service script.

which python
which pyhon3

if python is your python2, python3 is your python3, in the service script at init.d/odoo-server

There should be something like PATH=/bin:/sbin:/usr/bin . 

Change the order of that see if that helps.

0
Avatar
Ignorer
Avatar
Tiago Magrini Rigo
Meilleure réponse
it will use the one you have on "odoo\python" folder
0
Avatar
Ignorer
Kabeer KB
Auteur

Could you explain more?

Tiago Magrini Rigo

On your odoo installation folder, there's a folder called python. Here it is where it takes python version. Another way that you can choose the version is running odoo through an IDE (like Pycharm) and configuring that.

Kabeer KB
Auteur

I do not have any python folder inside Odoo folder?

What am i missing?

Tiago Magrini Rigo

Sorry might be different on Linux, as it has native python

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
What is the use of widget="char" in odoo v12? Résolu
odoo odoo12.0
Avatar
Avatar
1
mai 22
10033
[Odoo 10] stock available in excel sale report
odoo odoo10.0
Avatar
0
nov. 20
2967
Odoo 10 | How to Override JavaScript function Résolu
odoo odoo10.0
Avatar
Avatar
1
août 18
13335
Odoo 10 | How to create a dashboard in odoo 10 Résolu
odoo odoo10.0
Avatar
Avatar
1
août 18
10411
Track a postal pacakage with Odoo 10
odoo odoo10 odoo10.0
Avatar
0
févr. 23
2394
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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