Commit Graph
5909 Commits
Author SHA1 Message Date
Cédric Krier 8c69cfe9b2 Escape arguments of report convert command
Closes #15035
(grafted from 18bd1a03d7459e9ff226c42201d9fdf485ab4bad)

--HG--
branch : 8.0
2026-09-30 09:34:18 +02:00
Cédric Krier 0bd4a6f8a1 Escape title and text when rendering HTML editor
Closes #15032
(grafted from 0c76d2bc755882d3633a9452c585412f7847d797)

--HG--
branch : 8.0
2026-09-30 09:39:21 +02:00
Cédric Krier 05678b8046 Do not enforce check access when renewing device cookie
Closes #15118
(grafted from cd8a5e16e44c265bcf96c17718c9d9b4ae4e3b09)

--HG--
branch : 8.0
2026-09-23 12:08:23 +02:00
Nicolas Évrard 3e1ec32fd3 Lock the whole manipulation of the instance __dict__ when accessing attributes
Previously the lock was too fine grained and missed some concurrent access that
could result in AttributeError. We implement a slightly changed double-checked
locking technique to ensure a fast path when the initialization already
occured.

Closes #15122
(grafted from 8563e4dbd257939ce08bac5eef3858171006981b)

--HG--
branch : 8.0
2026-09-24 14:55:59 +02:00
Lars Wuerfel 3debac9c7b Update wizard tutorial to use tryton.cfg to register model
Closes #15089
(grafted from b5a764a7c2a909bef03ea9f5e2ed2858d42d147f)

--HG--
branch : 8.0
2026-09-28 18:07:34 +02:00
Cédric Krier 60e6824f69 Register opportunity report as report in tutorial
(grafted from 34804d9673e9e8ed1e369024bbc05325bcd78a56)

--HG--
branch : 8.0
2026-09-28 18:10:16 +02:00
Cédric Krier 2fb5c8f53e Copy the field used for Function field
Closes #15079
(grafted from a47a9a5be6728371561eb5e9dc76858cb052fa6f)

--HG--
branch : 8.0
2026-09-10 08:11:03 +02:00
Cédric Krier d7365902d4 Execute the lock_id when computing the running values of cron
Closes #15078
(grafted from 6166d6ed42c968ad1abbb6f21af7ca2cfc1fef0d)

--HG--
branch : 8.0
2026-09-09 18:55:29 +02:00
Cédric Krier da1cbfd558 Requires at least version 3.2 of psycopg
get_notifications uses the timeout parameter which was added only in version
3.2

Closes #15103
(grafted from e590b70d17cec54d95435c6a71a8aaf3dca5e9fa)

--HG--
branch : 8.0
2026-09-16 14:37:43 +02:00
Cédric Krier 7733443332 Set timeout to 0 when receiving PostgreSQL notifications
There is no need to wait 2 seconds for more notifications as we call
get_notifications only when the selector is triggered.

Closes #15102
(grafted from 02567102eb63f69faedf61ae83c51a5075b57588)

--HG--
branch : 8.0
2026-09-16 14:35:33 +02:00
Cédric Krier 2262e4b252 Do not enforce access rights when performing action on delete
Closes #15050
(grafted from e6d7121c620cec6986ab524f43b97f7adb5f7da9)

--HG--
branch : 8.0
2026-08-31 13:43:41 +02:00
Nicolas Évrard f34a7c3a47 Support getting and setting tree widths without a screen width
Closes #15099
(grafted from bdec2127549993b25a44c2057a3f2b7a824ecdc2)

--HG--
branch : 8.0
2026-09-18 23:52:09 +02:00
Cédric Krier 2584156da2 Override contextual groups when evaluating button states
Closes #15098
(grafted from 1326133b908292ff6e2964aa5a3c0682dd4ecd5c)

--HG--
branch : 8.0
2026-09-30 08:15:23 +02:00
Cédric Krier 1f04d08061 Increase version number
--HG--
branch : 8.0
2026-09-16 23:03:56 +02:00
Cédric Krier de9dc63c55 Prepare release trytond-8.0.10
--HG--
branch : 8.0
2026-09-16 23:03:41 +02:00
Cédric Krier 8f5b01564e Store delete rule of column per constraint
If a column is used for different foreign keys with different delete rules, the
foreign key may be recreated if the last rule stored is different.

Closes #15053
(grafted from 636865d7fc72d5e59d9a7bb447de8b87743cc5ad)

--HG--
branch : 8.0
2026-09-02 11:43:46 +02:00
Cédric Krier 862ef8d408 Wait until a message is received when testing subscription of bus
Closes #15065
(grafted from 020452568c782b3d20fe64fe58e33088095125a1)

--HG--
branch : 8.0
2026-09-04 11:53:57 +02:00
Cédric Krier 4e4d7b0729 Test the existence of the request context key before using it for URL
Closes #15046
(grafted from 5eae02e6c094d6741d615d1c4bd2333721eb92b7)

--HG--
branch : 8.0
2026-08-27 15:56:47 +02:00
Nicolas Évrard 04ab9aaedf Check the existence of a getter before adding it to a field depends
Closes #15055
(grafted from 9d5d21d76b461d82c7d43c6221f7e9f1f1d3f5cc)

--HG--
branch : 8.0
2026-09-03 12:24:29 +02:00
Cédric Krier eb14b26c7c Store only records count greater than 0 in the cache when delete records
The existing cached count may be just an estimation so it is possible that more
records are deleted.

Closes #15038
(grafted from aa4a8bd85207b307b4aa075b105550e4ddae100f)

--HG--
branch : 8.0
2026-08-25 09:45:59 +02:00
Cédric Krier 32197c0397 Ensure to use an estimated count greater than 1 when applying log10
Closes #15038
(grafted from ff2281026e58f4d7a8c9823837ce16a9bb0fa09b)

--HG--
branch : 8.0
2026-08-25 09:46:47 +02:00
Cédric Krier ad81e44df6 Set all attributes of transaction before connecting to the database
The connection to the database may fail and thus stop and rollback may be
called. All the attributes must be set to avoid to raise another AttributeError
exception.

Closes #15022
(grafted from 654923a8085d4804dd217e487c80085c53eb470b)

--HG--
branch : 8.0
2026-08-17 17:32:55 +02:00
Cédric Krier 605b1d214e Register cache instance after being fully initialized
Otherwise an instance can be accessed by another thread via the registry when
it is still being initialized. And it may crash on missing attribute.

Closes #15007
(grafted from f1840545f4eb5ae5c870a2557a7c3a0314fedb16)

--HG--
branch : 8.0
2026-08-12 17:57:01 +02:00
Cédric Krier 7844a750a3 Limit the start id of table to 500 for tests
By using the formula `(idx * prime) % range + 1`, tables created consecutively
have start id distant by `prime` and the maximum start id is `range`.
This avoid to overflow int4 when composing unique ID for table query.

Closes #15010
(grafted from f730392a270138148ed62366cf7f35a7cc01a8b6)

--HG--
branch : 8.0
2026-08-17 15:06:09 +02:00
Nicolas Évrard 5a3a52e164 Reset TABLES_CREATED when dropping the database when testing
Closes #15002
(grafted from e9f2b42e96ebb4553ef153f1d778c5d1042b3891)

--HG--
branch : 8.0
2026-08-10 14:51:04 +02:00
Cédric Krier dce539cb3b Increase version number
--HG--
branch : 8.0
2026-08-15 08:41:44 +02:00
Cédric Krier e51692ba4a Prepare release trytond-8.0.9
--HG--
branch : 8.0
2026-08-15 08:41:29 +02:00
Nicolas Évrard aaf8203d44 Skip translation refering to unknown XML ID or unactivated source
Closes #12969
(grafted from 563cb007e55c30ed03e3fb4eb74b623bfa8fd6e1)

--HG--
branch : 8.0
2024-01-29 18:47:56 +01:00
Cédric Krier 210659bace Increase version number
--HG--
branch : 8.0
2026-08-04 12:04:55 +02:00
Cédric Krier 26fe37f297 Prepare release trytond-8.0.8
--HG--
branch : 8.0
2026-08-04 12:04:39 +02:00
Cédric Krier c3af1a9ad6 Restrict protocols allowed for weasyprint to http(s)
Closes #14947
(grafted from 7c72806c98c07bb4ccb1f5f1b84954350541ec3a)

--HG--
branch : 8.0
2026-08-04 10:38:45 +02:00
Cédric Krier 5653c0d164 Use Text field for HTML content of report record
The field must contain strings in order to allow edition with the HTML editor.

Closes #14922
(grafted from 73b5636cf6abe1ea23f05bab04772129a5178e11)

--HG--
branch : 8.0
2026-07-24 16:10:12 +02:00
Cédric Krier 526519b6c9 Calculate the number of parameters in INSERT query using the columns list
The column names list does not contain the create_uid nor create_date columns
instead of columns list.

Closes #14800
(grafted from 090325cb8d9f26f30613a890a02c1c339b370082)

--HG--
branch : 8.0
2026-07-23 11:37:36 +02:00
Cédric Krier 57e8b983b7 Use binary version of psycopg for tests
(grafted from 7868852522d26ff069aebcc03ae73d98abe97879)

--HG--
branch : 8.0
2026-07-17 22:11:32 +02:00
Cédric Krier 2646cbca09 Increase version number
--HG--
branch : 8.0
2026-07-15 18:22:36 +02:00
Cédric Krier 5b6cba6453 Prepare release trytond-8.0.7
--HG--
branch : 8.0
2026-07-15 18:22:21 +02:00
Cédric Krier e28e1ead48 Return Gateway Timeout instead of Request Timeout for database timeout
Closes #14945
(grafted from ae46da1d0ab434dda58b54070e1faa2a72974935)

--HG--
branch : 8.0
2026-07-08 22:12:42 +02:00
Cédric Krier 755b173a77 Add missing duration argument to database timeout warning
Closes #14944
(grafted from 8a86ff7389e0f759ebb07b6738e24c3e7a4ae309)

--HG--
branch : 8.0
2026-07-08 22:23:38 +02:00
Cédric Krier 1d532143b5 Use NullConnectionPool for the default database
The default database is template1 which is usually used to create new database.
Keeping a pool of connection open on it prevents the creation of new database
because exclusive access is needed on the template.

Closes #14935
(grafted from 20781078a519c45a7a1f70b0074c6abcb1a89589)

--HG--
branch : 8.0
2026-07-06 19:34:24 +02:00
Cédric Krier 402c9fa20b Permit __url__ and __href__ attribute usage in Genshi evaluation
Closes #14932
(grafted from 936431c951bb4eb9d17c399445c6cacf7dcb8626)

--HG--
branch : 8.0
2026-07-06 09:07:08 +02:00
Cédric Krier ebed93c61a Define index using COALESCE for nullable Char fields
Closes #14909
(grafted from 525198c97acdd19820d581411b3af0f5bb6e4237)

--HG--
branch : 8.0
2026-07-14 21:14:05 +02:00
Cédric Krier 856461f693 Do not apply COALESCE on required Char
Closes #14909
(grafted from 776fe202ed6fd03b690948cf4e2dabc2fd28bbc4)

--HG--
branch : 8.0
2026-06-24 22:06:59 +02:00
Adrià Tarroja Caubet 06c8db564e Add a comma between 'set' and 'slice' in the Genshi allowed builtins
Closes #14928
(grafted from 0255fea9294bed43ca3e42186bdb52c7f22277e1)

--HG--
branch : 8.0
2026-07-04 00:17:12 +02:00
Cédric Krier f50c692f40 Increase version number
--HG--
branch : 8.0
2026-07-01 22:37:02 +02:00
Cédric Krier 46364e04ec Prepare release trytond-8.0.6
--HG--
branch : 8.0
2026-07-01 22:36:48 +02:00
Cédric Krier de1a30881f Enforce access right on the email template record
Closes #14907
(grafted from d9aa2de5dabe7e39892c41808d56103ea83bf95f)

--HG--
branch : 8.0
2026-06-30 09:48:33 +02:00
Cédric Krier 35a7e696cf Add ModelAccessProxy
#14907
(grafted from dafef28a1d65032628809acbfa130a2f2e74474f)

--HG--
branch : 8.0
2026-06-25 13:31:30 +02:00
Cédric Krier a86bc71a32 Restrict Genshi evaluation
Closes #14869 #5160
(grafted from 101aaf12c6bb1a333c9105b1e6677a4a5f49605c)

--HG--
branch : 8.0
2026-06-08 23:44:10 +02:00
Cédric Krier f78eb154ee Resolve Tryton modules using entrypoints
The Pool tries to resolve registered string using the path `trytond.modules.`
which can not always be imported if the module is using an entry pointing to
another package.

Closes #14914
(grafted from bb96325e829df570aac1f7624c862a660c0be286)

--HG--
branch : 8.0
2026-06-26 15:17:14 +02:00
Cédric Krier 96eb7071f7 Update module tutorial to match with the cookiecutter output
(grafted from e33b58f3d6a1bd6445853b88c2d26ff5e8a61c9c)

--HG--
branch : 8.0
2026-06-18 19:11:04 +02:00