Commit Graph
1025 Commits
Author SHA1 Message Date
Cédric Krier fed8553feb Get initial value only when cancel button is on window form
The initial value is only useful with the view type is form otherwise screen
may not have a current record like in Attachment.

issue7377
review36221002
2018-04-20 18:38:15 +02:00
Cédric Krier a9dd3203b0 Disable dp.change event when setting date value
DateTimePicker trigger the event when the date value is set which trigger the
focus_out. When this happens during the display of a Dict widget, the keys not
yet displayed are lost.

issue7361
review47331003
2018-04-20 12:48:36 +02:00
Cédric Krier baf255656c Recompute index after loading new list of models in ModelAccess
issue7371
review45401002
2018-04-20 12:47:20 +02:00
Cédric Krier 2c5b87ed7f Do not call Action.exec_keyword with a context containing Session.context
The Session.context should not be stored as the new Screen context.

issue7369
review42101002
2018-04-20 12:45:59 +02:00
Cédric Krier 702253eac6 Test the length of the Array before applying map/reduce
The value of the multiple select is an Array which may be empty. Array.reduce
fails on empty Array if it does not have a default value.

issue7367
review45391002
2018-04-20 01:10:17 +02:00
Cédric Krier 85d6e5239f Move max-width CSS Integer to apply only on form
The rule breaks the display of the widget on editable tree as it should expand
to the width of the cell.

issue7357
review47331002
2018-04-19 00:13:44 +02:00
Cédric Krier 33ca0361cb Replace Model.find call in Screen.search_filter by direct call to search
Model.find creates a new Group with the context of the call which breaks the
rationalization of the context from changeset 4392ca20106e.

issue7323
review36191002
2018-04-19 00:12:50 +02:00
Cédric Krier c6ff1eba4c Use ISO-8601 format for toString call on Date and DateTime
Papaparse call toString to write values. So to ensure the same format between
clients, toString on Date and DateTime must return ISO-8601 format with space
as time separator.

issue7305
review36161002
2018-04-19 00:05:04 +02:00
Cédric Krier 5817059b5d Remove unused Deferred in ModelAccess 2018-04-18 19:24:13 +02:00
Cédric Krier 62672e94e3 Replace bitwise OR by logical OR in LabelMixin
issue7356
2018-04-18 13:38:52 +02:00
Cédric Krier 18defc9f37 Synchronize the Date Dict widget behavior with the Date widget
- move button on the left
- add operators

issue7279
review49261002
2018-04-18 10:16:06 +02:00
Cédric Krier f986be5a8a Consider undefined string attribute on label as a string
A label or separator the name of a field and no string should display the
string of the field.

issue7356
review44981002
2018-04-18 10:08:52 +02:00
Cédric Krier 1d496f074a Synchronize locales declaration 2018-04-14 17:36:08 +02:00
Cédric Krier 761939416d Add Persian
issue7311
2018-04-14 17:33:50 +02:00
Kunkel Pierre 4c129f3b27 Manage readonly state on boolean in Dict widget
issue7341
review42081002
2018-04-14 10:22:46 +02:00
Cédric Krier f8ae59453a Fix size of tab list span on IE
issue7318
review36151002
2018-04-13 18:55:32 +02:00
Cédric Krier 21f3b6a4b8 Loop over parent languages until finding one
The navigator language could not be a translated language but its parent may,
so we must use the first found parent language.

issue7326
review44931002
2018-04-13 18:54:43 +02:00
Cédric Krier 9c514ff2db Manage empty string attributes on label
issue7321
review37211003
2018-04-13 18:53:38 +02:00
Cédric Krier d2ccdfeb99 Hide empty image displayed as broken image
issue7319
review47281002
2018-04-13 18:52:51 +02:00
Cédric Krier 5302206ce4 Avoid modification of not normalized value from richtext widget
issue7313
review46321002
2018-04-13 18:45:50 +02:00
Cédric Krier f809c0b6f1 Use msSaveOrOpenBlob to download file when available
IE does not support to download URL Blob.

issue7317
review45361002
2018-04-09 10:58:18 +02:00
Cédric Krier 574204ad0f Add viewBox attribute to SVG
issue7320
review44911002
2018-04-09 10:53:58 +02:00
Cédric Krier a1e72f1839 Add tests for PYSON Equal between moment
issue7187
review44081002
2018-04-09 10:46:37 +02:00
Cédric Krier 64aed7f483 Use valueOf to compare moment in PYSON Equal
issue7187
review44081002
2018-04-09 10:45:46 +02:00
Cédric Krier 1fa22ec80d Typo Attachement -> Attachment
issue7310
2018-04-06 18:29:18 +02:00
Cédric Krier 860f2200a2 Increase date/time size and move button on the left
issue7298
review38121002
2018-04-05 19:20:51 +02:00
Cédric Krier 19791177fd Wait reload ends before launching action
issue7312
review42051002
2018-04-05 19:17:05 +02:00
Cédric Krier 8c0b2bece7 Use Screen.load when opening Window.Form in Many2Many
The changeset 4392ca20106e changed the order of the calls to group.load and
set_group. So no current_record was set when Window.Form was called.

issue7278
review47271002
2018-04-05 19:14:08 +02:00
Cédric Krier 927eaf7911 Use max-width CSS instead of width attribute for Integer input
issue7301
review42031002
2018-04-04 23:09:47 +02:00
Cédric Krier e3b9ac4000 Disable button if parent is changed and ensure states is boolean
issue7214
review38111002
2018-04-04 23:08:56 +02:00
Cédric Krier b6017386ae Set overflow on closest .treeview when datetimepicker is shown
This applies the same technique as for completion.

issue5967
review44861002
2018-04-04 23:06:56 +02:00
Cédric Krier 7defe1ddff Enforce same keyboard behaviour as tryton
- down key put the focus on the menu
- return key does not open the menu
- escape key does not close modal

issue7296
review37181002
2018-04-04 23:03:23 +02:00
Cédric Krier 11486416c4 Make PYSON widget works for Object and Array
- eval object as statement
- generalise toString from PYSON
- do not modify the value because of different encoding

issue7105
review46311002
2018-04-03 16:44:24 +02:00
Cédric Krier 2c076e1b4c Add missing translations of DateTimes From/To in filter 2018-03-30 18:23:00 +02:00
Cédric Krier 88ec3e7b84 Refactor the editable tree process
issue7261
review45321002
2018-03-30 18:21:13 +02:00
Cédric Krier a80511be29 Properly test against screen group parent
issue7294
review45331002
2018-03-30 18:17:03 +02:00
Cédric Krier 77b1e59713 Set current_record variable after calling set_current_record
issue7292
review46281002
2018-03-30 18:16:17 +02:00
Cédric Krier 2aa24dc84f Center checkbox in editable tree
issue7290
review37171002
2018-03-30 18:08:42 +02:00
Kunkel Pierre 7f8db31a8d Set disabled attribute instead of readonly in Dict Selection
issue7297
review42021002
2018-03-30 18:07:12 +02:00
Cédric Krier 4737d7f37c Allow Date/Time widgets to be smaller
We replace width by max-width because on editable tree, the widget may need to
take less place if the cell is too small.

issue7272
review42001002
2018-03-29 20:21:29 +02:00
Cédric Krier 08ad34eca2 Add BC47 transformer and use it for toLocaleString and lang attribute
issue7250
review36061002
2018-03-29 20:18:59 +02:00
Cédric Krier 271689ffad Use screen group to convert timedelta
The record is not always defined if no record is selected.

issue7268
review37151002
2018-03-28 19:58:00 +02:00
Cédric Krier 4d9afbedc8 Add title attribute to sum cells
issue7269
review44231002
2018-03-28 19:57:12 +02:00
Cédric Krier d59800ab97 Compare screen group with same length as rows record
This happens when the view does not display all the records but the number of
displayed rows is equal to the display size.

issue7275
review44811002
2018-03-28 19:56:16 +02:00
Cédric Krier aef87ed37a Make create call synchronous
This avoid to create multiple times the same record if Record.save is called
multiple times.

issue7148
review44211002
2018-03-27 10:50:10 +02:00
Cédric Krier 9f80bb9b4f Disable buttons when clicked
and enable them after the callback is complete.

issue7148
review37131002
2018-03-27 10:49:21 +02:00
Cédric Krier 0abda1bfd1 Do not launch preference actions when reload menu and context
Such reload can happen when the user is already logged in but those actions
should only run at login.

issue7260
review40231002
2018-03-27 10:47:36 +02:00
Sergi Almacellas Abellana 4bb500a931 Manage active field on search widget
issue4341
review38081002
2018-03-26 14:23:49 +02:00
Cédric Krier 1ed3b1f90b Hide badge when zero and use absolute position
issue7181
review39201002
2018-03-25 23:52:51 +02:00
Nicolas Évrard ad414f0a23 Manually handle hiding of bootstrap Modals in forms and wizards
issue7248
review36041002
2018-03-24 20:30:38 +01:00