Commit Graph
825 Commits
Author SHA1 Message Date
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
Cédric Krier 62de349a26 Disable create new record from key on read-only editable tree
and implement access and size limit check.

issue6220
review26091002
2017-02-17 18:47:59 +01:00
Xavier Codinas 45620d0400 Use filename when file download
issue5991
issue6051
review33671002
2017-02-17 12:37:58 +01:00
Sergi Almacellas Abellana 27b0e56a7e Resize view after showing a Wizard
When a wizard dialog is shown a resize must be triggered because
display is not called at that time.

issue5134
review27101002
2017-02-14 09:41:06 +01:00
Cédric Krier 71c3b493fb Do not skip One2Many with readonly attribute for modified values
Since changeset edfb5803099a, the readonly state of one2many is not limited to
the modification of existing lines.

issue6256
review31081003
2017-02-14 00:07:24 +01:00
Cédric Krier f6a1550b05 Avoid overlap between tab name and close button
issue6219
review26141002
2017-02-14 00:00:00 +01:00
Sergi Almacellas Abellana 03ffec735a Select right model string from selection for Reference field in tree view
issue6260
review31101002
2017-02-13 09:41:56 +01:00
Sergi Almacellas Abellana 3ab28d5fe6 Show screen buttons when clicking action button
changeset c6408fc51ada replaced navbar items with buttons, so the screen
buttons must be read when the button is clicked.

issue6252
review29971002
2017-02-08 16:58:27 +01:00
Diego Abad ff588490d1 Click on toolbar actions buttons instead of toggle dropdown
Since changeset 33a981cc7ca7, toolbar buttons can be disabled, therefore menu
entry should try to click instead toggle dropdown.

issue6238
review31051002
2017-02-08 00:44:38 +01:00
Sergi Almacellas Abellana ccfbedff5a Add support for custom quote character on CSV Import/Export
Since version 4.1.3 of PapaParse it's supported, so we can enable it.
issue6223
review34661002
2017-02-07 11:07:43 +01:00
Diego Abad a7592b361b Add missing var declaration for m2m_size
introduced in changeset 0cd451bc7739

issue6221
review27921002
2017-01-27 18:08:28 +01:00
Diego Abad 7a87c3722a Fix close and get_current on Sao.Tab
Since changeset f298a41cd811, inside 'tablist' if tooltip  is shown this will
be find next to 'li'.

issue6192
review31931002
2017-01-27 16:57:14 +01:00
Cédric Krier aa57fc7d33 Add support for size on Many2Many
issue6204
review33781002
2017-01-25 23:39:21 +01:00
Cédric Krier 4fcca9e7bf Missing length conversion of field value for size limitation test
issue6197
review33771002
2017-01-25 23:38:01 +01:00
Xavier Codinas 5c5bf611cf Move toolbar tooltips to bottom
Since changeset f298a41cd811 the navbar overlaps the tooltips that are
shown in the toolbar items.

issue6198
review31941002
2017-01-20 12:24:13 +01:00
Xavier Codinas caf4b57db1 Disable dropdown toolbar buttons when empty
issue6193
review31031002
2017-01-20 09:25:05 +01:00
Cédric Krier b34ea0844f Use save_current of Window.Form in Window.Search
It prevents the new form from closing when an error message is raised.

issue5609
review26011002
2017-01-15 19:05:15 +01:00
Cédric Krier fd5e118c1b Move tablist into navbar
issue6124
review25911002
2017-01-15 18:59:21 +01:00
Cédric Krier e6c6bc9fdb Allow production build without development dependencies
By default, sao package should be installed with the production option and the
npm task loaded only on demand to reduce.

issue6176
review33741002
2017-01-13 20:11:17 +01:00
Cédric Krier 505d770a11 Load autocomplete only on display of Char widget
Keeping the autocomplete always up to date is very expensive especially for
large list because the method is called once per field for each record.
Indeed autocomplete is only needed when the Char widget is displayed. So we
could just load it at display and keep it up to date when fields are changed.

issue6167
review31871002
2017-01-13 20:04:53 +01:00
Xavier Codinas 667b387bdd Allow to show plain text in password field
issue5607
review33721002
2017-01-13 09:17:26 +01:00
Cédric Krier e173dab274 Always return a promise on UniqueDialog.run
issue6166
review30971002
2017-01-10 11:39:20 +01:00
Cédric Krier 69fba9b621 Align toolbar of Window Form on the right
issue6149
review31851002
2017-01-07 16:55:52 +01:00
Cédric Krier 3feb3ace95 Do not pass moment to c3
c3 does not support moment but only Date.

issue6005
review30941002
2016-12-29 13:40:42 +01:00
Cédric Krier d0a9c92d73 Replace collapse navbar by button groups
- Replace label by tooltips
- Move menu under tab title
- Show most used button on small screen

issue6120
review26971002
2016-12-27 18:17:05 +01:00
Xavier Codinas e9b689757f Change username label in login screen
issue6129
review31811002
2016-12-27 13:06:09 +01:00
Cédric Krier cedd9d1153 Improve responsive table behaviour
- Hide invisible columns
- Use all width for label and value
- Make header follow style if editable
- Center checkboxes

issue6107
review25901002
2016-12-22 11:08:46 +01:00
Cédric Krier 4b780e4f20 Manage negative value for col attribute
issue2090
review29851002
2016-12-21 23:14:10 +01:00
Cédric Krier 540f121e4e Center table headers of treeview
issue6070
review26921002
2016-12-13 18:38:05 +01:00
Cédric Krier 6fbbd3ebef Use 'en' as fallback language code
Since issue5443, this is the default code for English.

issue6078
review26931002
2016-12-09 16:18:24 +07:00
Cédric Krier 8ba0b3c674 Increase version number 2016-11-28 16:00:05 +01:00
Cédric Krier bc8be9ebff Added tag 4.2.0 for changeset 963504a30207 2016-11-28 15:59:25 +01:00
Cédric Krier 99dfafa2f8 Prepare release 4.2.0 2016-11-28 15:59:23 +01:00
Cédric Krier e7ad2754a7 Set default value for new added fields to model group
Defines add_fields on Group and uses it instead of the one on Model.
This new method is used when setting group on Screen to ensure to trigger the
load of default values.

issue6058
review29781003
2016-11-28 00:14:45 +01:00
Diego Abad da43bf0673 Prepare pyson expression before encode when use date and datetime fields
Moment library implements its own toJSON
function returning string format:
http://momentjs.com/docs/#/displaying/as-json/

As moment object has toJSON function
the replacer used to stringify pyson
expressions never receive a moment object
because it is dumped before.

It is needed to prepare pyson object
as same design as Sao.rpc.prepareObject

issue6027
review31701002
2016-11-26 19:43:00 +01:00
Cédric Krier 3f357454e5 Update translations 2016-11-25 23:49:40 +01:00
Sergi Almacellas Abellana 1ac44a9ee1 Correctly return record on screen.new
Return a new promise when creating a new record on screen in order
to get the value of the nested promise, otherwise an undefined
value is returned and this breaks the callbacks that manipulate
the returned record.

issue6066
review30811003
2016-11-24 16:55:25 +01:00
Cédric Krier 1092e979ad Order the keys of Dict value to allow comparison with JSON.stringify
This will ensure that the JSON.stringify will dump the keys always in the same
order. Even if the key order is a implementation detail of the browser,
constructing a new Object using always the same order will guarantee a stable
stringification.

issue6045
review33631002
2016-11-21 21:00:43 +01:00
Cédric Krier eb95cbeeff Remove old record in One2Many._set_value only if it is not in the new value
Always removing previous record makes the parent record being wrongly
considered as modified.

issue6044
review34451002
2016-11-21 20:59:33 +01:00
Cédric Krier 239470c997 Wait default_get before displaying new record
Soft validate the record when setting new fields.
And ensure correct default value for validate parameter in set_default.

issue5822
review32791002
2016-11-21 20:58:23 +01:00
Xavier Codinas 7fb3881746 Correctly bind calendar processing attribute
issue6042
review34441002
2016-11-18 12:38:11 +01:00
Diego Abad 421a5b1f04 Add missing datepickerbutton on filter screen
Since changeset 07b6b0d53296, eonasdan-bootstrap-datetimepicker
lib was updated to 4.17.42 version.

Since 4.17.37 datetimepicker requires a class to be
set on the button to open the widgets, so we should
set this class in order to make the datetimepicker
work with latest versions.

issue6020
review32761002
2016-11-09 17:58:49 +01:00
Cédric Krier 68fc4b350a Use semantic versioning for dependencies
The javascript ecosystem is based on semver

issue6006
review27811002
2016-11-08 18:46:33 +01:00
Cédric Krier aa395ba7b9 Close CVS dialog after message
issue6009
review30751002
2016-11-05 19:52:18 +01:00
Xavier Codinas f93ac7e418 Ensure that calendar events are loaded before reloading it
issue5756
review34411002
2016-11-03 12:11:09 +01:00
Xavier Codinas 7c0ea20b5a Use Sao.config.title when logout
issue5968
review28981002
2016-11-02 11:08:33 +01:00
Cédric Krier 10af5e80af Support toolbar attribute for richtext widget
issue3551
review31601002
2016-11-01 12:32:44 +01:00
Cédric Krier 59b5a6d8b2 Grow multiselection widget to show all items if yexpand is not set
When there are few options, the widget is often used with no yexpand to look
like a normal field. But in this case, some options could be not visible and
user could miss them.

issue5994
review33571002
2016-10-31 22:50:52 +01:00
Cédric Krier 24b522c7fc Make Bool PYSON evaluate to false empty Time and TimeDelta
As Time and TimeDelta are moment Object, Bool should specially evaluate those
instances.

issue5993
review25781002
2016-10-31 17:20:44 +01:00
Cédric Krier 6b83651828 Destroy wizard after exception in create call
issue5975
review32741002
2016-10-31 17:18:43 +01:00