Commit Graph
116 Commits
Author SHA1 Message Date
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 0108d926c5 Ensure to set grid template after the widgets have been displayed 2023-10-02 17:29:19 +02:00
Cédric Krier d61e939339 Do not use .hidden class to mark cell in grid as hidden
In e5446fb8d4ce the .hidden class is added to cells to remove the padding of
empty but Boostrap defines the same class with display none.
So once a cell is marked as hidden, it stays hidden.
2023-10-02 17:28:01 +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
Sergi Almacellas Abellana 81c3d0c95c Set focus on Many2One entry after clearing its value in sao
Closes #12550
2023-10-07 19:14:23 +02:00
Cédric Krier 1c27be9a3e Record.get_eval must return only loaded values
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.

Closes #12415
2023-09-24 19:01:07 +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
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
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