Commit Graph
5239 Commits
Author SHA1 Message Date
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
Cédric Krier 6d194a37aa Do not delete optional value for fields not set by the call
The same view may have different set of fields if it is extended conditionally.

Closes #13758
(grafted from 826ac4da1e20acd1e1b5aec3c3aaa00f04cdc81b)

--HG--
branch : 7.0
2024-12-16 15:38:11 +01:00
Cédric Krier c0718c9d4b Retry locking tables at the same speed as the dispatcher request
(grafted from 1e361bb682500fb423418719d6ee1d9f2e237f82)

--HG--
branch : 7.0
2024-12-18 13:51:44 +01:00
Cédric Krier 919d7ff34f Include the depends of the getter function when depending on a Function field
Since c47b3642f1a6, the getter of a Function field may be called if there is no
value set for it on the instance.
In the on_change context, this may set the missing fields to None if they were
not defined in the depends of the method called. In addition to compute a wrong
value, those fields are then returned as modified.

Closes #13735
(grafted from 1b815539165a1212fc5c415c8920d8f5f0c55236)

--HG--
branch : 7.0
2024-12-05 16:25:16 +01:00
Cédric Krier fddf4ff434 Increase version number
--HG--
branch : 7.0
2024-12-16 18:55:30 +01:00
Cédric Krier 742cc4a129 Prepare release trytond-7.0.22
--HG--
branch : 7.0
2024-12-16 18:55:15 +01:00
Cédric Krier 761fb07908 Do not check for integrity error the required fields with set method
Closes #13745
(grafted from 55087fb59fc93731a341c3436c5cbc99ea4cf3b1)

--HG--
branch : 7.0
2024-12-11 11:02:07 +01:00
Cédric Krier 08ba7b656c Do not quit the SMTP sever on 421 error code
smtplib is already closing the connection when such error code is received.

Closes #13710
(grafted from e91426cb5d9db204250399823ab9e2acba640b1f)

--HG--
branch : 7.0
2024-11-28 14:47:11 +01:00
Cédric Krier d3615ec1af Increase version number
--HG--
branch : 7.0
2024-12-01 19:28:51 +01:00
Cédric Krier 0fbb0bbf22 Prepare release trytond-7.0.21
--HG--
branch : 7.0
2024-12-01 19:28:41 +01:00
Cédric Krier 0dce579f67 Add manual migration to documentation
(grafted from 212ef9346f52c32c05f665433bd58372455e8b40)

--HG--
branch : 7.0
2024-11-30 19:06:26 +01:00
Cédric Krier 15b80c50c0 Do not get a new connection when retrying to lock table on transaction start
Closes #13661
(grafted from a36a983afe44fc569c04db4d3db71146400b6422)

--HG--
branch : 7.0
2024-11-06 13:57:10 +01:00