Skip to Content
Menu
This question has been flagged
1 Reply
4857 Views

I'm converting one of my custom module from Odoo 12 to 13, during the conversion the given log is repeating all the time. 

 File "/home/nizar/workspace/odoo/odoo/addons/base/models/ir_ui_view.py", line 406, in _check_xml raise ValidationError(_('Invalid view %s definition in %s') % (view_name, view.arch_fs

odoo.tools.convert.ParseError: "Invalid view portal.client.select definition in portal/views/portal.xml

My view definition:

<record id="view_portal_client_filter" model="ir.ui.view">
<field
name="name">portal.client.select</field>
<field
name="model">client</field>
<field
name="arch" type="xml">
<search
string="Search Client">
<field
name="name" string="Database Name"/>
<filter
string="In Progress" name="current" domain="[('state', '=','open')]"/>
<separator/>
<field
name="partner_id" string="Contact" filter_domain="[('partner_id', 'child_of', self)]"/>
<group
expand="0" string="Group By">
<filter
string="Plan" domain="[]" context="{'group_by':'plan_id'}"/>
</group>
</search>
</field>
</record>


Avatar
Discard
Best Answer

Hi,

Change this line,

 <filter string="Plan" domain="[]" context="{'group_by':'plan_id'}"/>

To

<filter string="Plan" name="plan" domain="[]" context="{'group_by':'plan_id'}"/>

Thanks

Avatar
Discard
Author

Thank you very much Nizay, YOu saved my days. I was looking into this from yesterday.

Author

I made a typo on your name Niyas, Thank you again. But I don't have much karma for correct it.

Related Posts Replies Views Activity
4
Feb 24
4715
3
Mar 24
1659
0
Nov 22
1211
2
Feb 22
4322
0
Nov 21
1751