Hi Odooers,
I want to prevent the product.template object from clearing the internal reference when it's variant's internal reference changed.I tried the below code, the text is printing but product.template's internal reference value is still erased
class ProductProduct(models.Model):
_inherit = 'product.template'
@api.depends('product_variant_ids', 'product_variant_ids.default_code')
def _compute_default_code(self):
print("overridden")
kindly suggest any solutions.
Thanks in advance