Nicolas Évrard
583d911bc8
Use grid layout to implement form container in sao
...
Closes #11966
2023-10-02 12:54:03 +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
208ac87281
Add support for scanning code
2023-07-04 17:50:50 +02:00
Cédric Krier
d3b553bf23
Reject deferred with the error as argument
2023-07-03 19:42:55 +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
93dc054222
Select current revision when showing the revision popup
...
Closes #12472
2023-08-14 19:44:38 +02:00
Cédric Krier
7b02a795c7
Do not use the lower revision when selected revision is empty
...
Closes #12472
2023-08-14 19:43:52 +02:00
Cédric Krier
23a718ab1d
Do not render deactivated actions in completion
...
The disabled attribute is not enough to prevent the click event.
So it is simpler to not render the action that are not supported like tryton
does.
Closes #12470
2023-08-14 09:56:36 +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
Cédric Krier
9cc5d449bb
Add missing new keyword when instantiate DomainInversion
...
The instantiation was added by changeset 47f8e9433d2d
2023-08-16 09:44:27 +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
Nicolas Évrard
99211dd03d
Activate EcmaScript 6 compatibility for tests
2023-06-15 22:30:30 +02:00
Cédric Krier
6f56a6ba8d
Do not parse as integer null value
2023-07-29 16:20:30 +02:00
Cédric Krier
2c6e156cf4
Add menu to copy selected record from tree view to clipboard
...
We convert the optional drop-down into a general tree menu with the copy
option.
Closes #12399
2023-07-13 15:41:06 +02:00
Cédric Krier
8e10419d60
Add get_textual_value function to Column
2023-07-13 15:39:31 +02:00
Cédric Krier
0c36d1ef96
Keep process exception value when recall after session renew
...
If the original RPC call did not want to process the exception, the recall
should not.
Closes #12411
2023-07-18 18:32:33 +02:00
Cédric Krier
7751e8bcc2
Pass the input name as argument to run function of AskDialog
...
The changeset 36ed62f49cec set the new argument at the wrong position.
Closes #12373
2023-07-24 23:31:37 +02:00
Cédric Krier
36cc241d92
Ensure to always revoke Object URL created for document widget
...
If object is loaded before the onload function is set, the Object URL is not
revoked. To be sure we revoke the previous Object URL and we set the function
before changing the data attribute.
2023-07-12 17:09:02 +02:00
Cédric Krier
041a3fb9b2
Support PYSON comparison of timedelta
...
Closes #10727
2023-06-15 17:06:13 +02:00
Cédric Krier
3c4be97ed0
Compare moment duration using valueOf
...
Closes #10727
2023-06-15 16:47:43 +02:00
Cédric Krier
a368d4a4b8
Use isMoment function
2023-06-15 17:07:36 +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
7fb22cc6aa
Do not call screen display when instance button modify a record
...
The method set_modified already take care of calling display to the proper
screens.
2023-07-03 19:49:02 +02:00
Cédric Krier
d7fcbe6383
Use for-of statement to loop over fieldnames array
2023-05-17 18:27:02 +02:00
Cédric Krier
4f51057888
Declare blob as variable in image_url
2023-05-17 12:00:23 +02:00
Cédric Krier
e76d45a2ff
Eagerly read string value of multiselection fields
...
The changeset 2763339d88d5 implemented the rendering of multiselection from
:string but the record does not read them.
2023-05-10 00:19:57 +02:00
Cédric Krier
3e25348967
Fix test for multiselection :string in record values
...
Closes #12261
2023-05-10 00:06:56 +02:00
Cédric Krier
b4c18f9d8f
Do not group calls to on_change if they can be cached
...
If the id is not in the depends, then the on_change calls can all be cached.
Closes #12219
2023-04-14 17:19:36 +02:00
Cédric Krier
6092ca035c
Group call to on_change_with for later fields
...
Closes #12218
2023-04-14 17:04:01 +02:00
Cédric Krier
ff17338ea5
Set type to Blob for SVG image
...
Without proper type, browsers do not render SVG image from Blob.
So we try to guess if it is an SVG image by trying to parse it as XML.
For other types, browsers render them without type.
Closes #12201
2023-04-30 00:57:46 +02:00
Cédric Krier
8d1fd00a23
Format sum without digits
...
Closes #12204
2023-04-30 00:06:09 +02:00
Cédric Krier
ab8a993c85
Use locale timezone to export CSV in locale format
...
Closes #12224
2023-05-07 10:08:24 +02:00
Cédric Krier
672e9c1a7b
Add headers attribute on table data cell of tree view
...
Closes #6669
2023-04-10 12:17:42 +02:00
Cédric Krier
63e6036c04
Display sum on column header
...
Closes #8134
2023-04-10 01:34:19 +02:00
Cédric Krier
5335a2022d
Convert sum attribute into boolean
2023-05-06 14:25:22 +02:00
Cédric Krier
d0d40d7f89
Restore scroll position to the position before loading more rows
...
When the scroll is at the bottom (and a footer is present), when new rows are
added the scroll stay at the bottom which trigger again to load more rows.
This continue until reaching the end of the tree.
To prevent this behavior we restore the position of the scroll using the
height from the top.
Closes #12223
2023-04-28 12:56:15 +02:00
Cédric Krier
22a72f4732
Do not add multiple times a more row
2023-04-28 12:53:04 +02:00
Cédric Krier
c03923f88b
Count optional column as visible if the tree is not traggable
2023-04-28 12:52:09 +02:00
Cédric Krier
54fad3a1c8
Store records selection on export
...
Closes #12179
2023-04-12 17:41:48 +02:00
Cédric Krier
1a11e103bf
Increase version number
2023-05-01 14:11:22 +02:00
Cédric Krier
1901135502
Prepare release 6.8.0
2023-05-01 13:19:11 +02:00
Cédric Krier
84a2b5e271
Update translations
2023-04-29 10:07:40 +02:00
Cédric Krier
1e8bb12c2d
Do not count header as exported record
...
Closes #12225
2023-04-28 08:43:09 +02:00
Cédric Krier
006d440c9f
Deduce evaluation length from the size limit of One2Many
...
Closes #12227
2023-04-19 10:45:29 +02:00
Cédric Krier
e444814cf7
Fill keyword arguments using dictionary to launch action
2023-04-12 18:27:55 +02:00