hi, anyone know that,
if we want to patch a owl class, like 'searchpanel'. how to do that?
===========
like that In odoo 13, we use include.
Patching an existing class
It is not common, but we sometimes need to modify another class in place. The goal is to have a mechanism to change a class and all future/present instances. This is done by using the include method:
var Hamster = require('web.Hamster'); Hamster.include({ sleep: function () { this._super.apply(this, arguments); console.log('zzzz'); }, });
Please go through this, may help you
https://odoo.github.io/owl/playground/
I have the same question, anyone found right way to do this?
It did work thank you !
I'm glad it helped you.