Odoo Help

Welcome!

This community 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.

0

Error openerp view in openerp 7

By
mid123
on 4/20/13, 4:23 AM 2,181 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"/>
            </tree>
        </field>
    </record>

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.

IBS
on 4/20/13, 3:03 PM
2

Akhil P Sivan

--Akhil P Sivan--
3423
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 2/20/15, 8:52 AM

Hi,

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'

0

priyankahdp

--priyankahdp--
1089
| 5 5 6
Colombo, Sri Lanka
--priyankahdp--
Java Developer ORACLE Python J2EE Spring Hibernate Struts & Jquery............. :-)
priyankahdp
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

0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 4/22/13, 9:16 AM

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

0
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  

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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