Skip to Content
Menu
This question has been flagged
3 Replies
2231 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......

Avatar
Discard

Ensure that odoo was restarted and the edited module was upgraded

Author

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,,,,!

Best Answer

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.

Avatar
Discard