summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-02-25 09:33:19 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit1a7fbd5a13fe8d9c6d47fb49204061b002240ac8 (patch)
treefe91058c63fadb58c3727c70b78850f83599462d /addons/web/static/src/js
parentdba7e64a2f7129bd76b71aec9b156773cb77e8c3 (diff)
[FIX] web: make sure form view properly transmit attrs
When creating a new record, the form view did not properly transmit the attrs to the new record.
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/form/form_controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form/form_controller.js b/addons/web/static/src/js/views/form/form_controller.js
index c1824223849..3dde4fd5088 100644
--- a/addons/web/static/src/js/views/form/form_controller.js
+++ b/addons/web/static/src/js/views/form/form_controller.js
@@ -56,6 +56,7 @@ var FormController = BasicController.extend({
var record = this.model.get(this.handle, {raw: true});
return this.model.makeDefaultRecord(this.modelName, {
context: this.context,
+ fieldAttrs: record.fieldAttrs,
fieldNames: record.fieldNames,
fields: record.fields,
res_ids: record.res_ids,