Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6745 Vistas

I am in version 15, when I try to get a view that I build with mode tree and just one groupby function I get the next error:

TypeError: Function.prototype.apply was called on undefined, which is a undefined and not a function
    at _evaluate (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:852:8)
    at Array.map ()
    at _evaluate (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:849:33)
    at Array.map ()
    at _evaluate (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:849:33)
    at evaluate (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:858:8)
    at evaluateExpr (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:711:109)
    at _preprocessAction (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:20275:214)
    at Object.doAction (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:20357:170)
    at async Object.selectMenu (https://rulesware-pulse-14-pulse15gold-6819479.dev.odoo.com/web/assets/49414-0851803/web.assets_backend.min.js:2430:1)

I don't use any javascript object in this view. It is just a tree view grouped by one field. Anyone have an idea why I get the error? Thanks



Avatar
Descartar
Autor Mejor respuesta

The problem was solved changing a datatype that I was using in the view. I had a datetime datatype field, then I changed that field by a date datatype (without hours:seconds information) and the issue was solved.

Avatar
Descartar
Mejor respuesta

Hello,

If you want to add group on specific field in tree view so you can simply pass the context in the action of the tree view.

Please find code in comment.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Descartar

<field name="context">{ 'group_by': ['name'] }</field>

Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 24
10529
1
oct 24
2172
3
abr 25
1683
0
mar 25
432
1
feb 25
5142