Commit Graph
4891 Commits
Author SHA1 Message Date
Nicolas Évrard 5179e6cd40 Insert multiple rows at once
Closes #12106
2023-03-02 22:43:30 +01:00
Nicolas Évrard e18d604aa8 Use IDENTITY column for table id columns 2023-03-13 17:59:29 +01:00
Nicolas Évrard eef0c3d870 Do not shadow previously defined table handler 2023-03-24 18:07:29 +01:00
Nicolas Évrard 37f2ed9e84 Update definitions of constraints only when they changed
Closes #12136
2023-03-13 17:58:27 +01:00
Nicolas Évrard 09dbef446e Do not pass class to __table_handler__ classmethod 2023-03-13 17:56:41 +01:00
Nicolas Évrard d945809d35 Update all table definitions or only those specified in arguments
Closes #12136
2023-03-13 17:55:28 +01:00
Cédric Krier 2808d7dfc2 Fix languages variable name typo in emails 2023-03-27 16:11:19 +02:00
Cédric Krier c689590c8e Clear password hash read even if there is no cache
This was introduced by 2c557f1b4882
2023-04-01 00:18:01 +02:00
Cédric Krier f40cea7507 Do not fails to clear password from cache if there is no cache
This was introduced in 7b5157206d32

Closes #12165
2023-03-30 22:36:18 +02:00
Cédric Krier 1aa9226401 Publish convert_from method
Closes #9007
2023-03-23 00:33:22 +01:00
Cédric Krier b719d8aed1 Add rstcheck 2023-03-15 16:33:19 +01:00
Cédric Krier 0f85e6d97d Use classmethod to compute state of module dependency 2023-03-16 10:02:15 +01:00
Cédric Krier 750d282999 Update module list by batch 2023-03-16 10:06:10 +01:00
Cédric Krier be8d6807ba Set login name as default email from address 2023-03-10 13:10:08 +01:00
Cédric Krier b2cd506f71 Use no breaking space to format number
Closes #5239
2023-02-23 14:14:01 +01:00
Cédric Krier 39af6a02e3 Fallback to code to format currency without symbol 2023-02-23 13:39:07 +01:00
Cédric Krier 0993aff5dc Add sort method to order like ModelStorage.search 2023-02-22 17:01:46 +01:00
Cédric Krier e97ce7c685 Set __class__ to mocked model on TranslateModel 2023-02-22 16:59:48 +01:00
Cédric Krier 9c1486a8d1 Document that no triggers are called with restore history 2023-02-20 23:06:20 +01:00
Cédric Krier 2b0dcbc3c9 Reset cache when restore history of ModelSQL
Closes #5086
2023-02-20 23:03:59 +01:00
Cédric Krier f7f597a150 Support domain method for all fields
Closes #4884
2023-02-20 17:01:40 +01:00
Cédric Krier b0e89eac00 Remove password hash also from the transaction cache
Closes #12120
2023-03-07 16:33:58 +01:00
Cédric Krier 8568e9df77 Clean translations of resources that do not exist anymore
Closes #2796
2023-02-18 19:05:26 +01:00
Cédric Krier 0d0cd7ee45 Keep all transaction caches still referenced
The LRUDict is replaced by a WeakValueDictionary to keep all used transaction
caches such as they can be cleared by ModelStorage.
But we still keep the latest cache used so they are not removed from the
WeakValueDictionary too soon when such cache has been created to be pre-filled
like in ModelSQL.search.

Closes #12119
2023-03-07 15:43:53 +01:00
Cédric Krier a5e36bc232 Do not copy password hash nor reset from user 2023-03-15 16:09:10 +01:00
Cédric Krier a76301e902 Add error message for invalid default fields in ModelStorage.copy 2023-03-15 09:50:26 +01:00
Cédric Krier 0102c650fc Ensure only existing field names are in default value of ModelStorage.copy
Closes #3535
2023-02-18 18:11:40 +01:00
Cédric Krier 251051ad61 Do not alter argument values of with_transaction decorator
Closes #12108
2023-02-26 00:20:09 +01:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Cédric Krier e47f108844 Test page name attribute is an existing field 2023-02-12 12:02:13 +01:00
Cédric Krier 45dd6f213c Support SMALLINT and REAL as backend types 2023-02-21 00:25:38 +01:00
Cédric Krier f912ec5b45 Remove BigInteger field
Closes #6792
2023-02-21 00:25:05 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Cédric Krier 4e3b817b81 Require at least version 0.12 of werkzeug
Closes #12021
2023-02-19 11:23:50 +01:00
Cédric Krier 609583221b Retry on database operation error when locking table on transaction start 2023-02-19 22:12:41 +01:00
Cédric Krier 96c0f1ec4d Rollback and clear tasks on database error in transaction of tests 2023-02-19 22:13:35 +01:00
Cédric Krier cb348ca880 Clear tasks when transaction is rollback
The tasks records are removed on rollback so there is no need to try to run
them.
2023-02-19 20:58:01 +01:00
Cédric Krier 8dc8454449 Manage transaction error in trytond-admin
Since c8771e45b861 TransactionError can be raised and is raised when creating
the ir.configuration singleton (1f462acb3b55).

Close #12087
2023-02-19 01:17:44 +01:00
Cédric Krier 1c56b9190a Test domain validation for xxx2many fields 2023-02-19 12:15:45 +01:00
Cédric Krier d5d758b59e Format value of xxx2many field with record names in Model.__names__ 2023-02-19 13:25:27 +01:00
Cédric Krier 30d2bcb2a8 Find invalid records of xxx2Many field using intersection
For xxx2Many field, the contain test is not working correctly because the
field value is a tuple of records which is never in the list of invalid
relations.

Closes #12099
2023-02-17 12:56:18 +01:00
Nicolas Évrard d6b8e9671b Set the fallback application name when connecting to postgres
Closes #12074
2023-02-20 23:22:39 +01:00
Cédric Krier de8d5477a0 Do not use One2Many with filter to get MultiValue records
The filter may prevent to find the right value.

Closes #12078
2023-02-10 16:10:08 +01:00
Cédric Krier b55fe71383 Set default attributes on Transaction __new__ method
Closes #5617
2023-02-05 00:36:58 +01:00
Nicolas Évrard c17cf5243f Keep using _database_cache if the specific cache hasn't been reset
Closes #12079
2023-02-14 13:28:36 +01:00
Cédric Krier 7843e47389 Add scroll time for calendar view 2023-01-28 10:42:58 +01:00
Cédric Krier fd3ea318a8 Allow cache size to be configured
Closes #11383
2023-01-14 20:11:32 +01:00
Cédric Krier 40db6c18a6 Test message of DomainValidationError 2023-02-07 16:44:30 +01:00
Cédric Krier 222b39c54f Fill DomainValidationError message using an invalid record
The invalid relations are the invalid records only if Target is the class.
2023-02-07 16:44:14 +01:00