Commit Graph
5250 Commits
Author SHA1 Message Date
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
Cédric Krier ec1fa04b00 Increase version number
--HG--
branch : 7.0
2025-03-04 22:14:45 +01:00
Cédric Krier d3b922e3b1 Prepare release trytond-7.0.27
--HG--
branch : 7.0
2025-03-04 22:14:34 +01:00
Cédric Krier e91da82b33 Prohibit calling convert_order on Function field
Closes #13872
(grafted from 7c043ecbd617b2b318d7e3219500c901b0b85127)

--HG--
branch : 7.0
2025-02-15 01:15:07 +01:00
Cédric Krier 7905d8860c 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.
(grafted from e5ed9fc71d218c967bdbfc9489773905e5a5466c)

--HG--
branch : 7.0
2025-02-10 01:39:24 +01:00
Cédric Krier 2832202434 Do not fail to translate model field that does not exist
(grafted from e63effe09ce756cd0e66ad635255dedc8d807c7b)

--HG--
branch : 7.0
2025-01-29 23:23:22 +01:00
Cédric Krier 92ec1a4565 Set access as readonly on model field when module is set
(grafted from fd1d0abd2a9256813c654f609b158be3ce3ef9f3)

--HG--
branch : 7.0
2025-01-29 23:20:40 +01:00
Cédric Krier 10b50cb909 Increase version number
--HG--
branch : 7.0
2025-02-16 11:57:49 +01:00
Cédric Krier c0691df5e0 Prepare release trytond-7.0.26
--HG--
branch : 7.0
2025-02-16 11:57:37 +01:00
Cédric Krier dec9d9b7bc Do not fail to clean when help selection is None
Closes #13862
(grafted from 7459598460593b98dd6a04ecf24551266290e2eb)

--HG--
branch : 7.0
2025-02-09 19:51:04 +01:00
Cédric Krier 95943b3ade 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
(grafted from 491dea19bb6bc72547c1038c1f3a8ceb56e4a068)

--HG--
branch : 7.0
2025-01-29 11:45:42 +01:00
Cédric Krier 3fcddd6029 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
(grafted from 4dd742a6d7cb8765364387d95fbc54c3ed86bce9)

--HG--
branch : 7.0
2025-01-21 18:35:56 +01:00
Cédric Krier 8f5dfc5b18 Always define translation source name
The source name may be used to translate the help selection.

Closes #13839
(grafted from 1b88570858c0188293c5531ce86b1eef96d23086)

--HG--
branch : 7.0
2025-01-26 17:01:20 +01:00
Cédric Krier 9742f926c7 Create translation entries for help selection values
Closes #13840
(grafted from c8b60954484f6111ce028ad76dd3a9bfd6f367fc)

--HG--
branch : 7.0
2025-01-26 17:06:46 +01:00
Cédric Krier 32d41e20fd Increase version number
--HG--
branch : 7.0
2025-02-01 18:07:23 +01:00
Cédric Krier 427af60a16 Prepare release trytond-7.0.25
--HG--
branch : 7.0
2025-02-01 18:07:10 +01:00
Cédric Krier a8bad84945 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
(grafted from 0a2239fb548b5b20a9ae4d4a8c8c6c34cfed5683)

--HG--
branch : 7.0
2025-01-16 09:47:25 +01:00
Cédric Krier 860e42e0c6 Create target SQLite database before copying when restoring SQLite database
Closes #13795
(grafted from cf99ddf9358a6c1e05c5e17bfe9d41fe63b29c20)

--HG--
branch : 7.0
2025-01-05 16:15:17 +01:00
Cédric Krier 9df7de274a 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
(grafted from b431c4c5ddcf6556dcfd502bad748e18d596040a)

--HG--
branch : 7.0
2025-01-05 16:02:39 +01:00
Cédric Krier 4c8d371cf6 Instantiate One2One target when the context of the field
Closes #13819
(grafted from 0b5ee6e071f83054de3a0c518318c4d1bd11d449)

--HG--
branch : 7.0
2025-01-14 01:19:00 +01:00
Cédric Krier c2ddb35142 Expand dictionary value set to a One2One field
Closes #13818
(grafted from 6fa9bacb3d4bbd534f88c945e0dddf6bfef3e4a6)

--HG--
branch : 7.0
2025-01-14 01:07:33 +01:00
Cédric Krier cfcf0c7a06 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
(grafted from 34725c999ed27d30323e3dbc605b5c8522c8b924)

--HG--
branch : 7.0
2025-01-14 01:04:46 +01:00
Cédric Krier d4c8b38220 Increase version number
--HG--
branch : 7.0
2025-01-16 18:27:37 +01:00
Cédric Krier 0b5f67ea8c Prepare release trytond-7.0.24
--HG--
branch : 7.0
2025-01-16 18:27:24 +01:00
Cédric Krier 4c381e4b71 Limit the worker retry delay to maximum 1 hour
Closes #13779
(grafted from b6f5daac0e2b605ca23b360e80066e51eca5bcfb)

--HG--
branch : 7.0
2024-12-26 12:47:08 +01:00
Cédric Krier 6ce93915d9 Increase version number
--HG--
branch : 7.0
2025-01-01 20:28:26 +01:00
Cédric Krier 347cc038ac Prepare release trytond-7.0.23
--HG--
branch : 7.0
2025-01-01 20:28:10 +01:00