Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7022 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
1
pro 24
10866
1
říj 24
2315
3
kvě 25
2270
1
kvě 25
439
0
kvě 25
422