Coverage for adhoc-cicd-odoo-odoo / odoo / orm / __init__.py: 100%

1 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 18:05 +0000

1"""The implementation of the ORM. 

2 

3A `Registry` object is instantiated per database, and exposes all the available 

4models for its database. The available models are determined by the modules 

5that must be loaded for the given database. 

6The `decorators` defines various method decorators. 

7The 'environments` defines `Transaction`, collecting database 

8transaction-specific data, and `Environment`, which contains specific 

9context-dependent data inside a transaction. 

10 

11The `fields` file defines the base class of fields for models. 

12After loading it, you may load scalar fields. 

13Finally, `models` provides the base classes for defining models. 

14You may now define relational fields. 

15 

16We export the needed features in various packages and developers should not 

17import directly from here. 

18""" 

19# import first for core setup 

20import odoo.init # noqa: F401