Commit Graph
225 Commits
Author SHA1 Message Date
Nicolas Évrard ddef8d7c06 Return an empty URL when the icon name is invalid
issue7904
review70461002
2019-06-04 17:38:17 +02:00
Cédric Krier 07452ba2dc Reduce number of promises when rendering tree
We preload the first field of the first row if needed. This should ensure that
the following records are also loaded.
And we do not call load if the field is already loaded to avoid to create a
promise.

issue8199
review265411002
2019-06-03 15:45:06 +02:00
Cédric Krier e3f964f3f8 Use same definition format for dict key than field
This will allow to use the dict keys as relational fields and allow the client
to use them for domain parsing.

issue8295
review273311002
2019-06-03 15:37:49 +02:00
Raimon Esteve ace735ac21 Correct widget name of binary in treeview
issue8337
review261441002
2019-05-09 09:31:58 +02:00
Cédric Krier 252b6fb378 Do not rely on field views to load form fields
If the views attribute of the field is wrong or empty, the record will not
load the value for this field. The views attribute can be empty if it was
created by copying the field from its parent.
So it is safer to not rely on this attribute which is there only for
optimization and instead always use all the fields defined on the view.

issue8289
review263471002
2019-05-05 19:33:48 +02:00
Cédric Krier 6970729b7d Do not reuse the same loop variable inside nested loop of affixes
issue8314
review253421002
2019-05-02 12:56:40 +02:00
Cédric Krier 90cd8f9101 Add missing add_remove to search domain of Many2Many
issue8251
review273281002
2019-04-23 11:59:40 +02:00
Nicolas Évrard c1dd32af8c Add list-form view
issue8185
review255091002
2019-04-08 15:06:36 +02:00
Cédric Krier 2056f1914b Do not use width attribute on column
If all columns have it, the widths will be distributed to a all columns even
the select column.

issue8219
review271111002
2019-04-04 19:13:20 +02:00
Cédric Krier c072a28134 Set from with a record in select_records when empty
from must be a record as it is compared against other records but it should be
set only if there is a to (to make a valid range).
2019-04-01 19:10:36 +02:00
Cédric Krier f8a1908d11 Add HTML editor
issue8004
review54481002
2019-03-30 16:04:45 +01:00
Cédric Krier 13777b21b0 Do not propagate click on selection cell
but select the checkbox instead.

issue8209
review287071002
2019-03-28 19:31:18 +01:00
Sergi Almacellas Abellana 2610f65d56 Add day view on calendar
issue7774
review66441002
2019-03-28 12:26:19 +01:00
Cédric Krier 809a2f5050 Add background color to selected rows
issue8210
review273121002
2019-03-22 18:20:32 +01:00
Cédric Krier 993166e422 Remove shortcuts from labels 2019-03-22 11:40:32 +01:00
Cédric Krier 8935354237 Add missing variable declaration
introduced by changeset 2fc36d9e359b
2019-03-16 15:18:46 +01:00
Cédric Krier 85827c9849 Fix dict widget name
A typo was introduced in changeset 2fc36d9e359b
2019-03-16 14:58:46 +01:00
Cédric Krier 7ab6adcf61 Test not field instead of undefined
issue8188
review255091005
2019-03-15 11:19:26 +01:00
Cédric Krier c9d05b4b14 Add missing implementation of get_fields on views
issue8131
2019-03-13 19:30:13 +01:00
Cédric Krier 31f61c1a0c Use separate XML parser in Views
issue8131
review54561002
2019-03-11 12:02:58 +01:00
Cédric Krier 1c689e2412 Add size attribute to image tag
issue8146
review49781002
2019-03-09 17:10:34 +01:00
Cédric Krier 284369d130 Add range selection with Shift-click
issue5126
review47851002
2019-03-08 23:56:12 +01:00
Nicolas Évrard e1aae61d5d Remove forgotten usage screen.current_record in widget
issue8067
review62411002
2019-03-07 18:01:32 +01:00
Nicolas Évrard 296a60613b Remove use of screen.current_record and screen.group from views
issue8067
review62411002
2019-03-01 15:05:50 +01:00
Cédric Krier e7d8808c4e Keep all records selected when clicking more
When more is clicked, the display_size is increased and display is called with
no selected value. We need to check for the selection state to include in the
selected the future new rows.

issue7712
review60571002
2019-02-26 16:07:34 +01:00
Cédric Krier 6ee36ce4d5 Make input in reference widgets take 50% each one
This avoid the reference widget to overflow to other cells when used in an
editable tree. But to be able to use just 50%, we need to remove the '-'
between the two inputs.

issue8116
review54541003
2019-02-26 15:47:57 +01:00
Nicolas Évrard 0bb7ce4af7 Use properties
issue8109
review47811003
2019-02-14 16:31:31 +01:00
Cédric Krier d3ae675c97 Add support for height and width on notebook
issue8078
review45921002
2019-02-13 10:58:33 +01:00
Cédric Krier 61523d8975 Only parse the date content on Enter
It should not set the date value to today but only parse the existing input as
a date.

issue8043
review50741002
2019-02-13 10:25:09 +01:00
Cédric Krier 9883aaaef8 Ignore operators on readonly date widget
Readonly date should not be modified by operators.

issue7932
review47791002
2019-02-10 13:16:33 +01:00
Cédric Krier 14831f35c6 Fix typo recor -> record
issue8020
2019-02-09 01:06:17 +01:00
Cédric Krier 21ed1a8c3a Use horizontal form for Dict widget
This allows to vertically align label and input.
It reduces also the space for label and limit the size of checkbox.
It align the search input with others and add a placeholder.

issue7990
review45881002
2019-02-03 20:44:50 +01:00
Cédric Krier 2e772a776c Share the same behavior between Form and Dict widgets
The input numbers can share the same behavior between Form and Dict.

issue7989
review70491003
2019-02-03 20:41:51 +01:00
Cédric Krier 0deee46c8e Use standard Array.sort and do not update search_count when only ids
The current implementation of Group.sort is not correct because it does not
guarantee to replace all the records if the ordered list does not contain all
the existing records. So it is better to use the standard Array.sort method.
Also the search_count should not be updated when doing a search only for ids
as the number of record does not change.

issue8042
review50731002
2019-02-03 20:29:41 +01:00
Cédric Krier 6410b91ace Missing translation of ':'
issue8041
review54501002
2019-02-03 20:19:41 +01:00
Nicolas Évrard 02c3e14fd5 Use record and field properties of widget instead of method arguments
issue8020
review58491002
2019-01-23 16:58:11 +01:00
Nicolas Évrard 5be8698ac2 Do not prevent to reset X2Many widget when no record is linked to the form
It can occur when for example, you delete a record. The current code skipped
the reset of the widget which made it stays filled.
2019-01-23 14:37:31 +01:00
Cédric Krier 836018b70c Keep column arrow up to date
When an order is set on a One2Many widget and the user reload the form, the
selected order is lost and so the client should no more display those arrow.
For that we update the arrows on each display using the screen order. And we
unset the screen order when the group change as we do not know the order of
this group.

issue7817
review70481002
2019-01-02 18:56:34 +01:00
Cédric Krier ea0fe3d620 Do not recycle first record as product result
It is not affected by issue7941 but we follow anyway the same algorithm for
both clients.

review58461002
2019-01-02 18:53:45 +01:00
Cédric Krier a262098879 Ensure translate_widget_set is always called with string
issue7922
review56511002
2018-12-30 00:17:57 +01:00
Cédric Krier ac5b8d5fbd Add support for expand, height and width attributes
issue7886
review51581002
2018-12-22 00:19:20 +01:00
Cédric Krier f4147cfbc9 Do not use is visible to count non invisible columns
If the table is hidden by a tab, all the headers are invisible and the
responsive class is not correctly set.
We need to have a special class for the menu to avoid responsive behavior
because it has two columns even if the thead is invisible.

issue7849
review50621002
2018-11-28 09:54:15 +01:00
Cédric Krier 4af35ca4f2 Correctly test for empty selected list
issue7818
review54411002
2018-10-31 18:34:37 +01:00
Cédric Krier 0fb0adfcc9 Change modal-body overflow on datepicker show
Since 9f1aa32d4c75, modal-body as overflow-x auto, when the completion is
shown the browser adds a scrollbar to the modal-body and the completion is not
visible.

issue7582
review54361002
2018-09-24 14:31:44 +02:00
Cédric Krier d81ea3e05a Pass index to select_column
The call has changed in changeset 1b004f5795c3 such that no event is passed.

issue7699
review48601002
2018-09-14 22:49:29 +02:00
Sergi Almacellas Abellana 09c8f49314 Ensure hidden column is shown when domain inversion is no longer applicable
issue7670
review56351002
2018-09-06 10:44:32 +02:00
Cédric Krier d20385d9fc Add default focus method on Form Widget
The editable tree is calling this method to set the focus on the edited widget
so it must be part of the API of Widget.

issue7661
review54321002
2018-09-02 10:56:43 +02:00
Cédric Krier f3796ec776 Use dropdown for attachments
issue7659
review50551002
2018-09-02 10:44:38 +02:00
Cédric Krier fcd3cffffd Replace group buttons by icons in input
issue7654
review54311002
2018-09-01 16:52:42 +02:00
Cédric Krier aab6fafe4e Expand row on first click
issue7656
review64341002
2018-09-01 10:51:15 +02:00