This question has been flagged
2 Replies
1237 Views
 raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /home/salma/odoo15/custom15/ms_farm/data/data_views.xml:4, somewhere inside

            124100
            Fertilize Stock
            
            
        
model="account.account" id="farm_account_124100">
name="code">124100
name="name">Fertilize Stock
name="reconcile" eval="False"/>
name="user_type_id" ref="data_account_type_current_assets"/>

 

i had this error. any feedback   

Avatar
Discard
Author Best Answer

many thanks it works :)

Avatar
Discard
Best Answer

Hi

The data.xml file is not loaded because the used module 'account.account' does not have (code, reconcile, user_type_id) fields.

If you can change the model name 'account.account' to 'account.account.template' in 'data.xml' according to v15 changes.

Please find code in comment. 

I Hope this will help you. 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

Please update the below changes in the 'data.xml' file.

<record model="account.account.template" id="farm_account_124100">
<field name="code">124100</field>
<field name="name">Fertilize Stock</field>
<field name="reconcile" eval="False"/>
<field name="user_type_id" ref="account.data_account_type_current_assets"/>
</record>