Commit Graph
175 Commits
Author SHA1 Message Date
Cédric Krier 0f2ecee3c4 Apply factor on domain parser
issue7642
review68301002
2018-08-30 16:05:38 +02:00
Cédric Krier 2bdac9492b Use tab name for CSV Export/Import
issue7640
review48571002
2018-08-30 15:57:43 +02:00
Nicolas Évrard 1e7aafecc2 Add bus management
issue7537
review66341002
2018-08-30 11:15:01 +02:00
Cédric Krier eff545ea00 Use material design icons
and remove specific code for SVG icons on Firefox

issue7195
issue474
review60291002
2018-08-19 20:01:49 +02:00
Cédric Krier 230377544d Fix domain inversion evaluation of constrained field
The evaluation to True of constrained clause should only be done for inversion.
Also it should be valid even if a wrong value is defined in the context.

issue7603
review56331002
2018-08-18 22:50:51 +02:00
Cédric Krier 4bfa18fff3 Do not change location hash when clicking on links
issue7596
review49521002
2018-08-06 19:08:07 +02:00
Cédric Krier 98704d853b Change modal-body overflow on completion shown
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.

issue7574
review74261002
2018-07-18 00:14:57 +02:00
Cédric Krier 858fdd6de0 Use valueOf to compare moment in DomainInversion
issue7576
review50511002
2018-07-18 00:09:14 +02:00
Nicolas Évrard 7b60080090 Add (i)like support to domain inversion
issue7522
review58261002
2018-06-27 10:25:17 +02:00
Cédric Krier 24cd57c609 Convert to Number for identity comparison if one member is an instance
In Javascript, the identity comparison is not true when comparing a Number
with its instance. But domain may use integer or float in their clause against
Numeric fields.

issue7446
review50421002
2018-05-24 13:21:47 +02:00
Cédric Krier 1410271642 Do not try to parse as date datetime value in domain parser
The moment parsing does not care if the time is missing.

issue7373
review50281003
2018-04-22 00:23:29 +02:00
Cédric Krier d41f84f7dc Push result of parsed of generator clause instead of merging into result
issue7345
review42111002
2018-04-22 00:20:32 +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 5817059b5d Remove unused Deferred in ModelAccess 2018-04-18 19:24:13 +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 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 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 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 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
Nicolas Évrard 47302a35ab Add support for search_* attributes on relational fields
issue6081
review31901003
2018-03-21 18:01:35 +01:00
Nicolas Évrard 9614d8bac6 Add sum of records on list view
issue6947
review35771002
2018-03-16 18:48:05 +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 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 4dd5606a08 Load model access synchronously
It is needed if the list of model has changed since the login.

issue6635
review37731002
2017-10-13 23:36:18 +02:00
Cédric Krier f990f1e5a3 Do not fail when completing selection with last value None
This may happen when searching for several values which need to be quoted
using ';"'.

issue6714
review35641002
2017-10-05 22:34:12 +02:00
Cédric Krier 2a83ece397 Keep a single instance of PYSON Encoder in SearchView
issue6744
review36601002
2017-09-07 21:01:00 +02:00
Cédric Krier 178661a672 Add missing context when storing last_domain of selection
The last_domain should be composed of the domain and the context.

issue6710
review43401002
2017-08-28 18:29:25 +02:00
Sergi Almacellas Abellana 809dbef789 Don't show warning dialog message as dialog title
issue6369
review30161002
2017-04-27 10:26:42 +02:00
Felipe Morato 58b82777c6 Mark 'Processing...' string as translatable
issue6452
review42261002
2017-04-21 10:16:30 +02:00
Cédric Krier 203f0118f3 Ellipsize tab label longer than 20 chars
issue6284
review33851002
2017-02-25 18:38:58 +01:00
Sergi Almacellas Abellana fef211dfb9 Avoid passing mime-type data to blob object when downaloding files
issue5991

review31121002
2017-02-20 17:22:20 +01:00
Xavier Codinas 45620d0400 Use filename when file download
issue5991
issue6051
review33671002
2017-02-17 12:37:58 +01:00
Cédric Krier e173dab274 Always return a promise on UniqueDialog.run
issue6166
review30971002
2017-01-10 11:39:20 +01:00
Diego Abad dbb9384bb4 Convert to moment default format of date_format
issue5955
review27691002
2016-10-29 23:48:13 +02:00
Cédric Krier 662bee311b Add support for button rule
issue5944
review28911002
2016-10-26 09:45:38 +02:00
Sergi Almacellas Abellana 314d108c95 Use the same src text for boolean in ScreenContainer and in DomainParser
Otherwise the translated value may return a different value and then it's
comparison will fail.

issue5904
review32631002
2016-10-13 17:00:44 +02:00
Sergi Almacellas Abellana c0f49e52c8 Merge recursive results in DomainParser.parse_clause
We should use jQuery.merge instead of Array.concat, as concat creates a new
Array (which was not correctly returned) and jQuery.merge merges the contents
of both arrays in the first array.

issue5883
review26651003
2016-09-20 09:49:57 +02:00
Sergi Almacellas Abellana 37d91cb526 Don't set button text when reusing existing button elements
Since changeset 4744202e7c6a button elements are reused, so we must
only add its text when it does not exist otherwise the label is shown
multiple times.
issue5870

review32571002
2016-09-13 10:24:42 +02:00
Nicolas Évrard 3e735b24c5 Honor required and readonly status in [OM]2M title label
issue5649
review21081002
2016-09-08 10:16:04 +02:00
Cédric Krier 73481748c1 Reuse existing cell when redrawing row
It is better to avoid remove/append on the DOM to prevent to trigger a repaint.
So we should reuse existing cell if possible instead of replacing it on each
redraw.

issue5803
review21211002
2016-08-25 19:11:24 +02:00
Xavier Codinas a3d5cce4b5 Allow to update fields in DomainParser
issue5821
review27591002
2016-08-24 16:12:26 +02:00
Sergi Almacellas Abellana 14df832d52 Add missing bind in DomainParser.complete_reference
issue5731
review22191002
2016-07-26 15:55:57 +02:00
Xavier Codinas 1af28f73a1 Return empty object in MODELACCESS.model.get
It is to allow to retrieve access keys with default empty
value without failing.

issue5708
review29381003
2016-07-18 23:57:39 +07:00
Cédric Krier 659565265d Button can be enable on readonly record and group
issue5010
review27391002
2016-06-30 21:52:35 +02:00
Xavier Codinas 742a5ed995 Add missing variable in DomainParser.completion
And add test for completion on empty value

issue5664
review25251002
2016-06-27 19:10:10 +02:00
Sergi Almacellas Abellana 405c4e2954 Return a rejected promise when registering an icon with no value
This makes the done callbacks to not be called so the src field of the image
is not set which is better than setting an empty value as the browser renders
it as a not found image when it can not found the image

issue5639
review29291002
2016-06-15 09:53:50 +02:00
Sergi Almacellas Abellana da3df7dd8f Fix search_box autocomplete for empty values
issue5619
review28281002
2016-06-09 17:43:01 +02:00
Cédric Krier 41708e5f17 Prevent submit of UniqueDialog
- trigger the first primary button on submit
- put the focus on the first input/select

issue5520
review16191002
2016-04-28 20:57:37 +02:00
Cédric Krier 3f381dac71 Uses 30 days for month for Timedelta
issue5282
review20041002
2016-03-21 23:54:08 +01:00
Cédric Krier 421f2fbf21 Manage context model of ir.action.act_window
issue5220
review15881002
2016-03-15 17:46:26 +01:00