Commit Graph
5523 Commits
Author SHA1 Message Date
Cédric Krier 8b8c65da84 Fill wizard state view instance with default value
Closes #13693
2024-11-20 10:34:13 +01:00
Cédric Krier efdda3a111 Restore assignation of string and integer value for Date, DateTime, Time and Timedelta fields
Closes #13873
2025-02-15 01:38:51 +01:00
Udo Spallek b245323c30 Fix typo in alt text of documentation logo
Closes #13895
2025-02-28 00:49:48 +01:00
Cédric Krier d78d99cb94 Prohibit calling convert_order on Function field
Closes #13872
2025-02-15 01:15:07 +01:00
Cédric Krier 5b39e5aad4 Fix typo in size_limits of ModelStorage.write
fd45274f2455 use a set as size_limits but it must be a dictionary.
2025-02-26 00:56:24 +01:00
Cédric Krier 58a8663a8b Remove fallback password hash checks
The fallback was added by cc5aba3b12c7 for password hash stored before 5.0.
2024-12-01 14:31:18 +01:00
Cédric Krier cac922b6ca Replace passlib by pwdlib
Closes #12936
2024-12-01 14:25:26 +01:00
Cédric Krier 9cb5d6d83a Raise HTTP exception when RPC convert request argument 2024-11-28 10:23:37 +01:00
Cédric Krier 611198f9f1 Add size limit for RPC arguments
Closes #10301
2024-11-28 09:31:43 +01:00
Cédric Krier 65d3f86149 Store the ignore search limit option of export
Closes #13601
2024-12-12 23:16:41 +01:00
Cédric Krier 2efc39346c Do not try to delete XML data without id
If the record has already been cleaned, there is no need to try to delete again.
2025-02-10 01:39:24 +01:00
Cédric Krier c91542adfb Do not retrieve current transaction to fetch model attribute
It is the transaction stored on the instance that must be used and which is set
by the context manager.
2025-01-21 18:43:23 +01:00
Cédric Krier 7a4182ad6a Do not fail to translate model field that does not exist 2025-01-29 23:23:22 +01:00
Cédric Krier a878b8055d Improve form view of model field 2025-01-29 23:22:18 +01:00
Cédric Krier 8915b6f61e Set access as readonly on model field when module is set 2025-01-29 23:20:40 +01:00
Cédric Krier 715a1a0b32 Set readonly states for foreign many2one on model field based on module
Closes #13565
2025-01-29 23:20:07 +01:00
Cédric Krier d6764027f1 Do not validate empty email in trytond-admin command
Closes #13837
2025-01-26 00:47:27 +01:00
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