Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2287 Visualizações

in the documentation, it was just mentioned as a passing remark

https://www.odoo.com/documentation/17.0/developer/reference/frontend/javascript_reference.html#patching-classes

But is there any example I can refer to?

Avatar
Cancelar
Melhor resposta

I think it should be done some like this:

patch(ClassToPatch, {
components: {
​...(ClassToPatch.components || {}),
​Dropdown,
​DropdownItem,
​}
})


Avatar
Cancelar
Melhor resposta

Hi,

Please refer to the following blog for an understanding the working of patching, with example:


https://www.cybrosys.com/blog/how-to-patch-existing-owl-component-in-odoo-17


Hope it helps.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
jul. 24
2670
2
mai. 24
2196
1
dez. 23
2624
1
jun. 24
1453
1
mai. 24
1954