field_vector

in server-tools · source on GitHub

New specialized field to store vector data

ACSONE SA/NV · LGPL-3

16.0✗Install error
17.0×Not in this series
18.0✗Install error
19.0✗Install error
20.0×Not in this series
SeriesStatusDetailsCode
16.0✗Install errorSQL error while installing · run 2026-08-26on GitHub
17.0—Not testedno branch
18.0✗Install errorSQL error while installing · run 2026-08-26on GitHub
19.0✗Install errorSQL error while installing · run 2026-08-26on GitHub
20.0—Not testedno branch

Odoo 20.0 dev — development line

A different statement from the table above. There: the module as published, on a released platform. Here: the module’s code with its manifest version mechanically raised, on a platform that has not been released and changes daily.

StatusDetails
✗failsSQL error while installing · failed in a file of this module: field_vector/hooks.py · version 19.0.1.0.0 → 19.5.1.0.0, code unchanged · run 2026-09-10 · odoo 19.5 · modidx/odoo:master-deps-20260910

Log excerpt, 20.0 dev

DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.

2026-09-10 19:24:05,321 1 WARNING job_ec23ab4d87aa odoo.modules.loading: Transient module states were reset
2026-09-10 19:24:05,322 1 ERROR job_ec23ab4d87aa odoo.registry: Failed to load registry
2026-09-10 19:24:05,322 1 CRITICAL job_ec23ab4d87aa odoo.service.server: Failed to initialize database `job_ec23ab4d87aa`.
Traceback (most recent call last):
  File "/mnt/pool/field_vector/hooks.py", line 24, in pre_init_hook
    cr.execute(
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 418, in execute
    self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1559, in preload_registries
    registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 67, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 222, in new
    contextvars.Context().run(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 446, in load_modules
    load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 179, in load_module_graph
    getattr(py_module, pre_init)(env)
  File "/mnt/pool/field_vector/hooks.py", line 30, in pre_init_hook
    raise MissingError(
odoo.exceptions.MissingError: Error, can not automatically initialize vector support. Database user may have to be superuser and pgvector extensions  to be installed. If you do not want Odoo to connect with a super user you can manually prepare your database. To dothis, open a client to your database using a super user and run:
CREATE EXTENSION vector;

2026-09-10 19:24:05,327 1 INFO job_ec23ab4d87aa odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-10 19:24:05,327 1 INFO job_ec23ab4d87aa odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 19:24:05,327 1 INFO job_ec23ab4d87aa odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-10 19:24:05,429 1 INFO job_ec23ab4d87aa odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connections

Provenance: __manifest__.py sha256 ebac33192782f070… · tree of 22 files without the manifest, sha256 7882c8269c5cc91a…

This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version

Odoo 20.0 — the branch itself

The same frozen code, run again against the real 20.0 branch. The run above used Odoo’s development line before the branch was cut; this one used the branch, pinned to one commit.

StatusDetails
✗failsSQL error while installing · failed in a file of this module: field_vector/hooks.py · version 19.0.1.0.0 → 20.0.1.0.0, code unchanged · run 2026-09-18 · odoo 20.0 · modidx/odoo:20.0-deps-20260918

Log excerpt, 20.0 dev

DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.

2026-09-18 16:47:46,351 1 WARNING job_c68d1352d3b3 odoo.modules.loading: Transient module states were reset
2026-09-18 16:47:46,353 1 ERROR job_c68d1352d3b3 odoo.registry: Failed to load registry
2026-09-18 16:47:46,353 1 CRITICAL job_c68d1352d3b3 odoo.service.server: Failed to initialize database `job_c68d1352d3b3`.
Traceback (most recent call last):
  File "/mnt/pool/field_vector/hooks.py", line 24, in pre_init_hook
    cr.execute(
  File "/opt/odoo/odoo/sql_db.py", line 418, in execute
    self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo/odoo/service/server.py", line 1520, in preload_registries
    registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/odoo/odoo/tools/func.py", line 67, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/odoo/odoo/orm/registry.py", line 222, in new
    contextvars.Context().run(
  File "/opt/odoo/odoo/modules/loading.py", line 449, in load_modules
    load_module_graph(
  File "/opt/odoo/odoo/modules/loading.py", line 179, in load_module_graph
    getattr(py_module, pre_init)(env)
  File "/mnt/pool/field_vector/hooks.py", line 30, in pre_init_hook
    raise MissingError(
odoo.exceptions.MissingError: Error, can not automatically initialize vector support. Database user may have to be superuser and pgvector extensions  to be installed. If you do not want Odoo to connect with a super user you can manually prepare your database. To dothis, open a client to your database using a super user and run:
CREATE EXTENSION vector;

2026-09-18 16:47:46,359 1 INFO job_c68d1352d3b3 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-18 16:47:46,359 1 INFO job_c68d1352d3b3 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-18 16:47:46,359 1 INFO job_c68d1352d3b3 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-18 16:47:46,463 1 INFO job_c68d1352d3b3 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connections

Provenance: __manifest__.py sha256 ebac33192782f070… · tree of 22 files without the manifest, sha256 7882c8269c5cc91a…

This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version

The module’s code on 19.0

Lines of codepython 522 · xml 0
Testsyes: 1 file(s), 152 lines
Migration scriptsno
Models1 new · 1 extensions
Raw SQL9 × cr.execute

Lines are physical, blanks and comments included, as wc -l. Tests are test_*.py files under tests/. Models are lines holding _name = and _inherit =. These are facts about the code, not a judgement: more lines is neither better nor worse. Measured 2026-08-28 on tree 8fa3ea3f6399.

The apps.odoo.com catalogue has a listing under the same technical name on 16.0, 18.0, 19.0: apps.odoo.com/apps/modules/19.0/field_vector. A matching name does not prove matching code — how we counted this.

Depends on

ModuleStatusChecked
basecoreships with Odoo

External dependencies

Checked against modidx/odoo:19.0-deps-20260922.

KindPackageIn our image
pythonnumpyin image

History

Last change2026-01-21
Code commits, 12 months4
Most activeHai Lang, Laurent Mignon (ACSONE)
Files23

Translation and bot commits are excluded from the commit count.

Install log 19.0

DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.
 
2026-08-26 19:34:33,093 1 WARNING job_d493c6428c47 odoo.modules.loading: Transient module states were reset 
2026-08-26 19:34:33,093 1 ERROR job_d493c6428c47 odoo.registry: Failed to load registry 
2026-08-26 19:34:33,093 1 CRITICAL job_d493c6428c47 odoo.service.server: Failed to initialize database `job_d493c6428c47`. 
Traceback (most recent call last):
  File "/mnt/pool/field_vector/hooks.py", line 24, in pre_init_hook
    cr.execute(
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 440, in execute
    self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1585, in preload_registries
    registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 88, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 189, in new
    load_modules(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 464, in load_modules
    load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 185, in load_module_graph
    getattr(py_module, pre_init)(env)
  File "/mnt/pool/field_vector/hooks.py", line 30, in pre_init_hook
    raise MissingError(
odoo.exceptions.MissingError: Error, can not automatically initialize vector support. Database user may have to be superuser and pgvector extensions  to be installed. If you do not want Odoo to connect with a super user you can manually prepare your database. To dothis, open a client to your database using a super user and run:
CREATE EXTENSION vector;

Install log 18.0

2026-08-26 19:33:42,629 1 ERROR job_f413f33c6236 odoo.sql_db: bad query: b"SELECT *, name->>'en_US' AS name FROM ir_model WHERE state = 'manual'"
ERROR: current transaction is aborted, commands ignored until end of transaction block
 
2026-08-26 19:33:42,635 1 WARNING job_f413f33c6236 odoo.modules.loading: Transient module states were reset 
2026-08-26 19:33:42,635 1 ERROR job_f413f33c6236 odoo.modules.registry: Failed to load registry 
2026-08-26 19:33:42,635 1 CRITICAL job_f413f33c6236 odoo.service.server: Failed to initialize database `job_f413f33c6236`. 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1414, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 118, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 489, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 365, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 205, in load_module_graph
    registry.setup_models(env.cr)
  File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 327, in setup_models
    env['ir.model']._add_manual_models()
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 515, in _add_manual_models
    cr.execute("SELECT *, name->>'en_US' AS name FROM ir_model WHERE state = 'manual'")
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 371, in execute
    res = self._obj.execute(query, params)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block

Install log 16.0

  File "/mnt/pool/field_vector/hooks.py", line 21, in pre_init_hook
    raise MissingError(
odoo.exceptions.MissingError: Error, can not automatically initialize vector support. Database user may have to be superuser and pgvector extensions  to be installed. If you do not want Odoo to connect with a super user you can manually prepare your database. To dothis, open a client to your database using a super user and run:
CREATE EXTENSION vector;

2026-08-26 22:10:36,428 1 CRITICAL job_d4c1e1382237 odoo.service.server: Failed to initialize database `job_d4c1e1382237`. 
Traceback (most recent call last):
  File "/mnt/pool/field_vector/hooks.py", line 15, in pre_init_hook
    cr.execute(
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 324, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.FeatureNotSupported: extension "vector" is not available
DETAIL:  Could not open extension control file "/usr/local/share/postgresql/extension/vector.control": No such file or directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1333, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 87, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 493, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 374, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 197, in load_module_graph
    getattr(py_module, pre_init)(cr)
  File "/mnt/pool/field_vector/hooks.py", line 21, in pre_init_hook
    raise MissingError(
odoo.exceptions.MissingError: Error, can not automatically initialize vector support. Database user may have to be superuser and pgvector extensions  to be installed. If you do not want Odoo to connect with a super user you can manually prepare your database. To dothis, open a client to your database using a super user and run:
CREATE EXTENSION vector;

Result looks wrong? Tell us — we will show the log or run it again. Report a wrong result

Get told when this module changes state

Data updated 2026-10-07 13:00 UTC · build 4aa2dbe · we publish the install log with a date, not a vendor rating · CSV and JSON are open

Questions or a wrong result: open an issue or hello@allservices.one

Privacy · Terms

Independent project. Not affiliated with Odoo S.A. or the Odoo Community Association.