Commit Graph
1159 Commits
Author SHA1 Message Date
Cédric Krier 9d820ef4cc Do not bind twice keydown event on key_press method
The event is already binded in the Form widget so the EditableTree widget does
not need to bind it again otherwise the callback is called twice per event.

issue8429
review255571002
2019-06-20 23:15:06 +02:00
Cédric Krier b2739258e9 Allow customizing Dict keys order
We add a sequence attribute to the key definition and use it for sorting.
This attribute is filled by the field sequence if it exists (using
sequence_ordered) or by the key name.

issue8373
review275431002
2019-06-16 19:24:15 +02:00
Cédric Krier ec8131be9d Improve domain validation error from server
We add to DomainValidationError the invalid domain and the field definition so
the client can format and append it to the description of the error.

issue8288
review255351002
2019-06-16 19:04:55 +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
Cédric Krier 4b436df20b Remove record, field from display_update_selection of multiselection
The method on selection does not have those parameters anymore.

issue8385
review287381003
2019-06-12 19:08:46 +02:00
Cédric Krier 1ba3a53f8c Test if attribute readonly is undefined before using states value
This is the general behavior for readonly attribute so
RowEditable.set_editable must follow it to avoid incoherent behavior.

issue8390
review249401002
2019-06-12 19:06:19 +02:00
Cédric Krier 223b2ed06d Prevent modification of cache RPC answers
The cached value should never be changed after being stored by the setter or
by a getter. So we make a copy of the value before storing it and return
another copy when returned.

issue8387
review269601002
2019-06-12 19:04:42 +02:00
Cédric Krier 56bcd77030 Compare record against the current record of the screen
Also store the view instead of the screen like in tryton.

issue8386
review263551002
2019-06-12 19:02:56 +02:00
Cédric Krier 785f554cd5 Add view modified
It is needed to detect all cases of modified record.

issue8377
review259511002
2019-06-12 18:59:39 +02:00
Cédric Krier 9814f598d4 Add Dict widget to tree view
It is needed to be able to search on dict.

issue8296
review271331012
2019-06-04 18:20:23 +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 07452ba2dc Reduce number of promises when rendering tree
We preload the first field of the first row if needed. This should ensure that
the following records are also loaded.
And we do not call load if the field is already loaded to avoid to create a
promise.

issue8199
review265411002
2019-06-03 15:45:06 +02:00
Cédric Krier e3f964f3f8 Use same definition format for dict key than field
This will allow to use the dict keys as relational fields and allow the client
to use them for domain parsing.

issue8295
review273311002
2019-06-03 15:37:49 +02:00
Cédric Krier 81414b98de Remove calc expression in media query
It is not a valid syntax and it is no more computed by less.

issue8374
review265471002
2019-05-28 09:53:36 +02:00
Cédric Krier 112f35ad02 Split dropdown menu of tab using the screen height
The split should depend on the height of the screen and not the width because
it does not have a scrollbar when it is too long.

issue8292
review263371002
2019-05-22 18:34:39 +02:00
Cédric Krier 6a2163b24b Ensure to execute display before showing the info message
The display must be run before the callback linked to the promise of
save_current. And save_current must return a promise with the same state as
the save promise.
Also save should not reject with the exception to avoid jQuery warning.

issue8338
review265421002
2019-05-13 22:38:11 +02:00
Raimon Esteve ace735ac21 Correct widget name of binary in treeview
issue8337
review261441002
2019-05-09 09:31:58 +02:00
Cédric Krier b3e5ee2a9a Do not send value for readonly Many2Many
In contrary to One2Many, Many2Many can not be modified when they are readonly.
But Many2Many inherit from One2Many so we must exclude them explicitly from
the test.

issue8323
review275371002
2019-05-06 13:37:21 +02:00
Cédric Krier e45f3409d4 Convert height and width attributes into integer
This conversion was lost in the refactoring of issue8131.

issue8325
2019-05-05 19:50:58 +02:00
Cédric Krier 252b6fb378 Do not rely on field views to load form fields
If the views attribute of the field is wrong or empty, the record will not
load the value for this field. The views attribute can be empty if it was
created by copying the field from its parent.
So it is safer to not rely on this attribute which is there only for
optimization and instead always use all the fields defined on the view.

issue8289
review263471002
2019-05-05 19:33:48 +02:00
Cédric Krier 3088e61855 Ensure to parse only node with tagName
For example, text node has no tagName nor attribute.
2019-05-03 18:17:04 +02:00
Cédric Krier 6970729b7d Do not reuse the same loop variable inside nested loop of affixes
issue8314
review253421002
2019-05-02 12:56:40 +02:00
Cédric Krier d6ab245cc1 Update board parse to work with new Container API
The Container API has changed in issue8139.

issue8307
review267321003
2019-05-02 12:54:19 +02:00
Cédric Krier 66dbb2502e Use group _context to avoid leaking session context
When launching a new action, the context should not contain the session
context because it is automatically appended to the evaluation.
When creating a new group when the context model changed, it should not
contain the session context neither.

issue8312
review267301002
2019-05-02 12:49:12 +02:00
Cédric Krier c051e3ead7 Ensure to put search_value in URL
If the screen container or the domain parser are not yet ready to compute the
search_value, we should ensure to use the initial search_value. Otherwise sao
may trigger to open a new tab without the search_value because the URL will be
set with an empty search.

issue8267
review281471002
2019-05-02 12:46:37 +02:00
Sergi Almacellas Abellana 4bd86b26ec Return rejected promise when creation fails
issue8168
review51631002
2019-05-01 21:58:01 +02:00
Cédric Krier 9e6686a0fd Do not define note method on board
The menu constructor checks the presence of the method to fill the menu or
not. But The board can not have any note.
2019-04-28 01:11:43 +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
Cédric Krier da45c2dcac Do not make visible close tab button on small screen
The navbar where there is already a close button is collapsed only on extra
small screen.

issue8291
review267271002
2019-04-24 23:42:44 +02:00
Cédric Krier 90cd8f9101 Add missing add_remove to search domain of Many2Many
issue8251
review273281002
2019-04-23 11:59:40 +02:00
Sergi Almacellas Abellana 686d4016be Do not send array keys on on_change_with requests
fieldnames is already converted to an Array so sending it's keys will send
the Array indexes but the server expects the field names.

issue8280
review249291003
2019-04-15 13:46:17 +02:00
Sergi Almacellas Abellana 247a32f74c Add domain inversion for reference fields
issue7877
review45831002
2019-04-14 14:17:39 +02:00
Nicolas Évrard c1dd32af8c Add list-form view
issue8185
review255091002
2019-04-08 15:06:36 +02:00
Cédric Krier 8e93249ac8 Remove id to on_change calls that are cached
issue8234
review275131002
2019-04-08 10:14:39 +02:00
Cédric Krier a16942501e Add cache management on RPC
issue8233
review257231002
2019-04-08 10:10:40 +02:00
Cédric Krier 83f9c7d87f Allow to update records when importing data
issue652
review273131003
2019-04-04 20:00:25 +02:00
Cédric Krier 2056f1914b Do not use width attribute on column
If all columns have it, the widths will be distributed to a all columns even
the select column.

issue8219
review271111002
2019-04-04 19:13:20 +02:00
Nicolas Évrard 12a070d5b1 Use -webkit-user-select property in treeview 2019-04-02 18:19:08 +02:00
Cédric Krier c072a28134 Set from with a record in select_records when empty
from must be a record as it is compared against other records but it should be
set only if there is a to (to make a valid range).
2019-04-01 19:10:36 +02:00
Cédric Krier f8a1908d11 Add HTML editor
issue8004
review54481002
2019-03-30 16:04:45 +01:00
Cédric Krier 1a50e08fba Replace affix by sticky position
issue8214
review259181002
2019-03-28 19:33:23 +01:00
Cédric Krier 13777b21b0 Do not propagate click on selection cell
but select the checkbox instead.

issue8209
review287071002
2019-03-28 19:31:18 +01:00
Cédric Krier 5a57dede77 Use locale format for data export and import
issue8196
review255151002
2019-03-28 19:22:49 +01:00
Sergi Almacellas Abellana 2610f65d56 Add day view on calendar
issue7774
review66441002
2019-03-28 12:26:19 +01:00
Cédric Krier 809a2f5050 Add background color to selected rows
issue8210
review273121002
2019-03-22 18:20:32 +01:00
Cédric Krier 2f96f858ae Add CSV exports to print toolbar
issue8130
review54571002
2019-03-22 17:21:20 +01: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 993166e422 Remove shortcuts from labels 2019-03-22 11:40:32 +01:00
Cédric Krier 8935354237 Add missing variable declaration
introduced by changeset 2fc36d9e359b
2019-03-16 15:18:46 +01:00