Commit Graph
985 Commits
Author SHA1 Message Date
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
Cédric Krier ae59a8060c Ensure row height stays the same if images are added as affix
issue7258
review38091002
2018-03-24 13:54:48 +01:00
Cédric Krier f33d5cdb1c Remove all keyBinds from datetimepicker
datetimepicker stops the propagation and prevents default for event with key
bound even if the handler does nothing.
This prevents to have Return to trigger the default submit or Escape to stop
list edition.
But as datetimepicker uses jQuery.extend to setup the options, we can pass
null for keyBinds to remove all the defaults.

issue7246
review45301002
2018-03-24 13:52:56 +01:00
Cédric Krier 95fa4a2b63 Set time to 0 when undefined
But not null because PYSON DateTime use null to get the current time.

issue7240
2018-03-24 01:46:07 +01:00
Cédric Krier e1cf57a4c1 Do not set time to 0 when instantiate DateTime without time value
It should return the current date-time.

issue7240
review41951002
2018-03-24 00:24:53 +01:00
Cédric Krier bdfc7e1856 Use fixed width for badges
issue7251
review41961002
2018-03-24 00:23:45 +01:00
Cédric Krier bf3ed92722 Add position and count label on one2many widget and tree view
issue6738
review35611002
2018-03-24 00:22:03 +01:00
Cédric Krier fff5fe4088 Hide separators of tab menu on small screen
issue7252
review41211002
2018-03-23 22:26:45 +01:00
Cédric Krier 5a1ac88290 Set width of 0 for selection state col if selection mode is None 2018-03-23 19:47:51 +01:00
Nicolas Évrard c633ac1a53 Reset record to its original state when discarding the popup window
issue3325
review41921002
2018-03-23 16:39:21 +01:00
Nicolas Évrard ea7c53e830 Add support of expand attribute on group tag
issue7220
review39221003
2018-03-23 16:27:32 +01:00
Cédric Krier 5026b0a088 Exclude widget buttons from keyboard navigation
- set tabindex to -1 for button widgets
- replace button by input-group-addon on PYSON
- do not set focus on negative tabindex on Modal

issue6739
review43441002
2018-03-22 22:00:36 +01:00
Cédric Krier 6e88979f8e Make navbar-btn with badge has the same height than others
issue7247
review41191002
2018-03-22 21:55:36 +01:00
Cédric Krier 9fffae3358 Ensure consistent treeview rendering by using fixed table-layout
- always use fixed table-layout
- define col for each column with a relative width
- add title to content and header of cells in case of overflow
- remove padding when editing cell
- remove padding and margin on button in treeview

issue7245
review37111002
2018-03-22 21:49:46 +01:00
Cédric Krier 9ae0b3a4f0 Set toolbar attribute of the RichText widget
The toolbar attribute is used in set_readonly.

issue7241
review44791002
2018-03-22 19:34:30 +01:00
Cédric Krier 59918ccc77 Replace tooltip by title and aria-label
As we display only text, it is more efficient to use title attribute. But we
must also set aria-label because not all screen readers read the title.
We add also the missing tooltip on some buttons.

issue6828
review41201002
2018-03-22 16:58:40 +01:00
Sergi Almacellas Abellana 48f8d37e7e Add the context model name in the screen context
issue7117
review41841002
2018-03-22 11:21:11 +01:00
Cédric Krier 1299a868c1 Add Screen.load and use it when opening Window.Form in Many2One
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.

issue7239
review40201002
2018-03-22 10:39:48 +01:00
Nicolas Évrard 47302a35ab Add support for search_* attributes on relational fields
issue6081
review31901003
2018-03-21 18:01:35 +01:00
Cédric Krier a4f6fb1ad2 Update to jQuery 3
issue5925
review36011002
2018-03-19 16:09:07 +01:00
Sergi Almacellas Abellana f807756393 Fix typo in jQuery definition
Introduced on changeset 99178d3f7b85

issue7236
review36031002
2018-03-19 13:36:36 +01:00
Cédric Krier f8ad26e740 Add missing colon on sum label
issue6947
review38071002
2018-03-19 12:11:33 +01:00
Cédric Krier d3315ec919 Avoid float precision error after the division by factor
issue7201
review41911002
2018-03-19 11:40:11 +01:00
Nicolas Évrard 9614d8bac6 Add sum of records on list view
issue6947
review35771002
2018-03-16 18:48:05 +01:00
Nicolas Évrard 03bdc638e9 Add wizard information to wizard context
issue7143
review39191002
2018-03-16 18:25:44 +01:00
Nicolas Évrard 95f1f412d5 Ensure that Date and DateTime widget uses the same keybindings as the GTk client
issue7176
review44071002
2018-03-16 17:13:12 +01:00
Cédric Krier aec0afd86d Wait the promise of Screen.new_ before using current_record
The current_record is only set in a callback of the promise so depending on
the timing current_record may not be set at the return of the function.

issue7210
review38051002
2018-03-15 00:27:07 +01:00
Cédric Krier d694b17804 Create explicitly the tbody for the table of the Form Container
issue7209
review37081002
2018-03-15 00:25:51 +01:00
Cédric Krier ecf701cb82 Bind the set_value callback in One2Many._set_value
this.name is used in the callback.

issue7206
review41171002
2018-03-15 00:24:43 +01:00
Cédric Krier 3196c82be6 Use limit to expand tree
The screen switch to the form view if the limit is reached.

issue4901
review44021002
2018-03-09 19:14:27 +01:00
Cédric Krier bfb2fcaa71 Rationalize context usage
issue7072
review43041002
2018-03-09 19:10:58 +01:00
Sergi Almacellas Abellana 760f1b2912 Do not show confirm dialog for buttons with empty value
Since issue6389 the server sets an empty value for the buttons
that do not have any confirmation string

issue7193
2018-03-06 14:41:39 +01:00
Nicolas Évrard 7d1bc66823 Reenable grunt-watch task 2018-03-06 10:34:28 +01:00
Cédric Krier b2109d8297 Push record in on_change values if it is not deleted and not removed
issue7164
review43171003
2018-03-04 00:58:11 +01:00
Cédric Krier d55033bbc3 Correctly evaluate domain between xxx2many and null
The value of empty xxx2Many is an empty Array which must be comparable to
null.

issue7163
review44681002
2018-03-04 00:53:46 +01:00
Cédric Krier 8fd555a0c2 Correctly compare model names in display next and previous
issue7146
review41861002
2018-02-23 10:55:28 +01:00
Xavier Codinas af0b82fddb Use spellcheck and lang attributes for textbox widget
issue6889
review39851002
2018-02-12 10:56:22 +01:00
Cédric Krier e182cbd947 Add support for icon on tab
issue7060
review43021002
2018-02-07 00:41:43 +01:00
Felipe Morato 2e6a660033 Format lang tags to comply with toLocaleString
Replace underscore for language tags to a hyphen because
toLocaleString expects a format of 'pt-BR' for composite tags while
tryton stores them with an underscore: 'pt_BR'.

issue7080
review41001002
2018-02-06 12:46:54 +01:00
Cédric Krier 74e6b85c73 Use common date_format on search filter and graph
issue7071
review43031002
2018-02-04 23:39:20 +01:00
Nicolas Évrard ae882ae78d Add keyword attribute to button tag
issue7067
review44581002
2018-01-24 14:35:44 +01:00