tryton-sao 5.0.45 → 5.0.49

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.
package/CHANGELOG CHANGED
@@ -1,3 +1,15 @@
1
+ Version 5.0.49 - 2022-02-16
2
+ * Bug fixes (see mercurial logs for details)
3
+
4
+ Version 5.0.48 - 2022-01-15
5
+ * Bug fixes (see mercurial logs for details)
6
+
7
+ Version 5.0.47 - 2022-01-01
8
+ * Bug fixes (see mercurial logs for details)
9
+
10
+ Version 5.0.46 - 2021-12-03
11
+ * Bug fixes (see mercurial logs for details)
12
+
1
13
  Version 5.0.45 - 2021-11-04
2
14
  * Bug fixes (see mercurial logs for details)
3
15
 
package/COPYRIGHT CHANGED
@@ -1,7 +1,7 @@
1
- Copyright (C) 2012-2021 Nicolas Évrard.
2
- Copyright (C) 2012-2021 Cédric Krier.
1
+ Copyright (C) 2012-2022 Nicolas Évrard.
2
+ Copyright (C) 2012-2022 Cédric Krier.
3
3
  Copyright (C) 2012-2014 Bertrand Chenal.
4
- Copyright (C) 2012-2021 B2CK SPRL.
4
+ Copyright (C) 2012-2022 B2CK SPRL.
5
5
  Copyright (C) 2019 Jitbit.
6
6
 
7
7
  This program is free software: you can redistribute it and/or modify
@@ -6493,7 +6493,9 @@ var Sao = {};
6493
6493
  this.buttons.switch_.prop('disabled',
6494
6494
  this.attributes.view_ids > 1);
6495
6495
  var msg = name + ' / ' + data[1];
6496
- if ((data[1] < data[2]) && (data[2] > this.screen.limit)) {
6496
+ if ((data[1] < data[2]) &&
6497
+ this.screen.limit !== null &&
6498
+ (data[2] > this.screen.limit)) {
6497
6499
  msg += Sao.i18n.gettext(' of ') + data[2];
6498
6500
  }
6499
6501
  this.status_label.text(msg).attr('title', msg);
@@ -8153,7 +8155,9 @@ var Sao = {};
8153
8155
  if (props.selection instanceof Array) {
8154
8156
  continue;
8155
8157
  }
8158
+ props = jQuery.extend({}, props);
8156
8159
  props.selection = this.get_selection(props);
8160
+ fields[name] = props;
8157
8161
  }
8158
8162
 
8159
8163
  if ('arch' in view_tree) {
@@ -8395,6 +8399,7 @@ var Sao = {};
8395
8399
  return record.model.execute(attributes.name, [values],
8396
8400
  this.context()).then(function(changes) {
8397
8401
  record.set_on_change(changes).then(function() {
8402
+ record.group.changed();
8398
8403
  record.group.root_group.screens.forEach(
8399
8404
  function(screen) {
8400
8405
  screen.display();
@@ -9607,14 +9612,12 @@ function eval_pyson(value){
9607
9612
  'aria-controls': this.collapsible.attr('id'),
9608
9613
  'aria-expanded': attributes.expandable == '1',
9609
9614
  }).appendTo(title);
9610
- link.append(jQuery('<div/>', {
9611
- 'class': 'btn btn-sm',
9612
- }).append(jQuery('<span/>', {
9613
- 'class': 'caret',
9614
- })));
9615
9615
  if (attributes.string) {
9616
9616
  link.text(attributes.string);
9617
9617
  }
9618
+ link.append(jQuery('<span/>', {
9619
+ 'class': 'caret',
9620
+ }));
9618
9621
  },
9619
9622
  add: function(widget) {
9620
9623
  this.body.empty();
@@ -16190,7 +16193,7 @@ function eval_pyson(value){
16190
16193
  var ctx = {
16191
16194
  active_model: data.model || null,
16192
16195
  active_id: data.id || null,
16193
- active_ids: data.ids
16196
+ active_ids: data.ids || [],
16194
16197
  };
16195
16198
  ctx = jQuery.extend(ctx, session.context);
16196
16199
  ctx._user = session.user_id;
@@ -18179,7 +18182,7 @@ function eval_pyson(value){
18179
18182
  },
18180
18183
  default_operator: function(field) {
18181
18184
  if (~['char', 'text', 'many2one', 'many2many', 'one2many',
18182
- 'reference'].indexOf(field.type)) {
18185
+ 'reference', 'one2one'].indexOf(field.type)) {
18183
18186
  return 'ilike';
18184
18187
  } else {
18185
18188
  return '=';