Commit Graph
5181 Commits
Author SHA1 Message Date
Cédric Krier 47d012aadd Surround exclude expression with parenthesis
Closes #13576
(grafted from e3ad47f562e5a8b03d4ff01014c83944c9dbd9ce)

--HG--
branch : 7.0
2024-10-09 17:19:44 +02:00
Nicolas Évrard cac5ebd099 Update only the actual ir.model and ir.model.field translations
Closes #13546
(grafted from 6bcdb4cbdb0e27e9e22bd1bb5e660307c2e518be)

--HG--
branch : 7.0
2024-10-01 16:45:46 +02:00
Cédric Krier 4ce3cf1bd5 Support None as default value for xxx2Many fields
Closes #13588
(grafted from 00a4834ae205bfae1b55298ae9263820a074e2cd)

--HG--
branch : 7.0
2024-10-10 09:38:40 +02:00
Cédric Krier 0a8cf8d4d9 Increase version number
--HG--
branch : 7.0
2024-10-05 17:03:28 +02:00
Cédric Krier 0c0fa1d792 Prepare release trytond-7.0.19
--HG--
branch : 7.0
2024-10-05 17:03:16 +02:00
Cédric Krier 23d99e113c 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 : 7.0
2024-09-24 10:19:57 +02:00
Cédric Krier 33e384c145 Do not fail to clean fields from missing model from the pool
Closes #13504
(grafted from e78241520f0bc57f26f11f788659fadf1ca8f891)

--HG--
branch : 7.0
2024-09-12 13:17:37 +02:00
Cédric Krier b65fb13c67 Increase version number
--HG--
branch : 7.0
2024-09-16 20:11:22 +02:00
Cédric Krier b05e9fb857 Prepare release trytond-7.0.18
--HG--
branch : 7.0
2024-09-16 20:11:11 +02:00
Cédric Krier f52623afb7 Remove unnecessary parenthesis in cron documentation
Closes #13502
(grafted from 82d409471f4af739c2faa412af291ac72e8e0e43)

--HG--
branch : 7.0
2024-09-12 08:36:06 +02:00
Cédric Krier 7441b391e9 Retrieve groups of actions without checking access
Closes #13506
(grafted from a8af930151c65ad1c3fe6e3fbce285109c26fb42)

--HG--
branch : 7.0
2024-09-12 16:33:03 +02:00
Cédric Krier 9423c7e97d Check read access of report records
Closes #13505
(grafted from cbd8e185bb320df9967fc41c542ef96c56ad548f)

--HG--
branch : 7.0
2024-09-12 16:09:39 +02:00
Cédric Krier 8a8f9f966d Retry to get a connection when an OperationalError is raised
If there are no connection available in the pool, psycopg2 tries to create a
new connection but it may raise an OperationalError if the server close it.

Closes #13475
(grafted from cecbc1736f2d0fdd8a77c1dcdfe81e23cf99f451)

--HG--
branch : 7.0
2024-08-26 09:33:58 +02:00
Nicolas Évrard 0a773cfe24 Implement __deepcopy__ on ImmutableDict
Closes #13408
(grafted from cdb34d214369c682c1d8f21fcb8c143371557cb9)

--HG--
branch : 7.0
2024-07-19 19:04:01 +02:00
Cédric Krier 55c1728d2d Do not set default escape char for like operators
Backed out changeset d2709e0f0186 because it requires python-sql >= 1.4

Closes #13333

--HG--
branch : 7.0
2024-09-07 16:48:52 +02:00
Cédric Krier 6c9ca4f757 Increase version number
--HG--
branch : 7.0
2024-09-01 13:35:40 +02:00
Cédric Krier e88ce1dbee Prepare release trytond-7.0.17
--HG--
branch : 7.0
2024-09-01 13:35:28 +02:00
Cédric Krier 51f080555b Close connection when listing or testing PostgreSQL databases
Closes #13441
(grafted from 18a811563d659b025b09973157f9d90a7dea8e6f)

--HG--
branch : 7.0
2024-08-07 17:49:10 +02:00
Cédric Krier 76dc002c4b Select only id from query of ModelSQL.search
Closes #13421
(grafted from c544661300ba3dc53db4378d4070b4aae8c5c32e)

--HG--
branch : 7.0
2024-07-26 23:00:05 +02:00
Cédric Krier 756751da00 Increase version number
--HG--
branch : 7.0
2024-08-01 21:30:14 +02:00
Cédric Krier dfd961de28 Prepare release trytond-7.0.16
--HG--
branch : 7.0
2024-08-01 21:29:57 +02:00
Cédric Krier 514fa0f6a2 Do not store empty list for MultiSelection key of Dict
Closes #13376
(grafted from 15a76a9d124c436ccbc1d9a9d9cde94731be8cde)

--HG--
branch : 7.0
2024-06-30 01:55:55 +02:00
Cédric Krier 198d1d3c31 Increase version number
--HG--
branch : 7.0
2024-07-17 23:36:11 +02:00
Cédric Krier eec8393919 Prepare release trytond-7.0.15
--HG--
branch : 7.0
2024-07-17 23:35:55 +02:00
Cédric Krier ceace63df5 Cast numeric columns for order expression on SQLite
Closes #13397
(grafted from 97e889240413ac521a15dc81453499bb888039c0)

--HG--
branch : 7.0
2024-07-13 15:35:01 +02:00
Cédric Krier a8bb16e78c Set type declaration in column names of SQLite only on top-level query
Closes #12532
(grafted from c07764f86f1655997d1271a5d2b30b9607a02a72)

--HG--
branch : 7.0
2024-06-30 16:25:41 +02:00
Cédric Krier b81d724543 Fix test_set_key of FieldDictTestCase
Closes #13314
(grafted from 00f2b092c74fd4b8974a464f7685f24e71a6e025)

--HG--
branch : 7.0
2024-06-08 17:19:40 +02:00
Cédric Krier 86b8f126b8 Increase version number
--HG--
branch : 7.0
2024-07-01 18:02:02 +02:00
Cédric Krier 1f9565a6cb Prepare release trytond-7.0.14
--HG--
branch : 7.0
2024-07-01 18:01:46 +02:00
Cédric Krier 9363eafb87 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
(grafted from ad09f3e55f6f7bd6767ea44d03566322fce6b487)

--HG--
branch : 7.0
2024-05-01 20:03:17 +02:00
Cédric Krier 270851ad9f 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
(grafted from 1cbc97959ca439d5ac1335240863ca8104c41969)

--HG--
branch : 7.0
2024-05-01 19:59:17 +02:00
Cédric Krier 977205587b Increase version number
--HG--
branch : 7.0
2024-06-15 11:02:53 +02:00
Cédric Krier 3ac659091c Prepare release trytond-7.0.13
--HG--
branch : 7.0
2024-06-15 11:02:34 +02:00
Cédric Krier e1e251fa89 Do not convert to False when importing translated translated which is empty
Closes #13276
(grafted from 6e744a5da63179ef8f8d2bc2ed69e6188163d618)

--HG--
branch : 7.0
2024-05-22 18:07:32 +02:00
Cédric Krier e819fdb342 Fallback to normalized email if there is no ascii available
Closes #13241
(grafted from b8ab4d03b1089a1c7d59ed739cbd816a0e3da67b)

--HG--
branch : 7.0
2024-05-07 16:56:51 +02:00
Cédric Krier 791f8eb2e5 Return proper dictionary structure for instance getter with names
Closes #13136
(grafted from 750be7004ae5eb040ec870cfeea3cea762a6caa0)

--HG--
branch : 7.0
2024-05-20 23:16:39 +02:00
Cédric Krier 5b1569191a 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
(grafted from 03611153e9bc9a0d169447c4ca946ad49c81ad47)

--HG--
branch : 7.0
2024-05-23 14:22:42 +02:00
Cédric Krier 73e0fd78c8 Use a readonly transaction to load module without update
Closes #12542
(grafted from 62775217456fe35fcc19a49d527f3baba67b0149)

--HG--
branch : 7.0
2024-05-23 14:18:51 +02:00
Cédric Krier 7e045a28d1 Increase version number
--HG--
branch : 7.0
2024-06-02 17:57:04 +02:00
Cédric Krier fce3011ad0 Prepare release trytond-7.0.12
--HG--
branch : 7.0
2024-06-02 17:56:49 +02:00
Nicolas Évrard 2e1bf05ff7 Use English when fetching records from the database
Closes #13204
(grafted from f4d5c22dd02905eb6007b5661d720147ee6ce1fe)

--HG--
branch : 7.0
2024-04-18 19:00:34 +02:00
Cédric Krier 1463aa57e8 Increase version number
--HG--
branch : 7.0
2024-05-01 11:09:20 +02:00
Cédric Krier a2a61fb5dc Prepare release trytond-7.0.11
--HG--
branch : 7.0
2024-05-01 11:09:03 +02:00
Cédric Krier d92c741136 Compute cache key for record rules using all models
As model can inherit the access rules from another, the key must include the
keys of those other models.

Closes #13162
(grafted from b04f36d27c78663851f6859e266aac203afd7600)

--HG--
branch : 7.0
2024-04-17 20:22:10 +02:00
Adrià Tarroja Caubet 8d9773f85b Clear view toolbar cache when email templates are modified
Closes #13072
(grafted from aaced85022248371ebea50482914d5df13bb477e)

--HG--
branch : 7.0
2024-04-21 17:29:41 +02:00
Cédric Krier 29c8790c40 Prevent to get user_id from request without view_args
If user_id is accessed before view_args has been setup, we should not cache
`None` as value but instead raise an exception.
The `user_id` may be accessed before the mapping if the request is logged
because the representation of the request used the `rpc_method` which needs to
parse the request data. But since 1923117e935d parsing compressed content is
only allowed for request with `user_id`.
So we can no more include the `rpc_method` is the request has not yet been
mapped and so it has a `view_args`.

Closes #13203
(grafted from 0630029c1d5a0a2c7bd45086957f2e0fbed4c427)

--HG--
branch : 7.0
2024-04-18 19:28:04 +02:00
Cédric Krier e41c237bc0 Use function to not copy custom report content
The Function fields are not copied so it is the storage field that must have a
default value.

Closes #13170
(grafted from 96d629fe11a710b395d9981881c5dfda1674becf)

--HG--
branch : 7.0
2024-04-13 15:00:52 +02:00
Cédric Krier 2cf3c4a317 Test if queue batch is boolean
In Python bool type is a subtype of integer so it must be tested first.
Also by converting other types to int, we catch any other wrong types.

Closes #13133
(grafted from 2c7c6983eecc716cddc3dcfce7c417e902257df0)

--HG--
branch : 7.0
2024-04-13 14:20:21 +02:00
Cédric Krier 4c1cb2a9d3 Remove ending commit when loading modules
The commit call was added by a6624f31ff20 to release lock because Cache.resets
was called inside the transaction.
But Cache.resets was removed in a83631f4ba67 and Cache does not create any new
transaction since.
And since 2fd8c5f88265 the transaction is even committed only on module
update.
(grafted from 0548d73c7ce3b4e07b6b76007f2592ed2be945ff)

--HG--
branch : 7.0
2024-03-13 08:42:10 +01:00
Cédric Krier c1a2c5d09b Increase version number
--HG--
branch : 7.0
2024-04-17 12:27:55 +02:00