Commit Graph
1346 Commits
Author SHA1 Message Date
Cédric Krier d2a11fcba1 Allow unselecting a predefined export
We just toggle the class instead of always add it on click and set the export
only if the resulted element has the class.

issue8628
review280031005
2019-09-07 23:32:47 +02:00
Cédric Krier 3b03a6e621 Record.reset does not return a promise anymore
Since 8345380bb435, we should Call display just after the call to reset.

issue8627
review270191002
2019-09-07 23:30:28 +02:00
Cédric Krier 43b8eca5b4 Show dynamic readonly widget in editable tree
We must render such widget to be able to display them when they are no more
readonly. And we must ensure they are loaded and the states is computed when
displayed.

issue8626
review280041002
2019-09-07 23:26:10 +02:00
Cédric Krier ad7e4b9592 Prevent event when leaving invalid cell
issue8625
review273931002
2019-09-07 23:24:07 +02:00
Cédric Krier 02f0f3c972 Wait written and parent reload promises before calling display
issue8623
review265921016
2019-09-07 23:22:12 +02:00
Cédric Krier 4b6176de26 Declare fields from fields_get RPC
issue8621
review272131002
2019-09-07 23:20:50 +02:00
Cédric Krier 0e4419917c Implement and use scrollIntoViewIfNeeded instead of scrollIntoView
It is a better user experience to not scroll if the element is already visible.

issue8619
review258021002
2019-09-07 23:19:17 +02:00
Cédric Krier fb22f4a232 Add one day to minimal date to allow reset time
Setting time to zero make the date goes backward and outside the supported
range by JavaScript.

issue8614
review277781002
2019-09-07 23:17:44 +02:00
Sergi Almacellas Abellana 3d6427ed73 Update to PapaParse 5
issue8581
review277711002
2019-09-03 13:16:22 +02:00
Cédric Krier eeaa615f7e Remove horizontal margin on filter box
issue8600
review285861003
2019-09-02 18:38:10 +02:00
Cédric Krier 3a48911870 Use panel for tab content
issue8599
review262031002
2019-09-02 18:36:52 +02:00
Cédric Krier b513ae9994 Replace child_of target only if it is not a related field
issue8609
review285911002
2019-09-02 18:34:55 +02:00
Cédric Krier 5ea10804aa Set focus on the form if it does not have it
When set_cursor is called, it should force to set the focus on the first
focusable widget of the form.

issue8604
review258011002
2019-09-02 18:33:18 +02:00
Cédric Krier 24a88b7999 Add input-icon classes on date widget of Dict
issue8608
review277761002
2019-09-02 18:31:43 +02:00
Cédric Krier 58ea79382a Do not consider readonly/non editable widget as focusable
issue8475
review277751002
2019-09-02 18:28:23 +02:00
Cédric Krier c0f922a557 Do not set tab_domain in URL if empty
issue8602
review260081002
2019-08-30 09:02:49 +02:00
Cédric Krier 9b68aaa3e3 Test the right parameter in Tab.Board.compare
issue8601
review285891002
2019-08-25 13:01:53 +02:00
Cédric Krier 8210effa65 Always normalize RichText values when comparing
issue8582
review262011002
2019-08-25 12:46:56 +02:00
Cédric Krier 68462c0576 Do not expect promise from Record.set
Since issue8482, Record.set does not return a promise anymore.

issue8585
review264081002
2019-08-22 22:44:38 +02:00
Cédric Krier 79f1ce16fc Avoid display in switch_view when creating new record
The display in switch_view is useless as a second call is made after setting
the new record.

issue8539
review267711002
2019-08-18 18:57:29 +02:00
Cédric Krier 67285ecbc3 Correctly test empty fieldnames in on_change_with
issue8537
review273661002
2019-08-18 18:55:19 +02:00
Cédric Krier 6b9d63ca46 Add local context to get context without session context
The issue8312 was to strict by its usage of Group._context as it misses the
context_model, the parent context or the _datetime keys.
Instead we introduce a second type of context which provides the same context
but without the session part.

issue8463
review255831002
2019-08-18 18:51:54 +02:00
Cédric Krier 729412b116 Use grunt dev for development
issue8564
review254071003
2019-08-12 12:55:48 +02:00
Cédric Krier db1ff7f5ae Avoid create a promise for each row of a tree
issue8536
review283821003
2019-08-12 12:54:18 +02:00
Cédric Krier 5234481cdc Do not render cell if the record has not changed since last time
Avoiding DOM manipulation speed up the display of the tree.

issue8534
review275781002
2019-08-12 12:48:37 +02:00
Cédric Krier 2dca2d14c0 Use empty list with invalid field has not widget
When setting the cursor, the invalid field may not have any widget on the
current form.

issue8559
review265761002
2019-08-12 12:20:52 +02:00
Cédric Krier f4410f15e2 Do not push paned in containers list
issue8558
review265751002
2019-08-12 12:18:35 +02:00
Cédric Krier 5f91e10c06 Ensure DomainParse.group returns a list of clause
issue8520
review255681002
2019-08-07 19:22:59 +02:00
Cédric Krier f6684bb08b Set wizard name for dialog and unify wizard name management
issue8535
review287841002
2019-08-07 19:21:30 +02:00
Cédric Krier 7c0a248ec3 Prevent navigation key on completion input to leave the row
We do not propagate down key event on input completion and skip keydown event
from dropdown menu inside editable tree.

issue8507
review263901002
2019-08-07 19:17:15 +02:00
Cédric Krier ac73f7932c Do not display expander on record without children
issue8518
review287811003
2019-08-07 19:14:55 +02:00
Cédric Krier 4aecad26e7 Use right values for expanded and selected nodes
Since changeset 0439bf6f0633, there is no timestamp in tree_states.

issue8517
review259911002
2019-08-07 19:13:21 +02:00
Cédric Krier 1603da8d08 Remove input val when clearing Binary widget
On chromium the input does not trigger a change event if the value is the same
(the same file is selected twice).
So we force the null value when the widget is cleared.

issue8513
review265681003
2019-07-25 10:29:09 +02:00
Cédric Krier 8a0ab47a64 Save modified record even if value to write is empty
issue8511
review279761002
2019-07-25 10:25:34 +02:00
Cédric Krier e0af8fbfb3 Increase display size when path is also equals to it
Length and index are always shifted by 1.

issue8506
review273621002
2019-07-25 10:20:22 +02:00
Cédric Krier 9695e3d378 Remove max-height on treeview to display dropdown
As the optional scrollbar of the treeview will be removed, the dropdown input
may no more be visible. So we must scroll until it is visible.

issue8509
review285581002
2019-07-25 10:18:51 +02:00
Cédric Krier 19977d8dfa Let the focus set by Screen.new_
The Screen.new_ method set the cursor on the right cell so we should set the
focus only when no new record is created.

issue8508
review263911002
2019-07-25 10:16:31 +02:00
Cédric Krier 5890601e9d Remove custom keypress event on xxx2One editable columns
They are no more needed since changeset fbe26a6cce32

issue8481
review251741002
2019-07-23 00:05:09 +02:00
Cédric Krier 45632015a6 Update button state and title on Wizard
issue8498
review271841002
2019-07-22 23:48:17 +02:00
Cédric Krier a5ea26acb3 Set missing node attribute even when it is boolean
issue8439
review285561002
2019-07-20 21:56:22 +02:00
Cédric Krier dd20fb2490 Write edited values synchronously to avoid concurrency error
issue8501
review283741002
2019-07-20 21:53:38 +02:00
Cédric Krier c984b94a98 Read value and fuzzy value in parallel to compare both
issue8500
review283741002
2019-07-20 21:53:12 +02:00
Cédric Krier 3fe1f51ed0 Update display logs for new related read API
Since issue7888, the result of related fields are stored in nested
dictionaries.

issue8426
review259841002
2019-07-20 21:45:28 +02:00
Cédric Krier 36e8a2dad6 Wait reload is done before enable the button
We must return the promise of the reload as the button promise to avoid enable
back the button before the screen is fully reloaded.

issue8488
review249661002
2019-07-17 22:50:25 +02:00
Cédric Krier 77f6c00cad Keep showing invalid input number and set NaN on the model
When a dialog (form) is validated and show the error message from the browser,
the input number must be visible.
Also we should not store on the model invalid values to get error on client
side instead of the server side.

issue8487
review255661002
2019-07-17 22:48:59 +02:00
Cédric Krier 50c6047185 Prevent changing row if current record is not valid
issue8486
review281831002
2019-07-17 22:47:32 +02:00
Cédric Krier 7afe3af8b3 Manage RETURN key as UP/DOWN on editable tree
The RETURN key should validate and save the current record before creating a
new one.
And UP/DOWN keys should create new record when they are at the end.

issue8485
review251761002
2019-07-17 22:46:01 +02:00
Cédric Krier 12b60612ea Use synchronous calls for on_change's and Field.set
Those calls can be triggered by event like focus-out. So to ensure a correct
order of the flow, we must defer the processing of the result.

issue8482
review273571002
2019-07-17 22:40:48 +02:00
Cédric Krier 65b553c660 Improve column sizing
We set a minimal width on the treeview table (min-width on td has an undefined
behavior) by summing the default width of each column.
We add a fake scrollbar on top of the treeview to ensure the user will see that
there are more column to see. The fake scrollbar is a div with the same minimal
width and its parent as the scroll value synchronized with the scroll of the
treeview div.
The minimal widths are removed on extra small screen if the treeview is
responsive because the table has 100% of the width.
To have the minimal width working also on the xxx2Many view inside a form, we
must set a maximum width to the cell. As this width must be expressed in
relative size (not in pixel to support resizing), we express them as
percentage of the width of the viewport. The percentage is computed from the
percentage width already computed but also rated with all the percentage width
of the parent cell. We also remove the maximum percentage of the offcanvas
size. This does not give the exact maximal width but it is close enough to have
a correct behavior no matter the size of the screen.

issue8308
review259411002
2019-07-13 00:20:31 +02:00
Cédric Krier 8176b13534 Add workaround for dynamic datalist on Firefox
This is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1474137

issue8454
review257651002
2019-07-08 21:26:20 +02:00