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

when iam trying to update any module in my odoo13 , iam getting this error someone help me with this 


Avatar
Discard
Best Answer

Hi,

If you are updating your custom module, you have to remove view_type in all XML actions.

Odoo v13 will not support view_type in XML action.

Example:

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

            <field name="name">Invoices</field>

            <field name="res_model">account.invoice</field> 

            <field name="view_mode">tree,form,calendar,graph</field>

            <field name="view_id" ref="invoice_tree"/>

            <field name="context">{'type':'out_invoice'}</field>

            <field name="search_view_id" ref="view_account_invoice_filter"/>

        </record>

Avatar
Discard
Author

thanks for the reply dinesh , but iam still getting the same error

Error:

Traceback:

_renderBodyCell@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:444:25

_renderRow/$cells<@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:838:25

_renderRow@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:837:35

_renderRow@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:1166:32

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:123:38

_renderRows@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:858:32

_renderRows@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:1187:26

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:123:38

_renderBody@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:375:26

_renderBody@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:1092:33

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:123:38

_renderView@http://localhost:8069/web/static/src/js/views/list/list_renderer.js:971:32

OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:90:38

_renderView@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:1222:28

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:123:38

_render@http://localhost:8069/web/static/src/js/views/basic/basic_renderer.js:590:21

_render@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:1055:28

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:133:38

start@http://localhost:8069/web/static/src/js/views/abstract_renderer.js:37:34

OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:90:38

start@http://localhost:8069/web/static/src/js/views/list/list_editable_renderer.js:115:21

OdooClass.extend/Class.include/</prototype[name]</<@http://localhost:8069/web/static/src/js/core/class.js:133:38

_widgetRenderAndInsert/<@http://localhost:8069/web/static/src/js/core/widget.js:433:25

mycode:

<?xml version="1.0" encoding="utf-8"?>

<odoo>

<record id="money_transfer" model="ir.ui.view">

<field name="name">Money.Transfer.form</field>

<field name="model">transfers.name</field>

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

<field name="arch" type="xml">

<tree string ="money_transfers">

<field name ="transfers_Name"/>

<field name ="transfers_ISO"/>

<field name ="transfers_amount"/>

<field name ="notes"/>

<field name ="image"/>

</tree>

</field>

</record>

<record id="money_transfer" model="ir.ui.view">

<field name="name">Money.Transfer.form</field>

<field name="model">transfers.name</field>

<field name="type">form</field>

<field name="arch" type="xml">

<form string ="money_transfers">

<sheet>

<group>

<field name ="transfers_Name"/>

<field name ="transfers_ISO"/>

<field name ="transfers_amount"/>

<field name ="notes"/>

<field name ="image"/>

</group>

</sheet>

</form>

</field>

</record>

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

<field name="name">Transfers</field>

<field name="res_model">transfers.name</field>

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

<field name="help" type="html">

<p class="o_view_nocontent_smiling_face">

create your first transfer

</p>

</field>

</record>

<menuitem id ="transfers_root" name ="Transfers" sequence ="0" web_icon="transfers,static/description/icon.png" />

<menuitem id ="transfers_name" name ="Transfers_Name" parent="transfers_root" action="action_transfers"/>

</odoo>

Best Answer

Hi, Guna


It seems there is some issue with your Odoo. You can pull the latest patch from Odoo then check.

Hope that will fix your issues.

Issues related to that subject "Cannot read property 'type' of undefined" is already raised and closed on GITHUB.


https://github.com/odoo/odoo/issues/27580
https://github.com/odoo/odoo/issues/26060
https://github.com/odoo/odoo/commit/04369bab39a217126811c0b8c26bd40b68f547c5 


Thanks,
Ashish Singh
Webkul Software Private Limited
Avatar
Discard