tryton-sao 7.0.6 → 7.0.7

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,4 +1,9 @@
1
1
 
2
+ Version 7.0.7 - 2024-02-15
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.0.6 - 2024-02-03
3
8
  --------------------------
4
9
  * Bug fixes (see mercurial logs for details)
package/COPYRIGHT CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2012-2023 Nicolas Évrard.
1
+ Copyright (C) 2012-2024 Nicolas Évrard.
2
2
  Copyright (C) 2012-2024 Cédric Krier.
3
3
  Copyright (C) 2012-2014 Bertrand Chenal.
4
4
  Copyright (C) 2012-2024 B2CK SPRL.
@@ -9949,16 +9949,18 @@ img.icon {
9949
9949
  max-height: 300px;
9950
9950
  }
9951
9951
  .form .form-text > textarea,
9952
- .form .form-richtext > textarea {
9953
- min-height: 150px;
9954
- max-height: 300px;
9952
+ .form .form-richtext > textarea,
9953
+ .form .form-text .richtext,
9954
+ .form .form-richtext .richtext {
9955
+ line-height: 2.5ex;
9956
+ max-height: 50ex;
9957
+ min-height: 12.5ex;
9958
+ overflow: auto;
9959
+ resize: vertical;
9955
9960
  }
9956
9961
  .form .form-richtext > .btn-toolbar {
9957
9962
  min-width: 450px;
9958
9963
  }
9959
- .form .form-richtext .richtext {
9960
- min-height: 5em;
9961
- }
9962
9964
  .form .form-separator label {
9963
9965
  margin-top: 10px;
9964
9966
  }
@@ -10203,7 +10205,11 @@ input.column-boolean {
10203
10205
  background-color: #d9edf7;
10204
10206
  }
10205
10207
  .email .email-richtext {
10206
- min-height: 10em;
10208
+ line-height: 2.5ex;
10209
+ max-height: 50ex;
10210
+ min-height: 12.5ex;
10211
+ overflow: auto;
10212
+ resize: vertical;
10207
10213
  }
10208
10214
  .email input[type='file'] {
10209
10215
  display: inline-block;
@@ -1,7 +1,7 @@
1
1
  /* This file is part of Tryton. The COPYRIGHT file at the top level of
2
2
  this repository contains the full copyright notices and license terms. */
3
3
  var Sao = {
4
- __version__: '7.0.6',
4
+ __version__: '7.0.7',
5
5
  };
6
6
 
7
7
  (function() {
@@ -1634,13 +1634,13 @@ var Sao = {
1634
1634
  throw 'NotImplementedError';
1635
1635
  },
1636
1636
  get: function(k, d='') {
1637
- return Sao.PYSON.Get(this, k, d);
1637
+ return new Sao.PYSON.Get(this, k, d);
1638
1638
  },
1639
1639
  in_: function(obj) {
1640
- return Sao.PYSON.In(this, obj);
1640
+ return new Sao.PYSON.In(this, obj);
1641
1641
  },
1642
1642
  contains: function(k) {
1643
- return Sao.PYSON.In(k, this);
1643
+ return new Sao.PYSON.In(k, this);
1644
1644
  },
1645
1645
  toString: function() {
1646
1646
  var klass = this.pyson().__class__;
@@ -4752,6 +4752,7 @@ var Sao = {
4752
4752
  'multiselection': complete_selection,
4753
4753
  'reference': complete_reference,
4754
4754
  'datetime': complete_datetime,
4755
+ 'timestamp': complete_datetime,
4755
4756
  'date': complete_date,
4756
4757
  'time': complete_time
4757
4758
  };
@@ -5029,8 +5030,10 @@ var Sao = {
5029
5030
  operator = '=';
5030
5031
  }
5031
5032
  }
5032
- if (~['integer', 'float', 'numeric', 'datetime', 'date',
5033
- 'time'].indexOf(field.type)) {
5033
+ if (~[
5034
+ 'integer', 'float', 'numeric',
5035
+ 'datetime', 'timestamp', 'date',
5036
+ 'time'].indexOf(field.type)) {
5034
5037
  if ((typeof value == 'string') && value.contains('..')) {
5035
5038
  var values = value.split('..', 2);
5036
5039
  var lvalue = this.convert_value(field, values[0], this.context);
@@ -5262,6 +5265,7 @@ var Sao = {
5262
5265
  }
5263
5266
  }
5264
5267
  };
5268
+ converts.timestamp = converts.datetime;
5265
5269
  var func = converts[field.type];
5266
5270
  if (func) {
5267
5271
  return func();
@@ -5378,6 +5382,7 @@ var Sao = {
5378
5382
  }
5379
5383
  }
5380
5384
  };
5385
+ converts.timestamp = converts.datetime;
5381
5386
  if (value instanceof Array) {
5382
5387
  return value.map(v => this.format_value(field, v)).join(';');
5383
5388
  } else {
@@ -6850,7 +6855,7 @@ var Sao = {
6850
6855
  el.closest('.modal-body').css('overflow', overflow);
6851
6856
  el.closest('.navbar-collapse.in').css('overflow-y', overflow);
6852
6857
  el.closest('.content-box').css('overflow-y', overflow);
6853
- el.closest('fieldset.form-group_').css('overflow', overflow);
6858
+ el.parents('fieldset.form-group_').css('overflow', overflow);
6854
6859
  Sao.common.scrollIntoViewIfNeeded(el);
6855
6860
  };
6856
6861
 
@@ -10346,10 +10351,11 @@ var Sao = {
10346
10351
  return data;
10347
10352
  },
10348
10353
  get_data: function(record) {
10349
- var data = record._values[this.name] || [];
10354
+ var data = record._values[this.name];
10350
10355
  var prm = jQuery.when(data);
10351
10356
  if (!(data instanceof Uint8Array) &&
10352
- (typeof(data) != 'string')) {
10357
+ (typeof(data) != 'string') &&
10358
+ (data !== null)) {
10353
10359
  if (record.id < 0) {
10354
10360
  return prm;
10355
10361
  }
@@ -9949,16 +9949,18 @@ img.icon {
9949
9949
  max-height: 300px;
9950
9950
  }
9951
9951
  .form .form-text > textarea,
9952
- .form .form-richtext > textarea {
9953
- min-height: 150px;
9954
- max-height: 300px;
9952
+ .form .form-richtext > textarea,
9953
+ .form .form-text .richtext,
9954
+ .form .form-richtext .richtext {
9955
+ line-height: 2.5ex;
9956
+ max-height: 50ex;
9957
+ min-height: 12.5ex;
9958
+ overflow: auto;
9959
+ resize: vertical;
9955
9960
  }
9956
9961
  .form .form-richtext > .btn-toolbar {
9957
9962
  min-width: 450px;
9958
9963
  }
9959
- .form .form-richtext .richtext {
9960
- min-height: 5em;
9961
- }
9962
9964
  .form .form-separator label {
9963
9965
  margin-top: 10px;
9964
9966
  }
@@ -10203,7 +10205,11 @@ input.column-boolean {
10203
10205
  background-color: #d9edf7;
10204
10206
  }
10205
10207
  .email .email-richtext {
10206
- min-height: 10em;
10208
+ line-height: 2.5ex;
10209
+ max-height: 50ex;
10210
+ min-height: 12.5ex;
10211
+ overflow: auto;
10212
+ resize: vertical;
10207
10213
  }
10208
10214
  .email input[type='file'] {
10209
10215
  display: inline-block;