Siwar
Siwar

Reputation: 21

A problem occurs during the creation of a database in Odoo 12

When I create a database, this problem appears: Database creation error: relation "ir_model" does not exist LINE 1: SELECT * FROM ir_model WHERE state='manual' ^

I encountered this error with Odoo 12, even though I followed the same installation steps that worked fine for Odoo 15

enter image description here

command line arguments

INFO odoo12 odoo.sql_db: ConnectionPool(used=0/count=0/max=64): Closed 1 connections to 'user=odoo12 password=xxx dbname=odoo12 host=localhost port=5432 sslmode=prefer' INFO odoo12 werkzeug: 127.0.0.1 - - [27/Feb/2024 09:22:58] "GET /web/database/selector HTTP/1.1" 200 - 13 0.010 1.595

Upvotes: 0

Views: 311

Answers (1)

Denisse Ochoa
Denisse Ochoa

Reputation: 1

You could try creating database on terminal like this:

  1. Activate your virtual enviroment
  2. Go to odoo-bin directory and execute

./odoo-bin --db_user=your_user --db_password=your_password --db_host=your_host --db_port=your_port -d new_database_name --init=base --stop-after-init

Upvotes: 0

Related Questions