Commit Graph
3637 Commits
Author SHA1 Message Date
Cédric Krier 9c6385c7dc Increase version number
--HG--
branch : 6.0
2025-01-01 20:33:00 +01:00
Cédric Krier bf695954be Prepare release tryton-6.0.48
--HG--
branch : 6.0
2025-01-01 20:32:48 +01:00
Cédric Krier 0b2fb7baca Do not select current record if it is no more in the group
on_change calls may remove the current record without updating the screen such
that it is not possible to compute a selection path.

Closes #13770
(grafted from ceb83d197bfcced51643cb723590cd97127eda86)

--HG--
branch : 6.0
2024-12-21 18:12:09 +01:00
Cédric Krier c2310ff235 Set screen to ScreenContainer at instantiation
Many methods of ScreenContainer relies on the screen being set.
And there is no reason to not set the screen at instantiation as long as show
filter refresh the bookmarks.

Closes #13757
(grafted from 16f208d5248b270306edee488d913c65924dd727)

--HG--
branch : 6.0
2024-12-18 17:54:06 +01:00
Nicolas Évrard c0d07f0615 Do not set the Group's context when setting a default group on xxx2Many
The context of the field is dynamic so evaluating it only once when creating
the group make it static.
Also the group is already evaluating the parent field context on the fly when
its context is retrieved.

Closes #13726
(grafted from b21813a75b5beeb625b1e9533cbc498b7872555f)

--HG--
branch : 6.0
2024-12-16 10:29:26 +01:00
Cédric Krier 7ca5d2034b Increase version number
--HG--
branch : 6.0
2024-12-16 18:59:54 +01:00
Cédric Krier 833a4f16c1 Prepare release tryton-6.0.47
--HG--
branch : 6.0
2024-12-16 18:59:41 +01:00
Cédric Krier 9c96b2d67f Always hide select button on binary cell when the field is readonly
Closes #13714
(grafted from b9da884274caa17aa9c7e42891f0019a9dff9b89)

--HG--
branch : 6.0
2024-11-29 13:06:08 +01:00
Cédric Krier 37c38d8c19 Ensure current record is None after removing record from the group
The removal can trigger __select_changed on the list view which may set the
first record of the selection as the current record which may be the deleted
record.
This prevents the display triggered by record_modified to set the current
record in the selection as it has been removed from the group.

Closes #13712
(grafted from ed532372fe23eff7fe3e7c94b145bd87c5cf741d)

--HG--
branch : 6.0
2024-11-29 12:59:50 +01:00
Cédric Krier 52e775e436 Return a dictionary when calling default_get and set a default empty value
18acfa54fa2e relies on having always a dictionary.

Closes #13690
(grafted from cf5f7a897a6022ad3dbfa440010df9f73bd7e859)

--HG--
branch : 6.0
2024-11-28 15:00:55 +01:00
Nicolas Évrard a707a20efe Parse child of group tags at the end
This allows to preserve the order of the state widgets in the form which is
important when evaluating the emptiness of a group

Closes #13622
(grafted from b01fd46f44f2923cbd5a91323c592fa8cfb18a57)

--HG--
branch : 6.0
2024-11-30 10:24:52 +01:00
Cédric Krier a1be7ebf13 Increase version number
--HG--
branch : 6.0
2024-12-01 19:57:45 +01:00
Cédric Krier 05ebefe52e Prepare release tryton-6.0.46
--HG--
branch : 6.0
2024-12-01 19:57:35 +01:00
Cédric Krier 25d2c25ee0 Set a new current record if current one is not in the selection
`__select_changed` should not change the current record if the record is
already in the selection.

Closes #13676
(grafted from d9aaf9e915d8b1a0f4994638b9a2b7394ecbc78a)

--HG--
branch : 6.0
2024-11-13 11:33:06 +01:00
Cédric Krier 371aa9133c Increase version number
--HG--
branch : 6.0
2024-11-06 21:26:33 +01:00
Cédric Krier 52dd564b31 Prepare release tryton-6.0.45
--HG--
branch : 6.0
2024-11-06 21:26:23 +01:00
Cédric Krier 7f5af5752f Do not try to paste empty clipboard as row
Closes #13613
(grafted from 605635ac7559bc4284b740a9697e018568c6f38c)

--HG--
branch : 6.0
2024-10-22 01:41:28 +02:00
Cédric Krier 88ade44e38 Save each valid record pasted
Closes #3312
(grafted from 26ae2d02e7399dfee30e31a984044329546c6416)

--HG--
branch : 6.0
2024-10-22 01:18:57 +02:00
Cédric Krier dfbb40b6bf Update pixbuf loaders and immodules when building installers
Closes #13611
(grafted from e5fd55d3e783988236505502614e4ae708cce785)

--HG--
branch : 6.0
2024-10-21 18:01:53 +02:00
Cédric Krier 7320b9f057 Do not fail to set value of the wrong type to Dict Entry widget
Closes #13621
(grafted from 380efdfcf2f12fd82a23a883eb9941d238f4f714)

--HG--
branch : 6.0
2024-10-23 13:56:53 +02:00
Cédric Krier ed15911ab3 Quote empty string when formatting list value of domain
This is needed to keep the empty string in the list on a second parsing.

Closes #13558
(grafted from 747825bc93a35fef995094be5ca9d7e04c414692)

--HG--
branch : 6.0
2024-10-02 17:06:58 +02:00
Cédric Krier 075c60bc62 Use equality operators when stringify in domain clause with singleton
Closes #13557
(grafted from 075696a648468748ed3d9bba7d1bba7553ab21cc)

--HG--
branch : 6.0
2024-10-02 17:02:55 +02:00
Cédric Krier 063e9970b1 Increase version number
--HG--
branch : 6.0
2024-10-18 13:54:57 +02:00
Cédric Krier 7362561fde Prepare release tryton-6.0.44
--HG--
branch : 6.0
2024-10-18 13:54:47 +02:00
Nicolas Évrard 29bc72133f Deactivate only the class buttons in x2M widgets
Closes #13530
(grafted from 006b4deb180064214fed8bb9a2e1119c01fb68f7)

--HG--
branch : 6.0
2024-09-19 11:09:47 +02:00
Cédric Krier cbc14753df Increase version number
--HG--
branch : 6.0
2024-09-16 20:14:33 +02:00
Cédric Krier 00790ca6d8 Prepare release tryton-6.0.43
--HG--
branch : 6.0
2024-09-16 20:14:23 +02:00
Nicolas Évrard 873d15503f Raise the original RPCException when handling it in RPCProgress
Closes #13385
(grafted from e8a5d6fb195f922cc7bc167a52a5372da95b2e16)

--HG--
branch : 6.0
2024-09-08 17:25:20 +02:00
Nicolas Évrard 69882047ef Do not override id as default values of failed read
Closes #13331
(grafted from 70e62980df617039e018444b7f0dcbc4bcb7e14f)

--HG--
branch : 6.0
2024-08-31 12:19:20 +02:00
Cédric Krier a61799cdc3 Pin setuptools version in tox env
We use the command test from setuptools which has been removed in version
72.0.0.

Closes #13510

--HG--
branch : 6.0
2024-09-13 16:37:56 +02:00
Cédric Krier ffd9f650bd Increase version number
--HG--
branch : 6.0
2024-09-01 13:41:12 +02:00
Cédric Krier a63d9a4dce Prepare release tryton-6.0.42
--HG--
branch : 6.0
2024-09-01 13:41:02 +02:00
Cédric Krier c1d6b10cd2 Consider as stringable domain with empty clause
Closes #13414
(grafted from 49a55291512a957e496455f6474a9776e8c2c31c)

--HG--
branch : 6.0
2024-08-07 16:34:09 +02:00
Cédric Krier d9fb73e53f Increase version number
--HG--
branch : 6.0
2024-08-01 21:39:18 +02:00
Cédric Krier ade8593188 Prepare release tryton-6.0.41
--HG--
branch : 6.0
2024-08-01 21:39:04 +02:00
Cédric Krier 6e322c9553 Do not iterate over MultiSelection value of Dict key if it is null
Closes #13375
(grafted from d938889e4f42517b7433685091e6cfce5080063a)

--HG--
branch : 6.0
2024-06-30 01:53:24 +02:00
Cédric Krier a8620a1725 Do not allow to mutate dict value
A copy of the value is always returned so if it is modified it does not modify
the internal value of the record.
So to update Dict value, a new dictionary must be set on the field.

Closes #13374
(grafted from 82b0280d4a08c48b2ab85b4ababe2031aee9a7a2)

--HG--
branch : 6.0
2024-06-30 01:49:42 +02:00
Cédric Krier 00fd29851f Increase version number
--HG--
branch : 6.0
2024-07-01 18:03:34 +02:00
Cédric Krier d1081ecb01 Prepare release tryton-6.0.40
--HG--
branch : 6.0
2024-07-01 18:03:19 +02:00
Cédric Krier 025b726e8e Always update state of delete and undelete buttons in window form
Closes #13323
(grafted from 377fcba9fba2d39973067915f72848fd01bce7ed)

--HG--
branch : 6.0
2024-06-10 17:13:03 +02:00
Cédric Krier c629a5c04c Use only the readonly from group in Window Form
Since 12e08efd3872 the readonly of the Screen depends on the selected records.
But we still wants to save the modification from the Window Form even if a
deleted record is selected.

Closes #13321
(grafted from ff288e977366b41700c6da6f7131b0e9520e363b)

--HG--
branch : 6.0
2024-06-10 17:09:41 +02:00
Cédric Krier 5a6d9079d1 Set EV_BACKENDS_DIR to the backends directory of evince
Closes #13309
(grafted from 190fb5c8b47039b26c4870ec45c332fe6b7e5409)

--HG--
branch : 6.0
2024-06-07 20:48:09 +02:00
Cédric Krier 8e9791f3d2 Use file from the Binary field to display document
On Windows the file used to create the Evince document must be kept after the
initialization.
Also reusing the file cache mechanism of the Binary field, prevents to create
temporary files on each call of display.
Evince document needs to have the proper extension to be sure to load the
proper backend. So the cache file must be retrieved with the requested
extension.
And finally we use Document.factory_get_document_full so if leading with the
filename extension does not work, it will try to guess from the data.

Closes #13307
(grafted from 34deeaf3c0215f793c3e673de3ee2e04971ebee4)

--HG--
branch : 6.0
2024-06-07 20:42:40 +02:00
Cédric Krier bb5322686e Exclude records without dtstart or dtend from calendar view
Closes #13302
(grafted from f41e0738102a99a92027a140cc1859d406adae3e)

--HG--
branch : 6.0
2024-06-06 10:01:55 +02:00
Cédric Krier a5d1752a1d Increase version number
--HG--
branch : 6.0
2024-05-01 11:19:00 +02:00
Cédric Krier a0fcf6bb97 Prepare release tryton-6.0.39
--HG--
branch : 6.0
2024-05-01 11:18:45 +02:00
Cédric Krier bfb38de9c1 Support loading plugins without sources
cx_Freeze include only the bytecodes version of the translation plugin.

Closes #13208
(grafted from c06fd05a195bfb9bae5dd388a366c0d58c2005a4)

--HG--
branch : 6.0
2024-04-23 13:38:29 +02:00
Cédric Krier 664978a7b9 Use find_packages to fill packages for build_exe
Otherwise cx_Freeze does not include the translation plugin as it is
dynamically loaded.

Closes #13208
(grafted from 0ab3cefbe003fb39da8b2f3dbb265743ed763f36)

--HG--
branch : 6.0
2024-04-23 13:19:54 +02:00
Cédric Krier 1ce176db4a Ensure current record has been saved before execute button action
(grafted from 8d4e44642bd96d29436f327eb9eba591214fb7e7)

--HG--
branch : 6.0
2024-04-21 15:25:14 +02:00
Cédric Krier 765ec527aa Fallback to default model access if RPC request fails
(grafted from 5680160a1ab68e8e30e05265aef34eea44be0139)

--HG--
branch : 6.0
2024-04-18 19:22:07 +02:00