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:
C?dric Krier 2016-02-11 22:22:22 +01:00
parent 037102486a
commit 49c18f8731

View file

@ -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) {