Commit Graph
1149 Commits
Author SHA1 Message Date
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
Cédric Krier 85827c9849 Fix dict widget name
A typo was introduced in changeset 2fc36d9e359b
2019-03-16 14:58:46 +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 7ab6adcf61 Test not field instead of undefined
issue8188
review255091005
2019-03-15 11:19:26 +01:00
Cédric Krier 495dc7a5ef Connect only once wizard dialog to keydown
update is called on each state so it binds multiple times to keydown and call
multiple times response with end state. This results in trying to delete
multiple times the same wizard session which fails.

issue8179
review60591002
2019-03-15 11:18:14 +01:00
Cédric Krier ebe1ab5340 Remove unnecessary calls to fields_view_get
Screen.count_tab_domain should be called after the switch_view as it is done
in tryton. This avoid to trigger a call to fields_view_get for the
domain_parser.
Screen.switch_view is performing one extra loop compared to tryton. This
trigger and extra call fields_view_get.

issue8167
review60581002
2019-03-15 11:14:16 +01:00
Cédric Krier c9d05b4b14 Add missing implementation of get_fields on views
issue8131
2019-03-13 19:30:13 +01:00
Cédric Krier 31f61c1a0c Use separate XML parser in Views
issue8131
review54561002
2019-03-11 12:02:58 +01:00
Cédric Krier 1c689e2412 Add size attribute to image tag
issue8146
review49781002
2019-03-09 17:10:34 +01:00
Cédric Krier 284369d130 Add range selection with Shift-click
issue5126
review47851002
2019-03-08 23:56:12 +01:00
Cédric Krier f45eb6b886 Remove selection box on cell selected with CTRL
issue8153
review70571002
2019-03-08 23:53:06 +01:00