tryton-sao 6.2.7 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG +12 -20
  2. package/Gruntfile.js +15 -14
  3. package/dist/tryton-sao.css +33 -7
  4. package/dist/tryton-sao.js +2456 -2192
  5. package/dist/tryton-sao.min.css +33 -7
  6. package/dist/tryton-sao.min.js +2 -3
  7. package/locale/bg.json +1 -1
  8. package/locale/bg.po +20 -8
  9. package/locale/ca.json +1 -1
  10. package/locale/ca.po +29 -36
  11. package/locale/cs.json +1 -1
  12. package/locale/cs.po +20 -8
  13. package/locale/de.json +1 -1
  14. package/locale/de.po +29 -34
  15. package/locale/es.json +1 -1
  16. package/locale/es.po +21 -42
  17. package/locale/es_419.json +1 -1
  18. package/locale/es_419.po +22 -10
  19. package/locale/et.json +1 -1
  20. package/locale/et.po +27 -13
  21. package/locale/fa.json +1 -1
  22. package/locale/fa.po +27 -13
  23. package/locale/fi.json +1 -1
  24. package/locale/fi.po +20 -8
  25. package/locale/fr.json +1 -1
  26. package/locale/fr.po +22 -27
  27. package/locale/hu.json +1 -1
  28. package/locale/hu.po +23 -9
  29. package/locale/hu_HU.json +1 -0
  30. package/locale/id.json +1 -1
  31. package/locale/id.po +36 -32
  32. package/locale/it.json +1 -1
  33. package/locale/it.po +40 -34
  34. package/locale/it_IT.json +1 -0
  35. package/locale/ja_JP.json +1 -0
  36. package/locale/lo.json +1 -1
  37. package/locale/lo.po +22 -11
  38. package/locale/lt.json +1 -1
  39. package/locale/lt.po +23 -8
  40. package/locale/messages.pot +24 -14
  41. package/locale/nl.json +1 -1
  42. package/locale/nl.po +58 -63
  43. package/locale/pl.json +1 -1
  44. package/locale/pl.po +29 -12
  45. package/locale/pt.json +1 -1
  46. package/locale/pt.po +27 -13
  47. package/locale/pt_BR.json +1 -0
  48. package/locale/ro.json +1 -1
  49. package/locale/ro.po +26 -27
  50. package/locale/ru.json +1 -1
  51. package/locale/ru.po +22 -8
  52. package/locale/sl.json +1 -1
  53. package/locale/sl.po +29 -11
  54. package/locale/tr.json +1 -1
  55. package/locale/tr.po +20 -8
  56. package/locale/zh_CN.json +1 -1
  57. package/locale/zh_CN.po +23 -10
  58. package/package.json +2 -3
  59. package/src/.jshintrc +1 -0
  60. package/src/action.js +8 -15
  61. package/src/board.js +44 -31
  62. package/src/bus.js +9 -2
  63. package/src/common.js +303 -251
  64. package/src/html_sanitizer.js +1 -1
  65. package/src/model.js +315 -359
  66. package/src/pyson.js +34 -57
  67. package/src/rpc.js +1 -4
  68. package/src/sao.js +76 -46
  69. package/src/sao.less +46 -17
  70. package/src/screen.js +370 -351
  71. package/src/session.js +16 -15
  72. package/src/tab.js +267 -254
  73. package/src/view/calendar.js +18 -18
  74. package/src/view/form.js +260 -245
  75. package/src/view/graph.js +14 -18
  76. package/src/view/list_form.js +14 -14
  77. package/src/view/tree.js +362 -211
  78. package/src/view.js +22 -21
  79. package/src/window.js +276 -241
  80. package/src/wizard.js +45 -37
  81. package/tests/sao.js +59 -11
package/CHANGELOG CHANGED
@@ -1,23 +1,15 @@
1
- Version 6.2.7 - 2022-04-15
2
- * Bug fixes (see mercurial logs for details)
3
-
4
- Version 6.2.6 - 2022-03-01
5
- * Bug fixes (see mercurial logs for details)
6
-
7
- Version 6.2.5 - 2022-02-16
8
- * Bug fixes (see mercurial logs for details)
9
-
10
- Version 6.2.4 - 2022-02-01
11
- * Bug fixes (see mercurial logs for details)
12
-
13
- Version 6.2.3 - 2022-01-15
14
- * Bug fixes (see mercurial logs for details)
15
-
16
- Version 6.2.2 - 2022-01-01
17
- * Bug fixes (see mercurial logs for details)
18
-
19
- Version 6.2.1 - 2021-12-03
20
- * Bug fixes (see mercurial logs for details)
1
+ Version 6.4.0 - 2022-05-02
2
+ * Bug fixes (see mercurial logs for details)
3
+ * Support notification message
4
+ * Allow Reference to be edited from tree view
5
+ * Set ECMAScript version to 6
6
+ * Manage optional column
7
+ * Display the number of selected records
8
+ * Humanize the count result
9
+ * Add limit to search_count
10
+ * Call view_get for board view
11
+ * Limit board action domain to active id and ids
12
+ * Manage creatable attribute of view
21
13
 
22
14
  Version 6.2.0 - 2021-11-01
23
15
  * Bug fixes (see mercurial logs for details)
package/Gruntfile.js CHANGED
@@ -37,17 +37,6 @@ module.exports = function(grunt) {
37
37
  // Project configuration.
38
38
  grunt.initConfig({
39
39
  pkg: grunt.file.readJSON('package.json'),
40
- xgettext: {
41
- locale: {
42
- files: {
43
- javascript: jsfiles
44
- },
45
- options: {
46
- functionName: "Sao.i18n.gettext",
47
- potFile: "locale/messages.pot"
48
- },
49
- }
50
- },
51
40
  shell: {
52
41
  options: {
53
42
  failOnError: true
@@ -55,8 +44,20 @@ module.exports = function(grunt) {
55
44
  msgmerge: {
56
45
  command: _.map(locales, function(locale) {
57
46
  var po = "locale/" + locale + ".po";
58
- return "msgmerge -U " + po + " locale/messages.pot;";
47
+ return (
48
+ "msgmerge " +
49
+ "-U " + po + " " +
50
+ "--no-location " +
51
+ "locale/messages.pot;");
59
52
  }).join("")
53
+ },
54
+ xgettext: {
55
+ command: (
56
+ "xgettext " +
57
+ "--language=JavaScript --from-code=UTF-8 " +
58
+ "--omit-header --no-location " +
59
+ "-o locale/messages.pot " +
60
+ jsfiles.join(" "))
60
61
  }
61
62
  },
62
63
  po2json: {
@@ -171,8 +172,8 @@ module.exports = function(grunt) {
171
172
  grunt.task.run(['shell:msgmerge']);
172
173
  });
173
174
  grunt.registerTask('xgettext', ' Extracts translatable messages', function() {
174
- grunt.loadNpmTasks('grunt-xgettext');
175
- grunt.task.run(['xgettext']);
175
+ grunt.loadNpmTasks('grunt-shell');
176
+ grunt.task.run(['shell:xgettext']);
176
177
  });
177
178
  grunt.registerTask('test', 'Run tests', function() {
178
179
  grunt.loadNpmTasks('grunt-contrib-qunit');
@@ -9205,8 +9205,15 @@ button {
9205
9205
  background-color: #267f82;
9206
9206
  color: #fff;
9207
9207
  }
9208
+ #tablist {
9209
+ display: flex;
9210
+ overflow-x: auto;
9211
+ }
9212
+ #tablist > li {
9213
+ flex: auto;
9214
+ min-width: 9em;
9215
+ }
9208
9216
  #tablist > li > a > span {
9209
- max-width: 9em;
9210
9217
  overflow: hidden;
9211
9218
  text-overflow: ellipsis;
9212
9219
  white-space: nowrap;
@@ -9218,9 +9225,18 @@ button {
9218
9225
  margin-right: 0;
9219
9226
  margin-left: 15px;
9220
9227
  }
9228
+ @media screen and (max-width: 767px) {
9229
+ #tablist {
9230
+ display: block;
9231
+ }
9232
+ #tablist > li {
9233
+ float: none;
9234
+ }
9235
+ }
9221
9236
  #menu,
9222
9237
  #tabs {
9223
9238
  margin-top: 5px;
9239
+ padding-bottom: 5px;
9224
9240
  }
9225
9241
  #menu {
9226
9242
  background-color: #f8f8f8;
@@ -9433,8 +9449,8 @@ html.accesskey select[accesskey] ~ span[data-accesskey] {
9433
9449
  }
9434
9450
  .tab-form .navbar-text .badge,
9435
9451
  .tab-board .navbar-text .badge {
9436
- max-width: 5em;
9437
- min-width: 5em;
9452
+ max-width: 7em;
9453
+ min-width: 7em;
9438
9454
  overflow: hidden;
9439
9455
  text-overflow: ellipsis;
9440
9456
  }
@@ -9569,13 +9585,16 @@ img.icon {
9569
9585
  }
9570
9586
  .treeview > table.tree col.selection-state,
9571
9587
  .treeview > table.tree col.favorite,
9572
- .treeview > table.tree col.draggable-handle {
9588
+ .treeview > table.tree col.draggable-handle,
9589
+ .treeview > table.tree col.optional {
9573
9590
  width: 30px;
9574
9591
  }
9575
- .treeview > table.tree td.draggable-handle {
9592
+ .treeview > table.tree td.draggable-handle,
9593
+ .treeview > table.tree td.optional {
9576
9594
  cursor: grab;
9577
9595
  }
9578
- .treeview > table.tree td.draggable-handle > img {
9596
+ .treeview > table.tree td.draggable-handle > img,
9597
+ .treeview > table.tree td.optional > img {
9579
9598
  display: block;
9580
9599
  margin-right: auto;
9581
9600
  margin-left: auto;
@@ -9594,6 +9613,13 @@ img.icon {
9594
9613
  .treeview > table.tree > thead > tr > th > label.sortable {
9595
9614
  cursor: pointer;
9596
9615
  }
9616
+ .treeview > table.tree > thead > tr > th.optional {
9617
+ cursor: pointer;
9618
+ overflow: visible;
9619
+ }
9620
+ .treeview > table.tree > thead > tr > th.optional .dropdown input[type="checkbox"] {
9621
+ margin-left: 5px;
9622
+ }
9597
9623
  .treeview > table.tree > thead > tr > th.char,
9598
9624
  .treeview > table.tree > thead > tr > th.text,
9599
9625
  .treeview > table.tree > thead > tr > th.many2one,
@@ -10296,7 +10322,7 @@ input.column-boolean {
10296
10322
  .infobar {
10297
10323
  line-height: 20px;
10298
10324
  position: fixed;
10299
- top: 65px;
10325
+ top: 30px;
10300
10326
  left: 50%;
10301
10327
  transform: translateX(-50%);
10302
10328
  z-index: 1000;