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

changing in product.py and concern product_view.xml file but that changes couldn't display on screen v- odoo8

By
Rahul Nimgade
on 8/2/16, 1:22 AM 261 views

hello i am new to odoo i made some changes product.py file and product_view.xml

what i am going to do i have an requirement to add another page in product(product_warranty) but that doesn't display on odoo

in

    product_view.xml


<page string="Product Warranty">

<group colspan="4">

<group>

<field name="waranty_year"/>

<field name="waranty_active"/>

<field name="waranty_ex"/>

</group>

</group>

</page>


in  product.py

'waranty_year':fields.selection([('1','one year'),('2','two year')]),

'waranty_active':fields.boolean(),

'waranty_ex':fields.boolean(),


thank you......

Ensure that odoo was restarted and the edited module was upgraded

shameem@axon
on 8/2/16, 1:42 AM

yes ...i did that.....but nothing change

in fact if i delete whole code of that xml file then also no impact on display it display as like nothing happen....but if i change in product.py file then error ocuurs but for xml nothing,,,,!

Rahul Nimgade
on 8/2/16, 1:53 AM
0
Divyang Jariwala
On 8/13/16, 8:18 AM

Hello Rahul Nimgade,

When changing in py file to reflect that changes its require to update in database.

you can do that with -d 'database_name'

 And

When changing in xml file to reflect that changes its require to update module.

you can do that -u 'module_name' or upgrading module from local module.

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

1 follower(s)

Stats

Asked: 8/2/16, 1:22 AM
Seen: 261 times
Last updated: 8/13/16, 8:18 AM