在odoo中使用不同名称的产品和说明
如何使产品和描述名称彼此不同?下面的图片有相同的名字。 我不能在产品中编辑它在odoo中使用不同名称的产品和说明,odoo,product,quotations,Odoo,Product,Quotations,如何使产品和描述名称彼此不同?下面的图片有相同的名字。 我不能在产品中编辑它 您必须覆盖产品的名称\u get函数。产品为此对象。你可以检查一下样品 class ProductProductInherit(models.Model): _inherit = 'product.product' def name_get(self): res = super(ProductProductInherit, self).name_get() # write the code to h
您必须覆盖产品的名称\u get函数。产品为此对象。你可以检查一下样品
class ProductProductInherit(models.Model):
_inherit = 'product.product'
def name_get(self):
res = super(ProductProductInherit, self).name_get()
# write the code to here
# then you can return the product name
return res
谢谢