Commit Graph
5276 Commits
Author SHA1 Message Date
Cédric Krier f2cc44a1b6 Lock records on transaction start
Same as c8771e45b861 but when locking only records instead of the table.

Closes #13943
(grafted from 00790a58e6a364c46dd7178de02bd6842e6dc0c6)

--HG--
branch : 7.0
2025-03-27 13:39:04 +01:00
Cédric Krier d6716d6250 Increase version number
--HG--
branch : 7.0
2025-10-02 23:21:42 +02:00
Cédric Krier 28dfb69f15 Prepare release trytond-7.0.37
--HG--
branch : 7.0
2025-10-02 23:21:30 +02:00
Cédric Krier 8044956aaf Patch global PATH variable of filestore in test
Changing the configuration value is not enough as its value is cached in the
global variable.

Closes #14248
(grafted from 2967a503290b9b6d724a1da46b80523e75536179)

--HG--
branch : 7.0
2025-09-20 09:07:18 +02:00
Cédric Krier c446ca6d0e Restore limit when searching for searching for wizard name
20cdba7a1bf3 removed the limit but it is still needed to extract the single
record.

Closes #14238
(grafted from 303d517654fcbee0369a27e752e312bd9b722d1c)

--HG--
branch : 7.0
2025-09-18 07:48:50 +02:00
Nicolas Évrard cdc10ed0fd Get name for wizards not linked to a model
Closes #14033
(grafted from 20cdba7a1bf3738eba3d474d4d5f366a758d1010)

--HG--
branch : 7.0
2025-09-14 15:27:16 +02:00
Cédric Krier bec84ab55b Increase version number
--HG--
branch : 7.0
2025-09-15 18:06:04 +02:00
Cédric Krier 9f1ebce38e Prepare release trytond-7.0.36
--HG--
branch : 7.0
2025-09-15 18:05:53 +02:00
Cédric Krier 4242486e90 Redact sensitive values from the log
Closes #14220
(grafted from 252e508b7072b4a6f9480a5a063088cbca8280a6)

--HG--
branch : 7.0
2025-09-14 02:43:33 +02:00
Nicolas Évrard 6a3aac7351 Make sure that the search order is predictable when either the limit or the offset is set
Closes #14169
(grafted from 303c314c8c10e77c346c1ab4ee2d707d15957b15)

--HG--
branch : 7.0
2025-08-18 10:40:02 +02:00
Cédric Krier 0924b5875a Increase version number
--HG--
branch : 7.0
2025-09-03 20:26:28 +02:00
Cédric Krier b1fd4fd7aa Prepare release trytond-7.0.35
--HG--
branch : 7.0
2025-09-03 20:26:17 +02:00
Lars Wuerfel 54e74fc4d0 Correct typos in the report documentation
(grafted from c856f5fc2736eb35f286e360368e6a3dca3858a0)

--HG--
branch : 7.0
2025-07-23 10:44:12 +02:00
Cédric Krier 47ed17d152 Fix highlight syntax of board documentation
(grafted from c35b5833797f7d6342c469fdc5c99b291b98c4ac)

--HG--
branch : 7.0
2025-06-26 19:05:43 +02:00
Nicolas Évrard 8c4d0224e6 Use the canonical name of the test timezone
Closes #14170
(grafted from 38c8bbe6c090fa62530b010065565bd38700f84a)

--HG--
branch : 7.0
2025-08-18 11:35:25 +02:00
Cédric Krier 94ab53a27f Set default values for fields of button_change decorator
Closes #14120
(grafted from 8210e7db85599228bcdb65019e8cbfab6b913334)

--HG--
branch : 7.0
2025-07-15 17:37:59 +02:00
Cédric Krier 03ba00ed90 Increase version number
--HG--
branch : 7.0
2025-07-15 23:05:24 +02:00
Cédric Krier b91e057acf Prepare release trytond-7.0.34
--HG--
branch : 7.0
2025-07-15 23:05:09 +02:00
Cédric Krier f07f5f0792 Do not restore values for created records when exception is raised when saving
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.

Closes #14093
(grafted from a56b25f536568b808bc4c57b6cee03408eaf06f2)

--HG--
branch : 7.0
2025-06-29 19:13:42 +02:00
Cédric Krier 548a1dcff1 Do not set Content-Length header to data response
Since version 0.8 werkzeug set the header automatically by default.

Closes #14010
(grafted from 5d2842d92f356a260afaa974ab5a413031505e95)

--HG--
branch : 7.0
2025-06-21 23:02:52 +02:00
Cédric Krier 5919273234 Increase version number
--HG--
branch : 7.0
2025-07-01 23:16:32 +02:00
Cédric Krier 9928bdbd33 Prepare release trytond-7.0.33
--HG--
branch : 7.0
2025-07-01 23:16:21 +02:00
Cédric Krier 7e52ac5159 Convert tuple from XML ID into string before join them
9941357a9b7c modified the 'ref' method of the eval context of XML file to
return reference string but get_id return a tuple of string and integer. So the
integer must be converted to string before being joined.

Closes #14066
(grafted from 475210ef51e1963b70405ca01308068a132ee894)

--HG--
branch : 7.0
2025-06-19 09:45:55 +02:00
Cédric Krier 3f5828f015 Do not fail if the cache name to clear does not exist
Cache instance can be created on usage like in ValueMixin, so a process may not
have an instance of the cleared cache.

Closes #14067
(grafted from f87b9d37d071aba0b1eaea2c5e9d6accac06aa74)

--HG--
branch : 7.0
2025-06-12 12:48:22 +02:00
Maxime Richez 86ab2955e3 Do not check access when register button click
e6c72b1f23e7 missed to add the decorator on the register method.

Closes #14060
(grafted from f340aa45b1a86e16d494d605549aba62270622d1)

--HG--
branch : 7.0
2025-06-19 23:40:11 +02:00
Cédric Krier 1099d520d7 Do not use field definitions when exporting data
Calling Model.fields_get is expensive especially for each record to export.

Closes #14061
(grafted from f9886ab808fd8eb8a0334e6fb0e1f1839b4ddfe9)

--HG--
branch : 7.0
2025-06-10 14:29:07 +02:00
Cédric Krier b75e0dfb52 Increase version number
--HG--
branch : 7.0
2025-06-04 23:07:39 +02:00
Cédric Krier 44bd9bbdcb Prepare release trytond-7.0.32
--HG--
branch : 7.0
2025-06-04 23:07:25 +02:00
Cédric Krier 1da7d47099 Import multiselection field as CSV list
Closes #13995
(grafted from b750eb7cfb864e10a081e20ac5b3449c591cd484)

--HG--
branch : 7.0
2025-05-21 16:58:36 +02:00
Cédric Krier 9fd6831448 Export multiselection field as CSV list
Closes #13995
(grafted from 01a7bd68c8ad35b6540d67e03a824d9bb0f22e5a)

--HG--
branch : 7.0
2025-05-21 18:38:40 +02:00
Nicolas Évrard 24e99bc45b Use class access model when testing for parent access
(grafted from f2734a16eb1d28f654ffc3ae6cd45b9d2af8726e)

--HG--
branch : 7.0
2025-05-22 10:59:36 +02:00
Nicolas Évrard 4256aa8a2e Remove notification events from the queue after the wait times out
Closes #14022
(grafted from 23bbeb1772ec7d5e27876e638337d9f2d81bbf19)

--HG--
branch : 7.0
2025-05-14 12:12:54 +02:00
Cédric Krier 90e6b25804 Increase version number
--HG--
branch : 7.0
2025-05-02 22:09:56 +02:00
Cédric Krier b064123d80 Prepare release trytond-7.0.31
--HG--
branch : 7.0
2025-05-02 22:09:44 +02:00
Cédric Krier 690f3757a3 Process on a copy of imported data
The process_lines of ModelStorage.import_data pop rows when importing One2Many.
But if the transaction has to be restarted for example if a lock is needed, the
original data from the request has been altered for the second call losing some
or all the data to be imported.

Closes #13984
(grafted from 2cb96c1427d7c0edcb1c9b5b410e220db3f8958e)

--HG--
branch : 7.0
2025-04-28 10:49:34 +02:00
Cédric Krier 5432222efb Do not lock table on SQLite when checking unsupported constraint
It is not needed as SQLite does not have an explicit lock mechanism but such
call restart the transaction anyway.
(grafted from 4cc5987a3b800121007968cebb5976a5cac2384b)

--HG--
branch : 7.0
2025-04-27 17:20:45 +02:00
Cédric Krier a6c2381f57 Do not clear non unique help translation
The help translations may be composed of partitioned strings.

Closes #13978
(grafted from 0cbf346b9ea5c1c25e3c97482b3d296432e441aa)

--HG--
branch : 7.0
2025-04-23 18:32:04 +02:00
Cédric Krier ec5c26fcab Increase version number
--HG--
branch : 7.0
2025-04-26 17:10:11 +02:00
Cédric Krier 1ed664a84c Prepare release trytond-7.0.30
--HG--
branch : 7.0
2025-04-26 17:09:59 +02:00
Nicolas Évrard 63c5db6aa2 Add selection_change_with to Selection field's edition_depends
Closes #13959
(grafted from a7d89bca1f04329bf43b2ccf644eeacbe077837d)

--HG--
branch : 7.0
2025-04-03 16:33:47 +02:00
Cédric Krier 586bb4c223 Increase delay between transaction retries
Since c8771e45b861 the retry is no more a countdown but an increasing count, so
the sleep time must be adapted to also increase over retries.

Closes #13910
(grafted from ec79b27486baf92769bef216aa4e5316ac708537)

--HG--
branch : 7.0
2025-03-07 21:54:11 +01:00
Cédric Krier 9543d0f3aa Increase version number
--HG--
branch : 7.0
2025-04-03 00:39:10 +02:00
Cédric Krier cd94a6cc89 Prepare release trytond-7.0.29
--HG--
branch : 7.0
2025-04-03 00:38:59 +02:00
Cédric Krier 040b00fa61 Compare integrity error message with the constraint name prefixed by the table name
The TableHandler adds the table name as prefix to the constraint name so when
comparing with the integrity error message, it should also be added.
Especially if the constraint name is hashed by the TableHandler conversion
because the result is completely different.

Closes #13922
(grafted from 57e97b6d957e1b472eea3fb7bbdf2ecf03abfc6a)

--HG--
branch : 7.0
2025-03-15 13:31:57 +01:00
Cédric Krier 69930332b9 Do not include record with NULL field in nested negative clause on None
Since 87456218dcc9, record with NULL field is include in nested negative clause
but this should not applied if the operand is or contains None.

Closes #13911
(grafted from 993d890dd786424c2cd00009045ad95a09075e72)

--HG--
branch : 7.0
2025-03-09 11:23:43 +01:00
Cédric Krier 64c7879274 Query the database after each timeout of the listeners
This permit to keep the connection alive when the database is killing idle
connections.

Closes #13902
(grafted from 12e80f41c37e1f77d1ae539e84989956a70da0d9)

--HG--
branch : 7.0
2025-03-04 23:00:16 +01:00
Cédric Krier 955d9c1e90 Convert empty string to None for match value
It is not possible from the clients to force to store None value instead of
empty string.

Closes #13890
(grafted from f7b12ada27377ec42a05b539791855e6f64c497f)

--HG--
branch : 7.0
2025-02-26 23:51:39 +01:00
Cédric Krier 2f2a0fdcc0 Increase version number
--HG--
branch : 7.0
2025-03-15 22:55:08 +01:00
Cédric Krier cdce87ee53 Prepare release trytond-7.0.28
--HG--
branch : 7.0
2025-03-15 22:54:57 +01:00
Cédric Krier da0773ddbf Restore assignation of string and integer value for Date, DateTime, Time and Timedelta fields
Closes #13873
(grafted from d85a062b9a32e4c8770791bd18e6df2d4ca28ae8)

--HG--
branch : 7.0
2025-02-15 01:38:51 +01:00