qweb

Odoo 9. How to override form widgets?

不羁岁月 提交于 2019-11-27 00:58:09
问题 I work with odoo 9 . In the system exists render_value method for each type of field: /odoo/addons/web/static/src/js/views/form_widgets.js /odoo/addons/web/static/src/js/views/form_relational_widgets.js How I can use my custom method render_value (for example in FieldChar ) for all forms? And how I can use specific render_value for one form or one module? I created form_widgets.js in my module, but I not understand how properly override Field. odoo.define('my_module.form_widgets', function