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

Hi all,


It is possible to create tree view on "hr.resume.line" model from "hr_skills" module? Im using Odoo v13.0


Every time I tried to create / access tree view, this error occurs:

Traceback:
Error: can't access property "type", this.fields[attrs.fieldName] is undefined
_extractAttributes@http://localhost:8069/web/static/src/js/views/control_panel/control_panel_view.js:202:13
_parseSearchArch/<@http://localhost:8069/web/static/src/js/views/control_panel/control_panel_view.js:344:22
_.forEach@http://localhost:8069/web/static/lib/underscore/underscore.js:145:17
_parseSearchArch@http://localhost:8069/web/static/src/js/views/control_panel/control_panel_view.js:303:11
init@http://localhost:8069/web/static/src/js/views/control_panel/control_panel_view.js:126:22
OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:90:38
Class@http://localhost:8069/web/static/src/js/core/class.js:107:33
_createControlPanel@http://localhost:8069/web/static/src/js/views/abstract_view.js:282:32
getController@http://localhost:8069/web/static/src/js/views/abstract_view.js:213:51
OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:90:38
_createViewController/def<@http://localhost:8069/web/static/src/js/chrome/action_manager_act_window.js:195:22
_createViewController@http://localhost:8069/web/static/src/js/chrome/action_manager_act_window.js:193:23
_executeWindowAction/</<@http://localhost:8069/web/static/src/js/chrome/action_manager_act_window.js:307:43

Here's the action xml:

<record id="action_hr_resume_line" model="ir.actions.act_window">
<field name="name">Resume Line</field>
<field name="res_model">hr.resume.line</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree</field>
</record>

Thanks

Avatar
Discard
Author

anyone?

Author Best Answer

Dear, Kiran Mohan,

Thanks for the reply, i've tried but the same error still occurs


Update on 29/4/21

Closed,

Turns out theres xml groupBy that require 'line_type' when there's no field 'line_type' on the model, just add field 'line_type' to the model and its done!

Avatar
Discard
Best Answer

Hi ,


Try 

<record id="action_hr_resume_line" model="ir.actions.act_window">

    <field name="name">Resume Line</field>

    <field name="res_model">hr.resume.line</field>

    <field name="view_mode">tree</field>

</record>


Avatar
Discard
Related Posts Replies Views Activity
2
Sep 21
9612
1
Apr 16
3032
1
Mar 15
3498
1
Mar 15
5238
3
Mar 21
8721