跳至内容
菜单
此问题已终结
3 回复
2587 查看

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

编写者

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

最佳答案

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.

形象
丢弃