Remove sao_document_field as it has already been committed into core.

This commit is contained in:
Albert Cervera i Areny 2023-12-11 17:05:48 +01:00
parent c3919fa1dc
commit dbe0c1c5e8
2 changed files with 0 additions and 37 deletions

View File

@ -1,35 +0,0 @@
--- a/sao/src/view/form.js
+++ b/sao/src/view/form.js
@@ -4415,15 +4418,20 @@ function eval_pyson(value){
this.el = jQuery('<div/>', {
'class': this.class_,
});
-
+ this.object = null;
+ },
+ create_object: function() {
+ if (this.object) {
+ this.object.remove();
+ }
this.object = jQuery('<object/>', {
'class': 'center-block',
}).appendTo(this.el);
- if (attributes.height) {
- this.object.css('height', parseInt(attributes.height, 10));
+ if (this.attributes.height) {
+ this.object.css('height', parseInt(this.attributes.height, 10));
}
- if (attributes.width) {
- this.object.css('width', parseInt(attributes.width, 10));
+ if (this.attributes.width) {
+ this.object.css('width', parseInt(this.attributes.width, 10));
}
},
display: function() {
@@ -4456,6 +4464,7 @@ function eval_pyson(value){
});
url = window.URL.createObjectURL(blob);
}
+ this.create_object();
this.object.attr('data', url);
this.object.get(0).onload = function() {

2
series
View File

@ -22,5 +22,3 @@ statement_of_account.diff # [account] Cumulate balance of previous fiscal years
issue11731.diff # [currency] currency test don't pass when Currency Rates Source Not Ready (forex)
counterpart_party_payment_clearing.diff # [account_payment_clearing] Add the possiblity to have a party in the counterpart move when reconcile on a payment.
sao_document_field.diff # [sao] fix issue with loading of 'document' fields in sao