1
0
Fork 0
mirror of https://github.com/NaN-tic/sao-old.git synced 2023-12-14 02:12:52 +01:00
Commit graph

853 commits

Author SHA1 Message Date
C?dric Krier
14a88c8b4f Align toolbar of Window Form on the right
issue6149
review31851002
2017-01-07 16:55:52 +01:00
C?dric Krier
d870223f2d 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
0e184c0997 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
b2451eb9e3 Change username label in login screen
issue6129
review31811002
2016-12-27 13:06:09 +01:00
C?dric Krier
b87487bb9b 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
cc125f7dc8 Manage negative value for col attribute
issue2090
review29851002
2016-12-21 23:14:10 +01:00
C?dric Krier
b250a955ad Center table headers of treeview
issue6070
review26921002
2016-12-13 18:38:05 +01:00
C?dric Krier
bac70ac48b 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
c82f224c91 Increase version number 2016-11-28 16:00:05 +01:00
C?dric Krier
9132f82d46 Added tag 4.2.0 for changeset 963504a30207 2016-11-28 15:59:25 +01:00
C?dric Krier
b2a4a66862 Prepare release 4.2.0 2016-11-28 15:59:23 +01:00
C?dric Krier
a8c2f7d55d 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
92b095a8e7 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
c97d011b8e Update translations 2016-11-25 23:49:40 +01:00
Sergi Almacellas Abellana
46b0cc5cf5 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
246e5926e6 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
04fa2fb68c 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
add454fb59 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
0112075033 Correctly bind calendar processing attribute
issue6042
review34441002
2016-11-18 12:38:11 +01:00
Diego Abad
c20cc5b1fb 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
9c174763ab 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
726ce48642 Close CVS dialog after message
issue6009
review30751002
2016-11-05 19:52:18 +01:00
Xavier Codinas
9b8044c802 Ensure that calendar events are loaded before reloading it
issue5756
review34411002
2016-11-03 12:11:09 +01:00
Xavier Codinas
33f96870cf Use Sao.config.title when logout
issue5968
review28981002
2016-11-02 11:08:33 +01:00
C?dric Krier
c6aeff8928 Support toolbar attribute for richtext widget
issue3551
review31601002
2016-11-01 12:32:44 +01:00
C?dric Krier
835f15761a 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
be7d11d631 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
3728f57d8d Destroy wizard after exception in create call
issue5975
review32741002
2016-10-31 17:18:43 +01:00
Xavier Codinas
f56300b458 Add PYSON widget
issue4631
review20901002
2016-10-31 13:42:13 +01:00
C?dric Krier
d79e828588 Fix syntax of bower.json 2016-10-31 10:26:07 +01:00
Prayash Mohapatra
69ec10f681 Add CSV Import/Export
review27421002
2016-10-31 10:09:43 +01:00
Diego Abad
e830a718da Set axis configuration on graph views for non timeseries
As c3 use indexed as default x axis type, 'category' type
must be added when labels are not Date or DateTime fields.

issue5997
review31661002
2016-10-30 00:20:07 +02:00
Diego Abad
0aeee48d2e Convert to moment default format of date_format
issue5955
review27691002
2016-10-29 23:48:13 +02:00
Xavier Codinas
04a246a421 Add TranslateDialog for translatable fields
issue5804
review28681002
2016-10-29 20:50:48 +02:00
C?dric Krier
2b7435ba7f Use get method in Binary widget when field has not get_data method
The binary widget can be used with non-binary field which does not have
get_data method like Char.

issue5989
review29701002
2016-10-28 19:22:18 +02:00
Sergi Almacellas Abellana
69e0fe6886 Manage the text color and background color in calendar view
issue5953
review33541002
2016-10-28 18:02:37 +02:00
Xavier Codinas
c6c17eab94 Add title in Sao.config
issue5968
review29671002
2016-10-28 09:57:18 +02:00
Sergi Almacellas Abellana
ac38c6d9f5 Correctly computed selected records on remove
Also return an empty promise when records are empty

issue5987
review26851002
2016-10-28 09:22:07 +02:00
Xavier Codinas
82fa2f25e3 Remove exclamation point on user error messages
issue5978
review34401002
2016-10-28 09:17:07 +02:00
Xavier Codinas
cb7bfac3ad Add favorites menu
issue5715
review29391002
2016-10-28 09:09:52 +02:00
Sergi Almacellas Abellana
3c8657f4f3 Show records names in wizard title
issue5933
review29591002
2016-10-27 09:56:34 +02:00
C?dric Krier
4032548a24 Add support for button rule
issue5944
review28911002
2016-10-26 09:45:38 +02:00
Jan Grasnick
80c1fed500 Add support for datetime_field to Many2One, Reference
issue4579
review30671002
2016-10-26 09:37:06 +02:00
Xavier Codinas
4c844cf140 Add calendar view
issue5756
review32361002
2016-10-26 09:15:05 +02:00
C?dric Krier
c5b2fc04c2 Use cancel_record instead of removing from group
cancel_record uses Screen.remove which ensure the cursor is correctly set after
the removal.
This also ensure that cancel_record remove only the current record.

issue5852
review29641002
2016-10-25 23:14:20 +02:00
C?dric Krier
f7bf2bf1a0 Do not apply screen domain on xxx2Many field
The screen domain on those fields only means at least one record
and not all records.

issue5948
review30621003
2016-10-25 23:12:12 +02:00
Sergi Almacellas Abellana
40d3f6da00 Add string representation of PYSON statements
issue5952
review32681002
2016-10-21 11:55:53 +02:00
Sergi Almacellas Abellana
72cbe9bd51 Use the same src text for boolean in ScreenContainer and in DomainParser
Otherwise the translated value may return a different value and then it's
comparison will fail.

issue5904
review32631002
2016-10-13 17:00:44 +02:00
C?dric Krier
1c807963f3 Make binary widget works with non-binary field
The method get_size must be used only if the field has it otherwise the length
of the raw data should be used.
String must be used for set_client if the field is not Binary.

issue5924
review33431002
2016-10-13 09:37:39 +02:00
Sergi Almacellas Abellana
8f21978321 Use model name as tab title when opening records from global search
issue5938

review26771002
2016-10-08 20:39:00 +02:00