Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
6757 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang

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

Post Terkait Replies Tampilan Aktivitas
1
Des 24
10547
1
Okt 24
2177
4
Mei 25
1753
2
Mei 25
1849
0
Mar 25
442