Odoo Help


Error openerp view in openerp 7

on 4/20/13, 4:23 AM 2,546 views
    <record id="view_sale_history_tree" model="ir.ui.view">
        <field name="name">sale.history.tree</field>
        <field name="model">sale.history</field>
        <field name="arch" type="xml">
            <tree string="history">
                <field name="date"/>
                <field name="user"/>
                <field name="reason"/>

Error came like this openerp.addons.base.ir.ir_ui_view: Can't render view for model: sale.history what is the error in this view

Please copy/paste the entire error. Thanks.

odoo.ma by IBS Group
on 4/20/13, 3:03 PM
Akhil P Sivan
On 2/20/15, 8:52 AM


Check the __init__.py file of your module. Because the object sale.history is not yet created for the view. You might have not done the import of wizard or folder containing the .py file defining the class 'sale.history'

On 4/22/13, 12:49 AM

seems something missing to you in model class when comparing with relevant view.xml please double check those fields in view.xml again with model class

On 4/22/13, 9:16 AM

You are using the model sale.history. Are you sure that model exist?

Dasadiya Chaitanya
On 6/16/14, 9:03 AM

If the above solution can check it then after u can check  and if you may successfully  add the entery of view file in under field

data['yourview filename.xml ']  in   __openerp__.py file  

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/20/13, 4:23 AM
Seen: 2546 times
Last updated: 3/16/15, 8:10 AM