Commit Graph
80 Commits
Author SHA1 Message Date
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
Cédric Krier 9e0ba4502d Do not set s nor p parameter to export URL if screen has no limit
Closes #12212
2023-04-12 18:40:49 +02:00
Cédric Krier fa2f85adbe Set limit attribute only if defined in URL
Closes #12211
2023-04-12 18:35:52 +02:00
Cédric Krier dc7ab1b9f5 Do not fail to set button state if there is no record
The readonly attribute of record must only be used if there is actually a
record.

Closes #12189
2023-04-05 18:33:38 +02:00
Nicolas Évrard 23304fc2e0 Handle string value set from domain inversion in MultiSelection fields
Closes #12181
2023-04-03 17:02:51 +02:00
Cédric Krier 17bbce3919 Log events for ModelStorage
It logs by default:
 - the write and delete done directly by the users
 - the execution of a button
 - the execution of wizard state that has modified the database
 - the workflow transition to a new state
2023-02-08 19:03:29 +01:00
Cédric Krier 276cf8277b Disable button and action when screen and records are readonly 2023-03-19 01:44:45 +01:00
Cédric Krier bb0445d52d Set record as readonly when group is readonly 2023-03-19 01:44:05 +01:00
Cédric Krier 0bff126745 Disable new button when record is modified
To simplify the management of the state of button, activate_save is merged
with set_buttons_sensitive.

Closes #8053
2023-03-19 01:20:45 +01:00
Cédric Krier c7a0be2a76 Call record saved after saving the current record of the screen
Since 403bc7a95b0a record_saved has been implemented but it is not called by
the Screen when saving record.

Closes #12117, #12137
2023-03-09 00:21:06 +01:00
Nicolas Évrard 4dfea2f82c Catch error when rendering cells in treeviews
Closes #11835
2023-03-01 18:21:10 +01:00
Cédric Krier c2f8c05724 Instantiate with jQuery elements from .each when clearing info bar
fae13a75319f introduced clearing per kind but .each method return DOM element
instead of jQuery instance.
2023-03-09 00:14:45 +01:00
Cédric Krier 54630b81dc Remove unused set_value method from board action
Closes #5046
2023-02-20 17:03:50 +01:00
Cédric Krier 82b0f2779b Enforce unique value for invisible field
Closes #12034
2023-02-11 18:07:06 +01:00
Cédric Krier 98adfc2c3e Add kind to info bar message to keep notification message longer
The notification message should not be cleared when the record is changed but
only when a new notification is computed.

Closes #12050
2023-01-30 00:23:16 +01:00
Cédric Krier 7843e47389 Add scroll time for calendar view 2023-01-28 10:42:58 +01:00
Cédric Krier 90c3c5cc13 Compute calendar height to fit to the page of sao
This way if needed the scroll bar are inside the fullcalendar view and it can
scroll to an initial time.
2023-01-27 23:38:55 +01:00
Cédric Krier 1d0bd3aef6 Remove user name placeholder which repeat the label
Closes #7180
2023-01-23 23:28:09 +01:00
Nicolas Évrard c989938e68 Do not trigger button on not selected records
Closes #11824
2023-02-03 18:19:31 +01:00
Cédric Krier 3c771cff02 Implement listed records for calendar and list-form views 2022-12-31 00:57:23 +01:00
Cédric Krier 56a332d18e Set record as modified after calling changed
The record must be modified after the call to changed because set_modified
trigger the changed calls of the parent which need to have the changed values.

Closes #12065, #12072
(backout 6b882007fd6e)
2023-02-06 18:09:20 +01:00
Cédric Krier 58d00ed942 Search also for select tag for the focus chain
Closes #12051
2023-01-30 00:44:18 +01:00
Nicolas Évrard 5414f334e8 Restore tree sates on List Form
Closes #12023
2023-01-19 19:03:42 +01:00
Nicolas Évrard 7d4a991104 Do record (pre)validation and saving on selection change for list-form views
Closes #12025
2023-01-29 00:56:28 +01:00
Cédric Krier a6419fd273 Append domain label to link
The domain labels are replacing the link label instead of being appended.
2023-01-26 14:56:44 +01:00
Cédric Krier e7d357098f Set correct limit/offset in search_count of Link
a96bf0b0b065 adds limit to the search_count call but the argument position is
wrong in the call for the Link widget.
2023-01-26 14:55:50 +01:00
Cédric Krier 5403074f1d Convert empty value as null instead of 0 in Dict numeric fields
Closes #12038
2023-01-25 00:38:36 +01:00
Cédric Krier 65c8d8dd36 Set width on numeric input instead of the input group
Closes #12037
2023-01-25 00:28:00 +01:00
Nicolas Évrard 5ea2598611 Call set_modified on record in set_client
403bc7a95b0a introduced set_modified as a record method but not a field one.
It was unfortunately called on the field in set_client in the same commit.

Closes #12061
2023-02-01 17:54:26 +01:00