Cédric Krier
9bc84b4fef
Prepare release tryton-7.0.1
...
--HG--
branch : 7.0
2023-11-03 17:39:01 +01:00
Cédric Krier
4f438848f2
Use list to declare requirement for tryton with sound
...
Closes #12690
(grafted from ab3c8c0dd5a9ab5d3e73ea148a86e6750eeb62ff)
--HG--
branch : 7.0
2023-10-30 23:48:16 +01:00
Cédric Krier
6e4f495caf
Do not fail when parsing invalid Decimal value in number entry
...
Closes #12692
(grafted from f9c0481e7aad3c8229f1660d7367b0edd803389b)
--HG--
branch : 7.0
2023-10-31 21:42:11 +01:00
Cédric Krier
89575bd6f1
Round with decimal digits when applying factor on float and numeric field
...
Closes #12692 #12669
(grafted from 2e101522378ff2acecc6c3d1a203a957aeff33f4)
--HG--
branch : 7.0
2023-10-31 21:41:23 +01:00
Cédric Krier
6c91d493b6
Increase version number
...
--HG--
branch : 7.0
2023-10-30 18:49:03 +01:00
Cédric Krier
65f477f731
Prepare release 7.0.0
2023-10-30 18:17:32 +01:00
Cédric Krier
204a5d7625
Set current record explicitly after loading records on screen
...
Since ab82d479eca1 screen load does not set current record but some widget
relies on it. So they must set explicitly the current record they need.
Also when a current record is not needed, there is no need to call display
after loading because load already calls display.
2023-10-29 12:59:58 +01:00
Cédric Krier
e529c624f5
Disable switch button on non form view without selected record
...
This prevents to switch to a form view without a record.
2023-10-25 13:36:40 +02:00
Cédric Krier
1ab2948473
Do not set current record when displaying screen
...
Changing the current record while displaying trigger record_message which
calls set_buttons_sensitive. As the view is not yet updated, it is considered
as modified and the state of the buttons are no more valid.
Closes #12664
2023-10-25 12:22:31 +02:00
Cédric Krier
c577fad900
Update translations [skip ci]
2023-10-28 14:15:23 +02:00
Cédric Krier
cfde98e54a
Backed out changeset fc478f7d7004
2023-10-28 00:16:32 +02:00
Nicolas Évrard
a09de147a6
Add timeout parameter on RPC calls
...
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier
ff376d7d01
Prevent storing Decimal with too much trailing zero
...
The trailing zero are kept in the Decimal and rendered in the string
representation which is unexpected for a field with limited digits.
Closes #12587
2023-10-21 14:12:12 +02:00
Cédric Krier
9673660703
Clear cached string of selection fields when client changes the value
...
Closes #12656
2023-10-19 15:49:30 +02:00
Cédric Krier
4e010a988f
Add support for Python 3.12
2023-10-22 19:40:55 +02:00
Cédric Krier
2d599f67cf
Replace pkg_resources by importlib
...
pkg_resources is deprecated in favor of importlib.resources,
importlib.metadata.
2023-10-23 16:49:01 +02:00
Cédric Krier
058b8988a0
Use more explicit message for unknown column header when autodetecting CSV
...
Closes #12631
2023-10-11 11:54:27 +02:00
Cédric Krier
325c4866a6
Use distinct icons for save and download
...
Closes #12627
2023-10-09 14:41:24 +02:00
Cédric Krier
ccf653da1d
Support create record from autocomplete with default values
2023-09-26 23:45:07 +02:00
Cédric Krier
96c2cd16f1
Use defaults dictionary for new default values
...
Replace the rec_name argument by a dictionary of default values.
2023-09-26 14:55:34 +02:00
Cédric Krier
92b3416d79
Add autocomplete method on ModelView
2023-09-25 17:22:40 +02:00
Cédric Krier
d2908701c6
Use dedicated method to skip user warning
2023-09-24 13:23:53 +02:00
Cédric Krier
01b47f30c8
Remove own view search access rules
...
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:29 +02:00
Cédric Krier
0dfb4dc591
Remove own export access rules
...
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:40 +02:00
Nicolas Évrard
3f8c74138f
Reset state of records when a sibling is in exception on node collapse
...
When loading a record raises an error, the record stays in error forever.
With the node resetted to an unloaded state another opening of the parent node
will trigger a reread which solves the transient errors
Closes #12463
2023-08-14 17:57:19 +02:00
Cédric Krier
abfee0de15
Block row selected handler when unselect all of list-form
...
aa8eb78f1b75 and d0c1933ce509 blocked the wrong method before calling
unselect_all.
Closes #12451
2023-09-24 21:09:34 +02:00
Nicolas Évrard
3d204e96ce
Stop the edition of Selection fields in editable Treeviews on focus-out
...
Closes #12308
2023-06-05 19:09:46 +02:00
Cédric Krier
edbc6f1eb4
Always show entry of URL widget in form
...
This allows to copy the URL without opening it even if it is readonly.
Closes #1340
2023-08-18 20:46:02 +02:00
Cédric Krier
684c8c9444
Use more meaningful label for buttons on window form
...
The label of each button depends on its behavior defined by the configuration.
It is implies that all buttons close the dialog so it is omitted.
Closes #12369
Closes #12372
2023-08-31 12:27:08 +02:00
Cédric Krier
a72acf0402
Do not use save button for readonly screen
...
Even if save_current is set, a readonly screen is never saved on response.
Closes #12538
2023-08-30 15:50:30 +02:00
Cédric Krier
b90baa9fac
Do not set automatically as value the unique record found
...
As search is fuzzy (done with ilike) we need to ensure that the user validate
the value by selecting it.
Closes #11840
2023-07-03 22:52:19 +02:00
Cédric Krier
208ac87281
Add support for scanning code
2023-07-04 17:50:50 +02:00
Cédric Krier
bc5a28a50c
Use _changed_values to return result of on_change_with
...
This allows to support add/update/remove/delete for xxx2many fields and
rec_name for xxx2one and reference fields.
Closes #12473
2023-08-16 16:11:51 +02:00
Cédric Krier
fe66322ab1
Use on_change_result for on_change call
...
The ModelView.on_change method returns directly the changed values instead of
a list with the changed values.
2023-08-16 09:37:26 +02:00
Cédric Krier
310d8d1daf
Set visibility of active button when screen is displayed
...
Setting it on the domain parser property does not ensure that it is always set
if the parser has been cached or the context screen is not valid.
Also it is not right that accessing a property trigger a change of state.
As the button visibility can change between views, the active domain must only
be added if the button is currently visible.
Closes #12549
2023-09-04 18:32:52 +02:00
Cédric Krier
6a06579e13
Use Sphinx book theme for documentation
2023-09-01 09:44:09 +02:00
Cédric Krier
030dce36ac
Remove biginteger widget from tryton and sao
...
Since 73fe133d7a2c trytond does not have anymore a biginteger type.
2023-08-18 20:50:15 +02:00
EdbO
0e203ba32a
Add a warning in documentation for desktop client when switching to SSL/TLS
...
Make it clear that the host must not exists in the `know_hosts` file and
that the right CA certificate must be in `ca_certs`
Closes #12446
2023-08-03 11:43:21 +02:00
Cédric Krier
de1386328b
Update style for flake8 6.1.0
...
Closes #12475
2023-08-16 11:49:30 +02:00
Nicolas Évrard
71e9eb854e
Reset search offset when domain has changed
2023-08-14 22:33:15 +02:00
Nicolas Évrard
82ae036d3a
Add a canonicalize function for domains
2023-08-14 22:32:14 +02:00
Cédric Krier
b7e30235fd
Round and convert numeric value after applying factor
...
Closes #12381
2023-07-29 16:21:33 +02:00
Cédric Krier
adc26533da
Add .readthedocs.yaml configuration [skip ci]
...
This is required by Read the Docs service:
https://blog.readthedocs.com/migrate-configuration-v2/
Closes #12344
2023-08-06 11:06:08 +02:00
EdbO
873a52f239
Cache the url for authentication service
...
When starting the desktop client you can select a profile. And by doing
that, the client sends a request to fetch the authentication services.
The data of the request is then cached but the url is not so the client
forget about it. Because of the cached data, when selecting a particular
profile data is taken from the cache but the url is not updated leaving
it unchanged and empty or with a url from last request.
Closes #12440
2023-08-03 16:38:32 +02:00
Cédric Krier
6c9f4422d4
Do not catch error in get_textual_value of Reference widget
...
Closes #12400
2023-07-13 15:47:10 +02:00
Cédric Krier
a538687b8d
Show in shortcut help dialog the copy/paste shortcuts for tree view
2023-07-13 15:48:41 +02:00
Cédric Krier
5020fc60e7
Create screen with the mode from the action views
...
d800175396c4 changed the parameter name into view_mode instead of mode.
Closes #12332
2023-06-18 17:42:36 +02:00
Cédric Krier
041a3fb9b2
Support PYSON comparison of timedelta
...
Closes #10727
2023-06-15 17:06:13 +02:00
Cédric Krier
d7aaac6740
Support encoding timedelta into PYSON TimeDelta
...
Closes #10727
2023-06-15 13:57:15 +02:00
Cédric Krier
865f5d4caf
Call load method on record to retrieve binary value for binary widget in list
...
The call to fetch was introduced in 61900bf04dfb but the method does not
exist.
Closes #12392
2023-07-12 15:13:32 +02:00