Commit Graph
5506 Commits
Author SHA1 Message Date
Cédric Krier 2ccd9dec09 Include translation fuzzy in cache key of translated message
Closes #13805
2025-01-12 01:47:50 +01:00
Cédric Krier 709bebe701 Use base URL as logo link and include homepage in TOC
This way the navigation in the documentation is unified.
2025-02-09 15:19:19 +01:00
Cédric Krier c2e8d187d1 Do not fail to clean when help selection is None
Closes #13862
2025-02-09 19:51:04 +01:00
Cédric Krier 504f3013cc Disable counting in super search call of ResourceAccessMixin only when enforcing access
The search method must always return an integer when count is True.

Closes #13846
2025-01-29 11:45:42 +01:00
Cédric Krier 2337e61b71 Skip empty filename as configuration file 2025-02-08 14:35:59 +01:00
Hartmut Goebel d009490e4e Make empty environment variable TRYTOND_LOGGING_LEVEL be treated as unset 2025-02-08 14:40:10 +01:00
Hartmut Goebel 76e335d894 Make empty environment variable TRYTOND_TZ be treated as unset 2024-01-20 22:51:08 +01:00
Hartmut Goebel 5a7f24617c Make empty environment variable TRYTOND_DATABASE_URI be treated as unset 2024-01-20 22:27:07 +01:00
Hartmut Goebel 6073e22d5c Make empty environment variable DB_NAME treated as unset
Closes #12364
2025-02-08 14:08:23 +01:00
Cédric Krier b65377e89e Read only the image from the selected cache
Using the instance from the list of cache, the ORM read the image for all the
linked cache which is unnecessary.

Closes #13831
2025-01-21 18:35:56 +01:00
Cédric Krier 56768c7ecc Create translation entries for help selection values
Closes #13840
2025-01-26 17:06:46 +01:00
Cédric Krier 4713207f14 Always define translation source name
The source name may be used to translate the help selection.

Closes #13839
2025-01-26 17:01:20 +01:00
Dimitrios Josef Moustos ed0264af94 Distinct between users and database user in setup database documentation
Closes #13503
2025-02-02 12:10:09 +01:00
Cédric Krier a99a4ffff1 Fix readonly states in extend topic of module tutorial
The active field has no existing readonly states before the extension.
2025-02-02 10:10:32 +01:00
Hartmut Goebel 0dadb2a7d1 Fix typos and improve wording in modules topic documentation 2025-02-02 02:12:48 +01:00
Sergi Almacellas Abellana 5d9f370ad1 Explain how to extend field definition in tutorial 2025-02-01 23:42:51 +01:00
Cédric Krier 4852175b27 Close the SQLite connection to memory database when the database has been dropped
Instead of relying on the garbage collector to close the connection by deleting
the object, this ensures that the memory database is actually dropped before a
new connection is instantiated and keep the database.

Closes #13796
2025-01-16 09:47:25 +01:00
Cédric Krier 8da34d06d6 Create target SQLite database before copying when restoring SQLite database
Closes #13795
2025-01-05 16:15:17 +01:00
Cédric Krier ec6f30318b Remove shared memory and write-ahead log files when dropping SQLite database
Since 6837a618f53d SQLite may create such temporary files.

Closes #13794
2025-01-05 16:12:14 +01:00
Cédric Krier d4493f0a53 Ignore operational error when optimize SQLite database on connection
The 'PRAGMA optimize' command can not run on a locked database which may happen
when a nested transaction is started.

Closes #13793
2025-01-05 16:07:54 +01:00
Cédric Krier b5148a248c Allow running field binary tests with a non memory SQLite database
By setting the filestore path as a global variable, we can modify it for the
test without changing the database path where the SQLite databases are stored.

Closes #13792
2025-01-05 16:02:39 +01:00
Cédric Krier 6fb00e2bed Test context on target instance of One2One 2025-01-14 01:19:50 +01:00
Cédric Krier 5f3e83f66f Instantiate One2One target when the context of the field
Closes #13819
2025-01-14 01:19:00 +01:00
Cédric Krier 7aeee5f06e Test setting value to xxx2One fields 2025-01-14 01:08:05 +01:00
Cédric Krier f908ccc85a Expand dictionary value set to a One2One field
Closes #13818
2025-01-14 01:07:33 +01:00
Cédric Krier 590102e87e Remove python type inherited from Many2Many of One2One
The python type is used to test the type of value set but for One2One it is an
instance which can not be tested with a simple Python type.

Closes #13817
2025-01-14 01:04:46 +01:00
Cédric Krier f42f4eba6e Add super call to setUpClass in custom test case
This is needed to catch the Python warnings.
2025-01-03 23:51:00 +01:00
Cédric Krier 4ff7ca6d6e Use None as default value for module of view
Since 53fc70c2139f the module column of ir_ui_view has a foreign key constraint
on ir_module table so the default value must be NULL to ignore the constraint
when there is no module.

Closes #13816
2025-01-13 19:28:18 +01:00
Cédric Krier 77bb47a3a4 Make field_names optional in Model.default_get 2024-12-26 16:08:18 +01:00
Cédric Krier e656cccb7f Replace loading attribute by visible for loading xxx2Many fields with dotted notation
Override the loading attribute breaks the dependencies between fields.
Such xxx2Many becoming eager loading may miss some lazy loading fields which
may break the behavior like the domain inversion (which may set the wrong
value).

Closes #13452
2024-12-28 18:24:51 +01:00
Cédric Krier d1ce25bd4f Limit the worker retry delay to maximum 1 hour
Closes #13779
2024-12-26 12:47:08 +01:00
Cédric Krier 5ca8a1edf2 Restore raising KeyError when file system ID is not found
75936f10ee95 removed this behavior but some modules relies on it.
2025-01-01 20:51:44 +01:00
Cédric Krier c928c61f0e Do not initialize ir_ui_view table with model NOT NULL
Closes #13788
2025-01-01 19:15:38 +01:00
Cédric Krier 81669a33c9 Use proper BOOLEAN type in init SQL of SQLite 2025-01-01 17:39:20 +01:00
Cédric Krier 7f56ab27a7 Remove unused docstring
Since 23ce421d3bb9 the docstring's are no more used as string for the model.
2025-01-01 18:20:47 +01:00
Cédric Krier debaff1cd8 Create translation entry for model without docstring
Since 23ce421d3bb9 it is the __doc__ attribute that is used as string for the
module.
2025-01-01 18:10:12 +01:00
Cédric Krier f20c36e2a6 Test actually the translation when writing on model and field 2025-01-01 16:25:37 +01:00
Cédric Krier 2c97c87ce2 Create translation of model and field using the proper name 2025-01-01 16:24:55 +01:00
Cédric Krier 1f66be2076 Register model string translation as string field of ir.model 2025-01-01 16:22:25 +01:00
Cédric Krier ab19901d85 Fallback to plural message when index is greater than 0 2025-01-01 16:20:28 +01:00
Cédric Krier 592240fdb3 Always export the first plurals string and only consecutive plurals
To have a valid pofile we need to have all the plural form from index 0.
2025-01-01 11:50:13 +01:00
Cédric Krier fb714566f2 Add generic test for the default value of ModelStorage.copy 2024-12-03 19:06:33 +01:00
Cédric Krier 8ab7c421f2 Test that on_change_with getter use the name of the Function field 2024-12-16 18:18:48 +01:00
Cédric Krier 4454098479 Add foreign key for relation of model field
Closes #9050
2024-11-11 19:17:11 +01:00
Cédric Krier 620854a2d9 Display groups of record rules in list and form view
Closes #12000
2024-11-27 19:54:51 +01:00
Cédric Krier 2f8ce57d0b Remove required on user's menu and fallback to menu tree 2024-11-11 19:00:07 +01:00
Cédric Krier d7f89c8cba Move ir customization from res module to ir module 2024-11-10 02:14:34 +01:00
Cédric Krier ceb299a96a Setup and register ir and res modules earlier 2024-11-09 15:42:58 +01:00
Cédric Krier a82b9d35d0 Synchronize SQLite initialization SQL with PostgreSQL 2024-11-10 15:59:26 +01:00
Cédric Krier 81efba13d1 Optimize can_modify of model data
By searching only the records useful to raise error, it reduces the data read
and it can use an index.
2024-11-11 18:42:40 +01:00