Odoo Help


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

Rahul Nimgade
on 8/2/16, 1:22 AM 637 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



<page string="Product Warranty">

<group colspan="4">


<field name="waranty_year"/>

<field name="waranty_active"/>

<field name="waranty_ex"/>




in  product.py

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



thank you......

Ensure that odoo was restarted and the edited module was upgraded

Odoo Developer
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
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'


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.

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

1 follower(s)


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