我想更改文件中的函数js。怎么做?有什么方法可以重写该函数吗?
addons/web/static/src/js/views/form_common.js,
我想改变function-get_search_result: function(search_val){}
dataset.name_search(search_val, self.build_domain(), 'ilike', 160).done(function(_data) {self._search_create_popup("search", _data);}
Run Code Online (Sandbox Code Playgroud)
需要将值更改160为其他值
提前致谢
我正在将模块从 odoo v10 升级到 odoo v11。发现将get_action替换为report_action。所以我使用了如下代码
self.env.ref('report_action_name').report_action(self, data=data, config=False)
但它给了我错误 AttributeError: 'ir.ui.view' object has no attribute 'report_action' 提前致谢