Commit graph

619 commits

Author SHA1 Message Date
C?dric Krier
456d8b5d0d Prevent submit on search_box
issue5289
review19841003
2016-02-03 21:28:02 +01:00
C?dric Krier
29f21a73bc Add Note
issue4669
review17731004
2016-02-02 19:15:58 +01:00
C?dric Krier
256f7acc2e Fix domain parser when value is an operator
issue5266
review24751002
2016-02-02 19:09:55 +01:00
C?dric Krier
61c52e1523 Set parent field only if changed is requested
When set_on_change adds a record, we don't need to trigger the parent
on_change, otherwise it can lead to an infinite loop.

issue5278
review17781002
2016-02-02 19:08:12 +01:00
C?dric Krier
1bfe803fe7 Fix default value of one2many in form view
- set_default should correctly pipe promises because One2Many.set_default can
  be not synchronous.
- set previous group parent only if it is not empty because Screen create a
  default not linked group.
- Screen.display should set current_record is not correctly set.

issue5135
review19791002
2016-01-22 14:43:19 +01:00
C?dric Krier
158061004f Disable new and save buttons when the user is not allowed to create new records
The revision update should not overrule the model access.

issue4902
review15911002
2016-01-21 10:24:40 +01:00
C?dric Krier
edad10dbfd Keep parent when calling Screen.set_group
issue5235
review19741002
2016-01-13 21:16:00 +01:00
C?dric Krier
c89ddac9c7 Pipe the callback after the attachment save
issue5236
review24701002
2016-01-13 21:14:28 +01:00
C?dric Krier
a0b1d64e44 Record.defaut_get must return a promise which resolves with values
The promise doesn't always return the values if there is any autocomplete and
the promise is resolved before the set_default is called.
So we use our custom deferred that will be resolved after the call to
set_default and the autocomplete promises.

issue5222
review19721002
2016-01-13 21:04:20 +01:00
C?dric Krier
a392640988 Add missing Reference widget in tree view
review17701002
2015-12-31 13:43:15 +01:00
C?dric Krier
2a5d676f11 Add missing Binary widget in tree view
review21571002
2015-12-31 13:42:57 +01:00
C?dric Krier
b1b75fef33 Remove useless multiplication
issue5194
review21571002
2015-12-31 13:41:26 +01:00
C?dric Krier
bf881b0a44 Add missing type to some button of form widgets
With an explicit type, the button are of type submit and so clicking on it
submit the form if there is one like in a Window.

issue5133
review20611002
2015-12-31 13:39:31 +01:00
C?dric Krier
445766a278 Generate timestamp context after saving the record
The timestamp context must be generated after the save to avoid concurrency
exception with the save.

issue5213
review24671002
2015-12-31 13:38:11 +01:00
C?dric Krier
fc308507f5 Also test column visibility in next_column
issue5192
review16901002
2015-12-27 20:09:49 +01:00
C?dric Krier
76a63440cc Fix variable collision in next_column function
The variable column was used for two different purpose. Replace the variable
column which stores the starting index by path.

issue5193
review24661002
2015-12-27 20:06:51 +01:00
C?dric Krier
c75c02bbce Fix Field.get_data when data is already read
When data is already in _values, it should return a promise with it.
2015-12-27 19:24:39 +01:00
C?dric Krier
a784fd318b Fix usage of data in Field.get_data
Field.get_data returns directly the data.
2015-12-27 19:23:22 +01:00
C?dric Krier
310f59b63c Fix focus method call
focus method is defined on Widget.el not on Widget.
2015-12-27 19:22:21 +01:00
C?dric Krier
8b9e985d4d String.fromCharCode can not be called with too many arguments
issue5177
review21561002
2015-12-27 19:20:54 +01:00
C?dric Krier
7807f89417 Use body attribute instead of find in AskDialog
Sao.Dialog doesn't have a find method but it defines body attribute.

issue5158
review20591002
2015-12-13 14:36:11 +01:00
Karla Stenger
9d9bf9ef44 Add missing dot on menu name
issue5079
review16821003
2015-11-15 17:20:47 -03:00
C?dric Krier
dc261341dd Construct the Record.expr_eval context the same way as tryton
issue5122
review23641002
2015-11-15 12:41:13 -03:00
C?dric Krier
0ca4272daf Dump also untranslated keys
issue5099
review23631002
2015-11-05 23:02:46 +01:00
C?dric Krier
23b22f7176 Rename package in index.html
issue5098
review18761002
2015-11-03 10:02:20 +01:00
C?dric Krier
4e1dccc849 Increase version number 2015-11-02 16:22:48 +01:00
C?dric Krier
8d2d272b4d Added tag 3.8.0 for changeset c835144ba5fd 2015-11-02 16:17:39 +01:00
C?dric Krier
e793f73588 Prepare release 3.8.0 2015-11-02 15:58:15 +01:00
C?dric Krier
7b2f8ad975 Always synchronise One2Many screen attributes
The readonly, domain and size should always be set on display even if the group
did not changed.

issue5094
review20491002
2015-11-02 11:31:11 +01:00
C?dric Krier
d3a5c36091 Fix set_on_change of One2Many when value.add is not defined 2015-11-01 22:34:56 +01:00
C?dric Krier
df1972b77e Fix progressbar, width is in percent and aria-valuenow is an attribute 2015-11-01 21:30:52 +01:00
C?dric Krier
e6251895c9 Fix jshint 2015-10-31 11:19:15 +01:00
C?dric Krier
b7b21162a0 Add also language key if missing for gettext.js 2015-10-31 11:14:44 +01:00
C?dric Krier
e9287f71a8 Update translations 2015-10-31 11:03:48 +01:00
C?dric Krier
937c6dc562 Set Binary filename widget readonly
issue5089
review22581002
2015-10-31 10:48:49 +01:00
C?dric Krier
f0f99282e5 Add missing default selected_records on View
issue5078
2015-10-30 12:50:10 +01:00
C?dric Krier
fa686fed02 Use Sao.View.Form namespace for StateWidget 2015-10-30 12:10:05 +01:00
C?dric Krier
026b86d277 Split view.js 2015-10-30 11:52:58 +01:00
Nicolas ?vrard
c05710f4e8 Fix find_focusable_child to use lowercase when comparing with focusable widgets 2015-10-27 18:06:55 +01:00
Nicolas ?vrard
959d2fe5cf Add missing set_cursor
review20481002
2015-10-27 11:28:30 +01:00
Nicolas ?vrard
1d0cbc4a64 Implement set_cursor
review22561002
2015-10-27 10:55:57 +01:00
C?dric Krier
8cbe602bf6 Manage size limit, add and pre_validate on One2Many
review17621002
2015-10-26 18:33:50 +01:00
C?dric Krier
a25d597036 Fix compute editable in key_press handler of Many2One 2015-10-25 15:55:49 +01:00
C?dric Krier
1b8a7d37a8 Add check for exclude field and synchronize attributes of page 2015-10-25 15:47:12 +01:00
C?dric Krier
ed5fbf6755 There is no more content support for label 2015-10-25 15:29:36 +01:00
C?dric Krier
0604a19c9e Manage image tag 2015-10-25 15:03:07 +01:00
C?dric Krier
7f77808a60 Call screen display only once the modal is shown in Sao.Window.Form
otherwise the Sao.View.resize is called to soon to correctly compute the width
of the tables.
2015-10-25 02:38:43 +01:00
C?dric Krier
db41120e4c Don't activate Many2One on TAB key if completion is active
otherwise when selection the completion, a search pop-up is raised.
2015-10-25 02:37:01 +01:00
C?dric Krier
4cbdf4c34d default task makes both css files as both js are already created 2015-10-25 01:10:21 +02:00
C?dric Krier
2364c038b5 Ensure non xexpanded cell has not a width 2015-10-25 01:00:37 +02:00