Commit Graph
4767 Commits
Author SHA1 Message Date
Cédric Krier f9d7f6d9bd 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 : 6.0
2025-04-28 10:49:34 +02:00
Cédric Krier 87647dfebd Do not clear non unique help translation
The help translations may be composed of partitioned strings.

Closes #13978
(grafted from 0cbf346b9ea5c1c25e3c97482b3d296432e441aa)

--HG--
branch : 6.0
2025-04-23 18:32:04 +02:00
Cédric Krier a6496de097 Increase version number
--HG--
branch : 6.0
2025-04-03 00:39:39 +02:00
Cédric Krier 0dcc940be7 Prepare release trytond-6.0.61
--HG--
branch : 6.0
2025-04-03 00:39:27 +02:00
Cédric Krier 84c7b3a416 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 : 6.0
2025-03-15 13:31:57 +01:00
Cédric Krier 896ccf9075 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 : 6.0
2025-03-09 11:23:43 +01:00
Cédric Krier 3d65696554 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 : 6.0
2025-03-04 23:00:16 +01:00
Cédric Krier 98ae81a74f 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 : 6.0
2025-02-26 23:51:39 +01:00
Cédric Krier 00eced7712 Increase version number
--HG--
branch : 6.0
2025-03-04 22:16:04 +01:00
Cédric Krier 5849dedd29 Prepare release trytond-6.0.60
--HG--
branch : 6.0
2025-03-04 22:15:52 +01:00
Cédric Krier cfcc82be78 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 : 6.0
2025-02-10 01:39:24 +01:00
Cédric Krier c8dd23d259 Do not fail to translate model field that does not exist
(grafted from e63effe09ce756cd0e66ad635255dedc8d807c7b)

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

--HG--
branch : 6.0
2025-01-29 23:20:40 +01:00
Cédric Krier cbea0056e9 Increase version number
--HG--
branch : 6.0
2025-02-16 11:58:15 +01:00
Cédric Krier 26d65206dc Prepare release trytond-6.0.59
--HG--
branch : 6.0
2025-02-16 11:58:04 +01:00
Cédric Krier 6ee7e4cd36 Do not fail to clean when help selection is None
Closes #13862
(grafted from 7459598460593b98dd6a04ecf24551266290e2eb)

--HG--
branch : 6.0
2025-02-09 19:51:04 +01:00
Cédric Krier c2f0f9b849 Always define translation source name
The source name may be used to translate the help selection.

Closes #13839
(grafted from 1b88570858c0188293c5531ce86b1eef96d23086)

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

--HG--
branch : 6.0
2025-01-26 17:06:46 +01:00
Cédric Krier 7992d32e22 Increase version number
--HG--
branch : 6.0
2025-02-01 18:08:04 +01:00
Cédric Krier e00d986791 Prepare release trytond-6.0.58
--HG--
branch : 6.0
2025-02-01 18:07:51 +01:00
Cédric Krier ddc997adee 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 : 6.0
2025-01-16 09:47:25 +01:00
Cédric Krier 6caa2667d4 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 : 6.0
2025-01-05 16:02:39 +01:00
Cédric Krier b9fea7e676 Instantiate One2One target when the context of the field
Closes #13819
(grafted from 0b5ee6e071f83054de3a0c518318c4d1bd11d449)

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

--HG--
branch : 6.0
2025-01-14 01:07:33 +01:00
Cédric Krier 38823285cc 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 : 6.0
2025-01-14 01:04:46 +01:00
Cédric Krier 3970ae4b5f Increase version number
--HG--
branch : 6.0
2025-01-01 20:28:55 +01:00
Cédric Krier bae29644a1 Prepare release trytond-6.0.57
--HG--
branch : 6.0
2025-01-01 20:28:42 +01:00
Cédric Krier 2ededea81f 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 : 6.0
2024-12-05 16:25:16 +01:00
Cédric Krier fcd634c52e Increase version number
--HG--
branch : 6.0
2024-12-16 18:57:09 +01:00
Cédric Krier 40bcb4ecbd Prepare release trytond-6.0.56
--HG--
branch : 6.0
2024-12-16 18:56:52 +01:00
Cédric Krier 8e261df793 Do not check for integrity error the required fields with set method
Closes #13745
(grafted from 55087fb59fc93731a341c3436c5cbc99ea4cf3b1)

--HG--
branch : 6.0
2024-12-11 11:02:07 +01:00
Cédric Krier 7161339920 Increase version number
--HG--
branch : 6.0
2024-12-01 19:44:35 +01:00
Cédric Krier cc4e590f09 Prepare release trytond-6.0.55
--HG--
branch : 6.0
2024-12-01 19:44:23 +01:00
Cédric Krier 9bb0c654ca Add manual migration to documentation
(grafted from 212ef9346f52c32c05f665433bd58372455e8b40)

--HG--
branch : 6.0
2024-11-30 19:07:20 +01:00
Cédric Krier d4f1719a88 Return the inherited view type for inheriting action window view
Closes #13659
(grafted from 4aca431b30812b3052635ee829ce75f00ac00a50)

--HG--
branch : 6.0
2024-11-06 13:25:28 +01:00
Cédric Krier 6a701e0a8f Accept object has type for Greater statements
If the PYSON statement has the type 'object', it can be a Date, DateTime or
TimeDelta which is allowed for comparison.

Closes #13645
(grafted from df6e3c10a5105e545e1aa8e58c3c087285146a58)

--HG--
branch : 6.0
2024-11-04 13:09:34 +01:00
Cédric Krier d01b4330b5 Increase version number
--HG--
branch : 6.0
2024-10-18 12:25:08 +02:00
Cédric Krier b2fb6ef35a Prepare release trytond-6.0.54
--HG--
branch : 6.0
2024-10-18 12:24:55 +02:00
Cédric Krier 13ca95d658 Do not enforce implicit NOT NULL on name field of a tree
The `not like` operator implicitly requires the field to be not null but
specific implementation of the named field may allow to have NULL values.

Closes #13592
(grafted from 9af176fb307a975e0af3bf88ad07e098433dcdd1)

--HG--
branch : 6.0
2024-10-11 10:51:04 +02:00
Cédric Krier 0bb8b6177a Include NULL value for negative search on nested Many2One and Reference
This unify the search behavior on relational fields with NULL value started
with c14f51b77b30.

Closes #13585
(grafted from 87456218dcc9b075658f9e2338b120fce9b9a43d)

--HG--
branch : 6.0
2024-10-11 11:24:06 +02:00
Cédric Krier 334d151766 Always return a string for status bar of user
Closes #13579
(grafted from 78143b8471e85a91245b58ce2fa85aab3e705a98)

--HG--
branch : 6.0
2024-10-09 20:10:13 +02:00
Cédric Krier 66b8bc3038 Do not compute sequence next number if the SQL sequence does not exist
(grafted from c4554eeb56fd98c67b2fbade54dd0f5816d44c79)

--HG--
branch : 6.0
2024-10-09 09:47:15 +02:00
Cédric Krier 080a47c124 Surround exclude expression with parenthesis
Closes #13576
(grafted from e3ad47f562e5a8b03d4ff01014c83944c9dbd9ce)

--HG--
branch : 6.0
2024-10-09 17:19:44 +02:00
Cédric Krier f3ad1e0b6f Support None as default value for xxx2Many fields
Closes #13588
(grafted from 00a4834ae205bfae1b55298ae9263820a074e2cd)

--HG--
branch : 6.0
2024-10-10 09:38:40 +02:00
Cédric Krier 6fd75c9d67 Increase version number
--HG--
branch : 6.0
2024-10-05 17:05:53 +02:00
Cédric Krier c0fcb12c6e Prepare release trytond-6.0.53
--HG--
branch : 6.0
2024-10-05 17:05:42 +02:00
Cédric Krier ad9869f5b5 Start PostgreSQL URI path with a '/'
Since https://github.com/python/cpython/issues/76960 if the path of the URI
does not start with a '/', the netloc is removed.

Closes #13543
(grafted from 6d420b9f4bffc77dc599abff4b7f8e17a061542d)

--HG--
branch : 6.0
2024-09-24 10:19:57 +02:00
Cédric Krier 24f7461f35 Do not fail to clean fields from missing model from the pool
Closes #13504
(grafted from e78241520f0bc57f26f11f788659fadf1ca8f891)

--HG--
branch : 6.0
2024-09-12 13:17:37 +02:00
Cédric Krier b43128dc8b Increase version number
--HG--
branch : 6.0
2024-09-16 20:12:35 +02:00
Cédric Krier 45e567bb34 Prepare release trytond-6.0.52
--HG--
branch : 6.0
2024-09-16 20:12:24 +02:00