Skip to Content
Menu
This question has been flagged
2 Replies
5210 Views

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
Discard
Author Best Answer

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
Discard
Best Answer

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
Discard

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

Related Posts Replies Views Activity
0
Jun 23
8899
1
Oct 24
1699
2
Dec 24
3118
1
Dec 24
345
4
Nov 24
1363