Cédric Krier
f5e33378be
Set type declaration in column names of SQLite only on top-level query
...
Closes #12532
2024-06-30 16:25:41 +02:00
Juan Jose Pablos
fbe87b99c8
Replace link to configuration document by ref to labels
2024-07-08 19:00:26 +02:00
Cédric Krier
79901931fc
Use decompress method from gzip
2024-05-04 18:46:01 +02:00
Cédric Krier
5af12a226e
Compress RPC responses
...
Closes #13235
2024-05-04 18:43:27 +02:00
Cédric Krier
f0b1c9d590
Align label in the middle of image
2024-06-25 12:28:11 +02:00
Cédric Krier
575d1d0132
Change _changed_values and _save_values properties to method
...
Closes #13317
2024-06-09 19:54:52 +02:00
Cédric Krier
95f9a21426
Add default timeout to read and export_data RPC entries
...
Closes #13218
2024-04-26 12:30:49 +02:00
Cédric Krier
bd9be5aace
Add transaction timeout to export data route
...
Closes #13217
2024-04-26 12:30:11 +02:00
Cédric Krier
b47072feb8
Add timeout option to with_transaction wrapper
2024-04-26 12:29:34 +02:00
Cédric Krier
5fa6e8533b
Add missing documentation of ExtensionTestCase
2024-06-09 12:45:58 +02:00
Cédric Krier
36f3adca1e
Add TestCase to filter warnings with TEST_PYTHONWARNINGS
2024-06-09 12:45:39 +02:00
Cédric Krier
685411cf9a
Catch and test warning for using an unsaved relation record
2024-06-08 17:37:35 +02:00
Cédric Krier
11ef2ba54c
Replace deprecated datetime.utcnow usage
...
Closes #12647
2024-06-15 11:01:41 +02:00
Cédric Krier
951001cd35
Remove warnings for unsupported features of SQLite table handler
...
There is no need to raise warnings as the API is called by ModelSQL and the
user has not control over it.
2024-06-08 17:21:59 +02:00
Cédric Krier
5b253450a3
Fix test_set_key of FieldDictTestCase
...
Closes #13314
2024-06-08 17:19:40 +02:00
Cédric Krier
5b17010a9f
Replace default sqlite3 adapters and converters
...
The defaults are deprecated since Python 3.12
Closes #13313
2024-06-08 17:18:03 +02:00
Cédric Krier
71c4f6e185
Add configuration for report convert command
...
Closes #13292
2024-05-31 19:35:02 +02:00
Cédric Krier
cd1c57dddf
Use UPSERT to update cache
2024-06-23 08:39:41 +02:00
Cédric Krier
c1310f677a
Add unique constraint on cache name
2024-03-30 16:13:30 +01:00
Cédric Krier
7dfd4292e9
Remove extra query that retrieve cache timestamp twice
2024-03-30 16:09:07 +01:00
Cédric Krier
c028397262
Try to update next call of skipped cron tasks
2024-05-08 10:07:09 +02:00
Cédric Krier
a84cb45141
Compute next call of cron task using actual now
...
If the cron task took more time then the repeating delay, it is not useful to
reschedule it in the past.
2024-04-03 16:30:46 +02:00
Cédric Krier
339ee1867d
Use process pool to run cron
...
Closes #13053
2024-04-03 16:28:22 +02:00
Cédric Krier
f9b50f16bf
Lock only running cron record
...
A single transaction is used to lock, run and update the cron record.
Only the cron run is locked so other cron processes could run other cron
tasks.
When fixing transaction, we ensure that the same cron record is selected again
otherwise we restart with an empty transaction setup the selection process.
If a cron record fails to execute, it is ignored from the selection for this
run.
The run stops once there is no cron record that can be selected.
Closes #13158
2024-05-07 19:44:35 +02:00
Cédric Krier
3369d98de2
Add option to skip tests that require network
2024-05-20 12:20:00 +02:00
Cédric Krier
822e716070
Add language support per field in export data
...
Closes #13266
2024-05-19 19:58:16 +02:00
Cédric Krier
e98b1f2559
Add translated descriptor for Char and Text fields
2024-05-18 19:06:00 +02:00
Cédric Krier
7e0caccd67
Include row and column in error message when importing data
2024-05-27 16:24:47 +02:00
Cédric Krier
922925c151
Remove support for :id suffix in import data
...
Closes #13189
2024-05-27 16:25:33 +02:00
Cédric Krier
db97bdca70
Raise user error when import data with wrong number of columns
2024-05-27 14:54:03 +02:00
Nicolas Évrard
30eb297753
Use move_to_end to update key recency of memory cache
...
This is faster than popping and setting the item.
2024-06-19 00:40:38 +02:00
Cédric Krier
09976345fe
Convert image in RGBA to add background using alpha composite
...
Closes #13316
2024-06-09 01:49:57 +02:00
Cédric Krier
347a816156
Do not include WHERE clause to constraint if it is None
...
Closes #13315
2024-06-09 01:45:21 +02:00
Cédric Krier
bec3fff190
Handle invalid email in trytond-admin command
...
The email value is validated by the command line parser.
And the interactive input loop until a valid email is entered.
Closes #13294
2024-06-02 11:38:06 +02:00
Cédric Krier
d011e4149e
Add export translations option to trytond-admin
...
Closes #13231
2024-05-01 20:08:15 +02:00
Cédric Krier
6f349d7e7f
Do not test file exists when opening it
...
The file_open tools may be used to create a file so it may not yet exist.
Also io.open will raise the proper exception if the file can not be open.
Closes #13230
2024-05-01 20:03:17 +02:00
Cédric Krier
928ca1dae1
Use empty string as fallback value for module path
...
The module path is used later to join path so it must be a string.
Closes #13229
2024-05-01 19:59:17 +02:00
Cédric Krier
be9cc4daee
Test importing translated data
2024-05-22 18:08:12 +02:00
Cédric Krier
a976b965d8
Do not convert to False when importing translated translated which is empty
...
Closes #13276
2024-05-22 18:07:32 +02:00
Cédric Krier
bffc2c6ac5
Add test case for email tools
2024-06-07 09:56:33 +02:00
Cédric Krier
2f26c7c067
Allow formatting non ASCII email address
...
Closes #13241
2024-05-07 16:57:59 +02:00
Cédric Krier
5f934d2f30
Fallback to normalized email if there is no ascii available
...
Closes #13241
2024-05-07 16:56:51 +02:00
Cédric Krier
b3fd5364dc
Document that _rec_name must point to a Char field
2024-05-22 15:33:55 +02:00
Cédric Krier
525dd32ffb
Test every kind of getter of Function field
2024-05-20 23:17:20 +02:00
Cédric Krier
530f6cbf7f
Return proper dictionary structure for instance getter with names
...
Closes #13136
2024-05-20 23:16:39 +02:00
Cédric Krier
25d0cb7787
Do not commit readonly transaction even with channel
...
Even if the backend allows NOTIFY query on readonly transaction, it is strange
to commit readonly transaction because the backend may not enforce the
readonly.
Also commit performs other actions that may not be wanted like commit
datamanager or clear cache.
A procedure that requires to perform a NOTIFY should have a non-readonly
transaction.
Closes #12542
2024-05-23 14:22:42 +02:00
Cédric Krier
f0f2294d2c
Use a readonly transaction to load module without update
...
Closes #12542
2024-05-23 14:18:51 +02:00
Nicolas Évrard
0cd6aaf298
Sort X2M fields according to the order
...
Since 40615f3e3e8e .browse calls have been replaced by a .read one but .read
does not respect the order of the ids.
Closes #13288
2024-05-30 19:30:14 +02:00
Adrià Tarroja Caubet
d590139f93
Update TinyMCE to version 7
...
Closes #8683
2024-05-07 00:29:45 +02:00
Cédric Krier
af50a2fd64
Insert new modules in ir_module table before registration
...
The ir.model* Models have foreign key constraint for the module column.
Closes #13244
2024-05-10 23:45:00 +02:00