Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

product.template inherit

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

Inheritance in model and views: https://goo.gl/fGNfBY

2 答案
0
形象
odoo
最佳答案

Hi, 

1- class ProductTemplate(models.Model): 

    _inherit = 'product.template'

2- make sure you add the module 'product' in depends in __manifest__.py


P.S : you don't need to create a Module just to inherit a form...

形象
丢弃
0
形象
odoo
最佳答案

Thanks ibrahim i dont know what you mean I created the module for these changes. isnt it better to move on this path for these changes?

if i change the script on the existing documents wouldn't it create issues moving forward?    

2 注释
形象
丢弃
形象
odoo
-

When you said ' I then created a new module to change another form', i understood that you create A new Module to make this heritage.

形象
odoo
-

I was speaking of previous changes that locked up my server. I don't have several modules manipulating 1 form