odooproductquotations

Product and Description with different name in odoo


How can you make products and descriptions name different from each other? The picture below has the same names. enter image description here

I cannot edit it in products.

enter image description here


Solution

  • You have to overwrite the name_get function of a product.product the object for this. You Can check the sample,

    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
    

    Thanks