Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

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

Subscriure's

Get notified when there's activity on this post

This question has been flagged
cliv8.0rc1odoo.py shell
3 Respostes
9100 Vistes
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
Descartar
Avatar
Med Said BARA
Best Answer

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

0
Avatar
Descartar
Avatar
Mahmoud Naguib
Best Answer

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
Descartar
Avatar
john5000
Best Answer

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

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Open command line odoo.py in Windows Solved
odoo.py shell
Avatar
Avatar
Avatar
Avatar
11
de des. 23
49848
How to script the creation of a new database? Solved
database cli
Avatar
Avatar
Avatar
Avatar
Avatar
5
de febr. 24
26942
AttributeError: module 'odoo' has no attribute 'cli'
cli AttributeError
Avatar
0
d’ag. 22
9836
Add custom CLI argument
commands cli
Avatar
0
de gen. 22
3500
Is it possible to add a custom cli command in a custom module?
cli odoo10
Avatar
1
de nov. 21
5936
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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