Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
cliv8.0rc1odoo.py shell
3 Replies
9079 Views
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
Discard
Avatar
Med Said BARA
Best Answer

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

0
Avatar
Discard
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
Discard
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
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
Open command line odoo.py in Windows Solved
odoo.py shell
Avatar
Avatar
Avatar
Avatar
11
Dec 23
49788
How to script the creation of a new database? Solved
database cli
Avatar
Avatar
Avatar
Avatar
Avatar
5
Feb 24
26913
AttributeError: module 'odoo' has no attribute 'cli'
cli AttributeError
Avatar
0
Aug 22
9796
Add custom CLI argument
commands cli
Avatar
0
Jan 22
3491
Is it possible to add a custom cli command in a custom module?
cli odoo10
Avatar
1
Nov 21
5902
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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