mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Set resource before saving
Excluded fields are not validated so the resource field is not set on attachment by the domain inversion (it is done on validation). issue3525 review18991002
This commit is contained in:
parent
037102486a
commit
49c18f8731
1 changed files with 4 additions and 0 deletions
|
@ -401,6 +401,10 @@
|
|||
callback: function(result) {
|
||||
var prm = jQuery.when();
|
||||
if (result) {
|
||||
var resource = this.screen.group.model.fields.resource;
|
||||
this.screen.group.forEach(function(record) {
|
||||
resource.set_client(record, this.resource);
|
||||
});
|
||||
prm = this.screen.group.save();
|
||||
}
|
||||
if (this.attachment_callback) {
|
||||
|
|
Loading…
Reference in a new issue