跳至內容
選單
此問題已被標幟
2 回覆
7229 瀏覽次數

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



頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
最佳答案

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

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
1
12月 24
11092
1
10月 24
2462
1
6月 25
696
3
5月 25
2440
1
5月 25
679