summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-11-28 15:12:31 +0100
committerChristophe Simonis <chs@odoo.com>2017-11-28 15:12:31 +0100
commit5851a69aa3ac2b140ffccdbe43427cdad3e74e0c (patch)
tree2da1f6c4d65f4466bc8c263328ae55b007ca6da7 /addons/web/static/src/js/views/basic/basic_renderer.js
parent41d2470093a5e18ecebc86f2f878813f1879462d (diff)
parent3f66814a0d01a81bef5456a07da4b1ac8e2281e7 (diff)
[MERGE] forward port branch saas-16 up to 3f66814a0d0
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
-rw-r--r--addons/web/static/src/js/views/basic/basic_renderer.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/basic/basic_renderer.js b/addons/web/static/src/js/views/basic/basic_renderer.js
index 543ce01191e..21fabbc2274 100644
--- a/addons/web/static/src/js/views/basic/basic_renderer.js
+++ b/addons/web/static/src/js/views/basic/basic_renderer.js
@@ -357,6 +357,17 @@ var BasicRenderer = AbstractRenderer.extend({
return this.state.count !== 0;
},
/**
+ * This function is called each time a field widget is created, when it is
+ * ready (after its willStart and Start methods are complete). This is the
+ * place where work having to do with $el should be done.
+ *
+ * @private
+ * @param {Widget} widget the field widget instance
+ * @param {Object} node the attrs coming from the arch
+ */
+ _postProcessField: function (widget, node) {
+ },
+ /**
* Registers or updates the modifiers data associated to the given node.
* This method is quiet complex as it handles all the needs of the basic
* renderers:
@@ -524,6 +535,7 @@ var BasicRenderer = AbstractRenderer.extend({
));
},
}, modifiersOptions || {}));
+ self._postProcessField(widget, node);
});
return widget;