Commit Graph
3600 Commits
Author SHA1 Message Date
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
Cédric Krier 38b29f3bb4 Encode with gzip only if a session exists
Since 1923117e935d the server does not accept compressed content for
unauthenticated request.
(grafted from 97cbe01195da6938e7f718d07e436c8a2856e3a2)

--HG--
branch : 6.0
2024-04-18 19:15:47 +02:00
Cédric Krier 68b5724ab0 Set value in editable tree using the editable linked to the renderer
Closes #13078
(grafted from 56282fb2dc5fb61b7f41a3fee36ec3df082384c2)

--HG--
branch : 6.0
2024-04-14 17:12:52 +02:00
Cédric Krier 00015c36ac Always raise RPCException in RPCExecute
So when calling RPCExecute without processing exception, all exceptions can be
catch with RPCException.

Closes #12874
(grafted from 372dbf53977e872ae62dbc8d6ce5bdc3bcacec69)

--HG--
branch : 6.0
2024-04-14 11:07:33 +02:00
Cédric Krier 3478483b5d Parse text as datetime when it is a string
The on_paste method is calling value_from_text for each widget using the
string from the clipboard.
So textual value needs to be supported even for date and time widgets which
uses a cell renderer that provides datetime value.

Closes #12860
(grafted from 06448d7bdb976b7057a465ca332bbc638e91653e)

--HG--
branch : 6.0
2024-04-14 10:56:27 +02:00
Cédric Krier 6f06be1681 Test if current view is defined on screen before using it
Closes #13178
(grafted from 6f0ae4c7719fbf129ffd0221aa9b1fa008df23e2)

--HG--
branch : 6.0
2024-04-13 15:35:15 +02:00
Cédric Krier d6767cfdc9 Set visibility property always to the entry widget
When the password widget has autocomplete activated, the entry is a combobox.

Closes #13166
(grafted from e159bd2cd8bf9aa408ce8cda144ef41195f01ea3)

--HG--
branch : 6.0
2024-04-05 18:09:19 +02:00
Cédric Krier 50ae2f0b36 Do not hide visibility checkbox on readonly password
Closes #13165
(grafted from d5e4cb50c2bcfd90ab0e8b09679f5b435bbb681e)

--HG--
branch : 6.0
2024-04-05 18:06:23 +02:00
Nicolas Évrard dba3816926 Check for the existence of a screen before restoring size of wizard's dialog window
Closes #12944
(grafted from af40ac94803e01092fccbdc553cc772f251b9abd)

--HG--
branch : 6.0
2024-04-13 17:42:02 +02:00
Cédric Krier 8c306cf958 Increase version number
--HG--
branch : 6.0
2024-04-17 12:30:46 +02:00
Cédric Krier 0e3b8a9864 Prepare release tryton-6.0.38
--HG--
branch : 6.0
2024-04-17 12:30:33 +02:00
Cédric Krier d22c7f6a44 Return False on the callback on readonly window Form
When a readonly Form is closed, the callback result should always be False as
the opened record has not changed.

Closes #13156
(grafted from 9ad99fba8a531f2456d1808f32fe3b9fbc598f2e)

--HG--
branch : 6.0
2024-04-02 16:39:06 +02:00
Cédric Krier 2213535404 Use format from server locale as fallback for date in graph view
Closes #13112
(grafted from e775636be6cacf93c9250070ce9b17e40977075f)

--HG--
branch : 6.0
2024-03-21 09:47:45 +01:00
Nicolas Évrard 1ffdad78ce Use PYSON's Bool evaluation for PYSON's Not evaluation
Closes #13096
(grafted from 009133813b11f264b5e038dc9c5912dc9e0101cb)

--HG--
branch : 6.0
2024-03-11 16:35:39 +01:00
Cédric Krier 6e8444d76f Increase version number
--HG--
branch : 6.0
2024-04-04 09:41:14 +02:00
Cédric Krier 2cea109575 Prepare release tryton-6.0.37
--HG--
branch : 6.0
2024-04-04 09:41:00 +02:00
Cédric Krier a319f053ce Put gir libraries under lib also for Windows
cf5adeee978b did it for darwin but it is also useful for Windows to avoid
duplicate dlls.
(grafted from 44cacb4235be628f9d3ab902e4d72e9a9b8d3381)

--HG--
branch : 6.0
2024-03-23 18:17:05 +01:00
Cédric Krier e7892f306a Do not include locale of build system
They should not be needed as tryton uses only its own strings.
(grafted from 6ab2bf23e580b4df2a2bb488dab96286f8ebfccb)

--HG--
branch : 6.0
2023-11-04 19:52:58 +01:00
Cédric Krier 662ca92896 Do not copy tryton data and plugins in frozen build
Since d94c92c1de67 the library is no more compressed so those package data are
already in the usual place.
(grafted from 867d962ffbe4657643961554fefc952eb007d9f7)

--HG--
branch : 6.0
2023-11-04 19:51:52 +01:00
Cédric Krier 72aa4af832 Include shared libraries in lib folder for darwin build
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we must include shared libraries in the lib folder to be available.
(grafted from cf5adeee978b9ff2de9fc2229c9cd82c63b98302)

--HG--
branch : 6.0
2023-11-04 19:48:03 +01:00
Cédric Krier 44d3135067 Replace etc directory by share for frozen build
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we need to store etc content in share to be available.
(grafted from c9bb18c11e4a736c4ada1ea9f740ec8609dc3590)

--HG--
branch : 6.0
2023-11-04 19:44:09 +01:00
Cédric Krier 4da191fd3c Remove readthedocs
(grafted from 2f67994e59b0bca29d7b0632a51540774b109140)

--HG--
branch : 6.0
2024-03-04 00:52:20 +01:00
Cédric Krier 07aadadd36 Increase version number
--HG--
branch : 6.0
2024-02-15 19:28:40 +01:00
Cédric Krier 81e9a6690d Prepare release tryton-6.0.36
--HG--
branch : 6.0
2024-02-15 19:28:25 +01:00
Cédric Krier a6e29407c0 Add support for timestamp field as datetime in domain parser
Closes #12776
(grafted from c2d266d5fd2591477a400f44d772e0dea499fee6)

--HG--
branch : 6.0
2024-01-30 12:07:21 +01:00
Cédric Krier dd070b97be Increase version number
--HG--
branch : 6.0
2024-01-16 00:10:50 +01:00
Cédric Krier 470d077b78 Prepare release tryton-6.0.35
--HG--
branch : 6.0
2024-01-16 00:10:35 +01:00
Cédric Krier d16cfa7372 Compute length of inserted text in bytes
Closes #12138
(grafted from ec763bf108d6cc7341c0d0b661a6b2af2a054ab7)

--HG--
branch : 6.0
2023-12-23 18:21:35 +01:00
Cédric Krier 67244d9167 Catch InvalidOperation when rounding inserted number
Closes #12866
(grafted from 1d56c462e03ce4eb93a1cd1e4dad10cd736e1105)

--HG--
branch : 6.0
2023-12-23 01:39:53 +01:00
Cédric Krier 7614b407ee Convert negative id value as None when set by the client
Domain inversion may force a unique value based on the default value from
PYSON evaluation. In such case it means that no record can be set.

Closes #12799
(grafted from 48463dae759ea1473b258ed905ba2c15fe96e10c)

--HG--
branch : 6.0
2023-12-17 23:39:16 +01:00
Cédric Krier db3fdf15a9 Increase version number
--HG--
branch : 6.0
2024-01-01 13:03:51 +01:00
Cédric Krier ec7af55466 Prepare release tryton-6.0.34
--HG--
branch : 6.0
2024-01-01 13:03:36 +01:00
Nicolas Évrard e8954e3a7b Mark M2M records for addition in parent after they're saved
Closes #12832
(grafted from 4e8ff04aef3a2bfd175e2c77db1421810adc5159)

--HG--
branch : 6.0
2023-12-14 17:54:27 +01:00
Maxime Richez 80cff291b3 Run setup.py explicitly with python3 to get version when freezing
Closes #12831
(grafted from 7a8b1987503801d213f9de2b4c986bbc9166a1fa)

--HG--
branch : 6.0
2023-12-23 02:06:45 +01:00
Cédric Krier 5cbd91118c Add None value to selection for nullable_widget when search_read fails
Closes #12838
(grafted from 539dc9578430153096430ec794016b0958694552)

--HG--
branch : 6.0
2023-12-17 21:13:12 +01:00
Cédric Krier 9fe9a0674f Do not read record name for value None for inactive selection
Closes #12838
(grafted from cf35deaf9f1219bdad297c258960d314fbbc538f)

--HG--
branch : 6.0
2023-12-17 21:12:41 +01:00
Cédric Krier db06f3f598 Increase version number
--HG--
branch : 6.0
2023-12-16 10:52:56 +01:00
Cédric Krier 1017289112 Prepare release tryton-6.0.33
--HG--
branch : 6.0
2023-12-16 10:52:41 +01:00