Commit Graph
1298 Commits
Author SHA1 Message Date
Cédric Krier 7dbe58e654 Use 100% width for container
with expanded cell and not inside another container.

issue9129
review291221004
2020-03-17 23:23:13 +01:00
Cédric Krier c5790f031f Add noreferrer noopener to window.open calls
issue9089
2020-03-09 18:21:27 +01:00
Cédric Krier bdad20516f Add noreferrer noopener to external URL
issue9089
review289401002
2020-03-09 18:08:24 +01:00
Cédric Krier 3a079ab1d6 Do not force value in OR-ed clause
When any other variable in Or-ed clause is not known, we can not force the
value of the variable.

issue9092
review272941002
2020-03-06 23:14:24 +01:00
Cédric Krier d4fcfa1743 Manage readonly dates and editable calendar view
If any of the dates is readonly, the event can not be modified by drag and
drop.
If the calendar is not editable no events can be modified.

issue9012
review256451002
2020-02-29 23:43:50 +01:00
Cédric Krier 491693ca64 Add field_name and model_name property to columns
field_name is used by selection_mixin to filter selection based on domain
evaluation.
The model_name exists on tryton so we add it for completeness.

issue9056
review250751004
2020-02-29 00:53:43 +01:00
Cédric Krier f8d7af5312 Hidden overflowing content of calendar event
We display the full content as title.

issue9011
review254921002
2020-02-23 13:58:47 +01:00
Cédric Krier 996353a0ba Do not remove 25vw in max-width
If there are multiple xexpanded cell in the same row, they all left 25vw for
the offcanvas. This gives too much space for the menu. It is better to allow an
horizontal scrollbar in some cases.

issue9027
review276861002
2020-02-19 23:01:25 +01:00
Cédric Krier c1d99b1733 Always use search_context for creation from Many2One
and remove unused context from Many2Many WinForm as it is only for tree view.

issue9023
review282871003
2020-02-19 22:54:21 +01:00
Cédric Krier f34e520a64 Add polyfill for padStart and padEnd
issue9067
review266821004
2020-02-17 23:15:55 +01:00
Cédric Krier 34ad23041c Manage exclude field from search window
When creating a new record from search window, we should include the relation
field as excluded like it is done for direct creation.

issue9024
review274811009
2020-02-12 00:11:55 +01:00
Cédric Krier 9fc28d547d Wait for display to complete in Screen.remove
The returned promise of remove must resolve only when the display of the screen
is complete. Otherwise there is a miss-matching between screen and the view.

issue9022
review278491003
2020-02-10 23:40:51 +01:00
Sergi Almacellas Abellana 9813ace62a Support hours greater than 99 when formatting timedelta time's
issue9016
review258701002
2020-02-06 20:48:05 +01:00
Cédric Krier 692fbccb2f Check statement types in Greater PYSON
issue9002
review276711002
2020-02-04 18:30:04 +01:00
Cédric Krier 1dcca1cf08 Use locale context to format date in domain parser
issue8999
review278401002
2020-02-04 18:28:09 +01:00
Cédric Krier 078eead028 Manage named separator as label
issue8961
review262741032
2020-01-24 00:25:30 +01:00
Cédric Krier d39a1c2750 Add xalign and yalign to group
issue8956
review258581002
2020-01-24 00:18:19 +01:00
Sergi Almacellas Abellana 5922d68313 Add one day to calendar's end date only when calendar is for allDay
issue9003
review276741002
2020-01-23 20:48:49 +01:00
Cédric Krier 08798549ba Call super method with this
changeset 0eafc9f09fd8 did not call properly the super method.

issue9001
2020-01-23 15:58:36 +01:00
Cédric Krier 8ea7f9cdfc Restore stored session after first login dialog
If we find a session once the user has filled the database and login, we should
try it first. If it does not work the first request will trigger the renewal
process.

issue8948
review262701002
2020-01-21 00:42:15 +01:00
Cédric Krier 1be481f75d Display nice user message on too many requests
issue8935
review276601002
2020-01-21 00:34:55 +01:00
Cédric Krier 1e1da5f2a5 Ensure to always store and compare sorted multiselection value
issue9001
review268761002
2020-01-20 11:31:16 +01:00
Cédric Krier ffef232014 Remove id from screen context and compare proper attributes
As mode is not always filled, we must compare only if view_ids is empty and we
must use the default value as fall-back.
The limit is a local parameter that should not be forced when opening an URL.
The screen context may be modified thanks to the context model, we must compare
the current context of the screen instead of the initial one.

issue8977
review272751003
2020-01-20 11:10:51 +01:00
Cédric Krier 5dbde4c944 Label the text input and switch id on focus
This ensures that it is always the visible input that has the proper id and
label.

issue8962
review258611002
2020-01-14 00:00:30 +01:00
Cédric Krier d3ec7bf2d0 Manage escape key on UniqueDialog
On escape key pressed, we call close method and reject the promise like a
cancel.

issue8947
review266611002
2020-01-13 23:51:27 +01:00
Cédric Krier d6f3165617 Manage empty direction when updating arrows
Since issue8880, the direction of order may be null.

issue8974
review284691003
2020-01-09 22:35:55 +01:00
Sergi Almacellas Abellana a5a1d83bc0 Use sync request on screen.get_selection
Otherwise the values may not be set when reading them

issue8975
review288791002
2020-01-09 15:22:43 +01:00
Nicolas Évrard 3268b3039d Add MultiSelection entry to Dict field
issue8903
review284571003
2019-12-30 14:26:14 +01:00
Cédric Krier 15f0d69c86 Position new record based on order
We sent an order to the client for action and xxx2Many so its screen has
always a default order set.
To position a new record on non editable tree, we use the order of the 'id'
column if presents.

issue8880
review276501003
2019-12-28 18:16:28 +01:00
Cédric Krier 55ef710cd5 Reset display_size of TreeView when group is cleared or changed
This avoids to render unnecessary rows.

issue8918
review274591002
2019-12-28 18:07:13 +01:00
Cédric Krier 4b6ac16b92 Disable button until handler promise is finished
This ensure that all the widgets have the value of the current record before
changing the record.

issue8923
review266571003
2019-12-28 17:55:47 +01:00
Cédric Krier bb476bcffd Consider event as all day only for date instances
issue8922
review282561002
2019-12-28 17:52:30 +01:00
Cédric Krier 3feb93e4af Do not set current moment when opening the picker
Otherwise this trigger a display before the focus out of the previously focused
widget. Such that the previous widget may loose its data.
So we prevent datetimepicker to set a moment and such that it behaves like
tryton.

issue8921
review266581003
2019-12-28 17:50:36 +01:00
Cédric Krier 1e3b660602 Do not make td invisible if empty
The jQuery ':visible' test does not work because the content is not always
fully rendered.
As the jQuery selector is expensive, it is better to keep those cell visible
even on small screens as long as CSS does not provide a proper selector for
this case.

issue8919
review252771003
2019-12-18 21:44:36 +01:00
Cédric Krier 66ac3af264 Allow relation field to be selected in CSV export
issue6962
review284571002
2019-12-18 21:43:09 +01:00
Cédric Krier e494c31d7f Add help text to Dict keys
issue8801
review284371002
2019-12-11 22:25:50 +01:00
Cédric Krier 89f14b3e0d Add missing current session to get_action_value call
issue8911
review254751002
2019-12-11 18:43:48 +01:00
Cédric Krier 4aa69d0641 Do not re-construct tree view if the same records are to display
Re-construct the tree looses the cursor, the expand state and the editable
cell. Until now, we always re-constructed the tree on display because there was
no simple test like the size for the list.
Now we compare the flat list of records following the expanded row. We
re-construct the table only if they are different.

issue8854
review264671003
2019-12-07 16:13:32 +01:00
Cédric Krier 32cf93ba84 Keep node expanded when displaying tree without expanded
issue8838
review286321002
2019-12-07 16:07:42 +01:00
Cédric Krier 3c55448947 Update button_action with returned values
issue8766
review268241002
2019-12-07 16:03:36 +01:00
Cédric Krier 070951311f Do not display empty cell nor button label in responsive tree
This takes spaces but it does not give any information to the user.
It is better to use this space to show more records.

issue8765
review278041002
2019-12-07 15:42:25 +01:00
Cédric Krier 2a2ddc636e Stop processing response when record is not valid
issue8571 introduced the validate attribute but the test against validate
record is wrong as it stop processing when the record is actually valid.

issue8886
review252731002
2019-12-05 21:49:24 +01:00
Cédric Krier 91953bfc2b Properly test always checkbox in user warning
We stop using callback on checkbox to store the value but use directly the
value from the widget.

issue8847
review272541002
2019-12-05 21:43:59 +01:00
Cédric Krier 78129d5d29 Use automatic sizing of the content height of FullCalendar
When there is a large amount of all day events, the agenda views do not display
the time table because it computes a height of 0 (probably to keep the aspect
ratio).

issue8877
review260611002
2019-12-05 21:34:49 +01:00
Cédric Krier 8cc49a3353 Reload tab even if model is different
The model of the wizard can be a children of the main model. So we must compare
against the model of the menu and always fall-back to the current tab screen.

issue8837
review276371003
2019-11-30 22:44:57 +01:00
Cédric Krier d9b8c52e5e Set invalid number value from the client
The value is rounded in apply_factor is needed or set to default value if it is
not a number.
This prevents the user from losing its invalid input.

issue8841
review250311002
2019-11-30 22:39:09 +01:00
Cédric Krier 57ec231bff Display record name on the concurrency comparison tab
issue8803
review282351002
2019-11-26 22:34:49 +01:00
Nicolas Évrard ebe6b9fc9b Add validate information on wizard Button
issue8571
review260041002
2019-11-21 15:39:56 +01:00
Cédric Krier eff2fc27ca Add infinite scroll on list/tree
issue8729
review282261002
2019-11-16 14:57:08 +01:00
Cédric Krier 0fefec033f Convert to float when parsing timedelta
The user can enter a float value for the converter parts.

issue8816
review256231002
2019-11-16 12:51:50 +01:00