Commit Graph
190 Commits
Author SHA1 Message Date
Cédric Krier f841fd1bc7 Allow to search on related field in search box
The server adds to the definition of the fields, the definition of relation
fields up to specific deep level.
The clients use this relation fields definition to extend the domain parser
with those fields using a dot notation. But those "dotted fields" are not
shown in the search filter to not bloat the popup as it is dedicated to
learning.
In addition, Dict fields are also filled with relation fields coming from the
keys defined in the schema model. As the size can very large, it is possible
to deactivate this feature from the configuration.

issue8293
review259391005
2019-06-16 15:44:14 +02:00
Nicolas Évrard ddef8d7c06 Return an empty URL when the icon name is invalid
issue7904
review70461002
2019-06-04 17:38:17 +02:00
Cédric Krier 185eef1e63 Allow all models for reference if there is no restriction
If the allowed models is empty, it means that there is no constraint on the
reference model. So we must allow all of them.

issue8300
review275311002
2019-04-26 12:04:10 +02:00
Cédric Krier 9c63f7a444 domain_parser should use rec_name for relation field and list
in operator on relation field must use list of ids. So the related rec_name
should be used instead because domain_parser always uses string as value.

issue3540
review271321002
2019-04-24 23:45:06 +02:00
Sergi Almacellas Abellana 247a32f74c Add domain inversion for reference fields
issue7877
review45831002
2019-04-14 14:17:39 +02:00
Cédric Krier 854b4adc73 Improve note button
* Add resources method to ModelStorage
* Support badge on icon
* Display unread and total of notes
* Add two extra colors for icon

issue8122
review70561002
2019-03-22 12:16:36 +01:00
Cédric Krier 4c1a6fd96d Rename roundup.url configuration to bug.url
issue8173
review49791002
2019-03-15 12:45:48 +01:00
Cédric Krier b710bdd8b6 Allow overflow on navbar collapse for completion.
issue8125
review62441002
2019-03-04 18:48:33 +01:00
Cédric Krier 350afb84e8 Replace Array.includes by ~Array.indexOf
Array.includes is not yet supported by IE nor phanthomjs.

issue7869
2018-12-21 19:55:19 +01:00
Nicolas Évrard 5798cf5cbc Fix domain inversion of child_of mixing M2O and Reference fields
Domain inversion on Reference field does not work when using the dotted
notation with a M2O field using child_of or parent_of.

To solve this we correctly compute the localization of child_of leaves when
using the dotted notation (which renders the inverse_leaf function useless).
But we must also ensure that the selection used by reference fields restrict
the choice to the right models.

issue7869
review60441002
2018-12-20 18:44:31 +01:00
Cédric Krier 18115d9a71 Add drag & drop support on attachment button
issue7722
review60371002
2018-10-25 21:03:06 +02:00
Cédric Krier 118837f6a3 Domain with ids are not stringable
issue7788
review53441002
2018-10-21 21:32:38 +02:00
Cédric Krier f2be833feb Allow to attach multiple files
issue7735
review56391002
2018-09-26 23:05:11 +02:00
Cédric Krier eeb44911c6 Ignore undefined icon name
issue7704
review51531002
2018-09-19 00:11:38 +02:00
Cédric Krier f3796ec776 Use dropdown for attachments
issue7659
review50551002
2018-09-02 10:44:38 +02:00
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