tryton-sao 5.8.13 → 5.8.14

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,6 @@
1
+ Version 5.8.14 - 2021-10-01
2
+ * Bug fixes (see mercurial logs for details)
3
+
1
4
  Version 5.8.13 - 2021-09-16
2
5
  * Bug fixes (see mercurial logs for details)
3
6
 
@@ -13744,6 +13744,15 @@ function eval_pyson(value){
13744
13744
  Sao.View.Form.HTML._super.display.call(this);
13745
13745
  this.button.attr('href', this.uri());
13746
13746
  },
13747
+ set_readonly: function(readonly) {
13748
+ Sao.View.Form.HTML._super.set_readonly.call(this, readonly);
13749
+ this.el.find('button').prop('disabled', readonly);
13750
+ if (readonly) {
13751
+ this.el.find('a').hide();
13752
+ } else {
13753
+ this.el.find('a').show();
13754
+ }
13755
+ },
13747
13756
  translate_dialog: function(languages) {
13748
13757
  var options = {};
13749
13758
  languages.forEach(function(language) {