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

What is wrong with my command line install of a module?

S'inscrire

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

Cette question a été signalée
cliv8.0rc1odoo.py shell
3 Réponses
9131 Vues
Avatar
Michael Watchorn

I'm writing a script to install some modules. It starts out alright, but errors out part way through. I can't figure out why this is happening.

Here's my command:

/opt/odoo/odoo-server/odoo.py -d "Dev_testDB1" --addons-path "/opt/odoo/odoo-server/addons,/opt/odoo/odoo-server/addons/custom,/opt/odoo/odoo-server/addons/downloaded" -i "stock"

which should just install the stock module. I can log in to the server and install the module through the web interface without problem. Why is the command line causing problems? (I'm running V8)

Why is it saying I "can't create a user from here"?

/opt/odoo/odoo-server/odoo.py -d "Dev_testDB1" --addons-path "/opt/odoo/odoo-server/addons,/opt/odoo/odoo-server/addons/custom,/opt/odoo/odoo-server/addons/downloaded" -i "stock"
2015-01-09 21:16:49,637 30845 INFO ? openerp: OpenERP version 8.0rc1
2015-01-09 21:16:49,638 30845 INFO ? openerp: addons paths: ['/home/teiadmin/.local/share/Odoo/addons/8.0', u'/opt/odoo/odoo-server/addons', u'/opt/odoo/odoo-server/addons/custom', u'/opt/odoo/odoo-server/addons/downloaded', '/opt/odoo/odoo-server/openerp/addons']
2015-01-09 21:16:49,638 30845 INFO ? openerp: database hostname: localhost
2015-01-09 21:16:49,638 30845 INFO ? openerp: database port: 5432
2015-01-09 21:16:49,638 30845 INFO ? openerp: database user: teiadmin
2015-01-09 21:16:49,803 30845 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2015-01-09 21:16:49,814 30845 INFO Dev_testDB1 openerp.modules.loading: loading 1 modules...
2015-01-09 21:16:50,003 30845 INFO Dev_testDB1 openerp.modules.loading: 1 modules loaded in 0.19s, 0 queries
2015-01-09 21:16:50,038 30845 INFO Dev_testDB1 openerp.modules.loading: loading 48 modules...
2015-01-09 21:16:50,137 30845 INFO Dev_testDB1 openerp.addons.report.models.report: You need wkhtmltopdf to print a pdf version of the reports.
2015-01-09 21:16:51,299 30845 INFO Dev_testDB1 openerp.modules.module: module stock: creating or updating database tables
2015-01-09 21:16:52,106 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/security/stock_security.xml
2015-01-09 21:16:53,086 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/security/ir.model.access.csv
2015-01-09 21:16:53,353 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_data.xml
2015-01-09 21:16:53,586 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_data.yml
2015-01-09 21:16:53,651 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/wizard/stock_move_view.xml
2015-01-09 21:16:53,701 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/wizard/stock_change_product_qty_view.xml
2015-01-09 21:16:53,745 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/wizard/stock_return_picking_view.xml
2015-01-09 21:16:53,839 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/wizard/make_procurement_view.xml
2015-01-09 21:16:53,870 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/wizard/orderpoint_procurement_view.xml
2015-01-09 21:16:53,924 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_incoterms.xml
2015-01-09 21:16:53,975 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_report.xml
2015-01-09 21:16:54,064 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_view.xml
2015-01-09 21:16:55,792 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_sequence.xml
2015-01-09 21:16:55,842 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/product_view.xml
2015-01-09 21:16:56,171 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/partner_view.xml
2015-01-09 21:16:56,263 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/report/report_stock_view.xml
2015-01-09 21:16:56,360 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/res_config_view.xml
2015-01-09 21:16:56,436 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/report_package_barcode.xml
2015-01-09 21:16:56,457 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/report_lot_barcode.xml
2015-01-09 21:16:56,494 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/report_location_barcode.xml
2015-01-09 21:16:56,529 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/report_stockpicking.xml
2015-01-09 21:16:56,565 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/report_stockinventory.xml
2015-01-09 21:16:56,624 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/views/stock.xml
2015-01-09 21:16:56,718 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_demo_pre.yml
2015-01-09 21:16:56,802 30845 INFO Dev_testDB1 openerp.modules.loading: loading stock/stock_demo.xml
2015-01-09 21:16:56,808 30845 CRITICAL Dev_testDB1 openerp.service.server: Failed to initialize database `Dev_testDB1`.
Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/service/server.py", line 901, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/opt/odoo/odoo-server/openerp/modules/registry.py", line 322, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo-server/openerp/modules/loading.py", line 353, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/opt/odoo/odoo-server/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/odoo/odoo-server/openerp/modules/loading.py", line 185, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/opt/odoo/odoo-server/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo/odoo-server/openerp/tools/convert.py", line 984, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo/odoo-server/openerp/tools/convert.py", line 1070, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/odoo/odoo-server/openerp/tools/convert.py", line 937, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/odoo/odoo-server/openerp/tools/convert.py", line 855, in _tag_record
    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/odoo/odoo-server/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/addons/base/ir/ir_model.py", line 1027, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/odoo/odoo-server/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/addons/auth_signup/res_users.py", line 302, in create
    user_id = super(res_users, self).create(cr, uid, values, context=context)
  File "/opt/odoo/odoo-server/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/addons/mail/res_users.py", line 75, in create
    raise openerp.exceptions.RedirectWarning(msg, action_id, _('Go to the configuration panel'))
ParseError: "You cannot create a new user from here.
 To create new user please go to configuration panel.
76
Go to the configuration panel" while parsing /opt/odoo/odoo-server/addons/stock/stock_demo.xml:5, near
<record id="base.user_demo" model="res.users">
            <field eval="[(4, ref('group_stock_user'))]" name="groups_id"/>
        </record>

 

0
Avatar
Ignorer
Avatar
Med Said BARA
Meilleure réponse

You are installing "stock" with "Demo Data", which needs to create a "user" !!!

0
Avatar
Ignorer
Avatar
Mahmoud Naguib
Meilleure réponse

You may delete or deactive the demo user in the users ... the demo user is required to install the demo data

you should recreate the demo user

0
Avatar
Ignorer
Avatar
john5000
Meilleure réponse

Check that the addons path is correct and that you're not picking up a different version of the stock module.

0
Avatar
Ignorer
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é
Open command line odoo.py in Windows Résolu
odoo.py shell
Avatar
Avatar
Avatar
Avatar
11
déc. 23
49887
How to script the creation of a new database? Résolu
database cli
Avatar
Avatar
Avatar
Avatar
Avatar
5
févr. 24
26996
AttributeError: module 'odoo' has no attribute 'cli'
cli AttributeError
Avatar
0
août 22
9895
Add custom CLI argument
commands cli
Avatar
0
janv. 22
3531
Is it possible to add a custom cli command in a custom module?
cli odoo10
Avatar
1
nov. 21
5983
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