Commit Graph
212 Commits
Author SHA1 Message Date
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
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 1dcca1cf08 Use locale context to format date in domain parser
issue8999
review278401002
2020-02-04 18:28:09 +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 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 57ec231bff Display record name on the concurrency comparison tab
issue8803
review282351002
2019-11-26 22:34:49 +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
Cédric Krier 375e6acfd3 Replace table in cell of treeview by flex display
In order to have correct overflow ellipsis, we must stop to use table to align
affix inside a cell. Instead we use flexblox layout to expand the widget and
align the affixes.
Also as now content will be ellipsis, we must provide a title to the buttons.

issue8762
review268231002
2019-11-02 17:35:55 +01:00
Cédric Krier 37c4ac36b8 Use small button in tree view
This avoids to use negative margin to keep row heigh constant.
And we display the button as block on responsive tree to make it easier to
click on.

issue8761
review286171004
2019-10-30 14:06:51 +01:00
Cédric Krier 9ee63e7993 Use typeof instead of instanceof to test for string
All strings are not instance of String.

issue8706
2019-10-11 12:06:14 +02:00
Cédric Krier 7103a8a0e7 Use strict equality to compare clause against operator
In javascript, a list containing a string is equals to the string, e.g:

    ['foo'] == 'foo'

issue8711
review268071002
2019-10-11 11:46:37 +02:00
Cédric Krier 8a8cf61d46 Search for '..' only on string value in domain parser
The value can be a list if ';' is used.

issue8706
review254381002
2019-10-11 11:40:42 +02:00
Cédric Krier 1de6685654 Add MultiSelection field
issue7851
review249911002
2019-09-20 11:32:55 +02:00
Cédric Krier e9f6976eae Improve completion on boolean
- Do not convert None to False
- Complete with the opposite or both values

issue8620
review254181002
2019-09-16 23:59:43 +02:00
Cédric Krier 0e4419917c Implement and use scrollIntoViewIfNeeded instead of scrollIntoView
It is a better user experience to not scroll if the element is already visible.

issue8619
review258021002
2019-09-07 23:19:17 +02:00
Cédric Krier b513ae9994 Replace child_of target only if it is not a related field
issue8609
review285911002
2019-09-02 18:34:55 +02:00
Cédric Krier 58ea79382a Do not consider readonly/non editable widget as focusable
issue8475
review277751002
2019-09-02 18:28:23 +02:00
Cédric Krier 5f91e10c06 Ensure DomainParse.group returns a list of clause
issue8520
review255681002
2019-08-07 19:22:59 +02:00
Cédric Krier 7c0a248ec3 Prevent navigation key on completion input to leave the row
We do not propagate down key event on input completion and skip keydown event
from dropdown menu inside editable tree.

issue8507
review263901002
2019-08-07 19:17:15 +02:00
Cédric Krier 9695e3d378 Remove max-height on treeview to display dropdown
As the optional scrollbar of the treeview will be removed, the dropdown input
may no more be visible. So we must scroll until it is visible.

issue8509
review285581002
2019-07-25 10:18:51 +02:00
Cédric Krier 328d7abd21 Use faster way to remove children
issue8453
review255641002
2019-06-27 14:32:36 +02:00
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