Use field context to edit record

issue10806
review364101002
(grafted from 1249931768127750f3c905256aa435285a9a00fc)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-10-08 19:10:46 +02:00
1 parent ac628353be
commit dff2e6ce9e
2 files changed
+2

No files matched your search

+1
View File
@@ -2560,6 +2560,7 @@ function eval_pyson(value){
params.res_id = m2o_id;
params.mode = ['form'];
params.name = this.attributes.string;
params.context = this.field.get_context(this.record);
Sao.Tab.create(params);
return;
}
+1
View File
@@ -2267,6 +2267,7 @@
params.res_id = this.field.get(record);
params.mode = ['form'];
params.name = this.attributes.string;
params.context = this.field.get_context(record);
Sao.Tab.create(params);
}.bind(this));
}