You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method must be triggered after you unarchive first product variant, but it is not.
It can be fixed like this:
classProductProduct(models.Model):
_inherit="product.product"defwrite(self, values):
res=super().write(values)
ifvalues.get('active') andvalues['active']:
# _compute_default_code is not triggered by default in this caseself.product_tmpl_id._compute_default_code()
returnres```
The text was updated successfully, but these errors were encountered:
Problem: When you delete attributes from product template default_code is not restored.
Versions: 14.0. Looks like it is in master as well.
Steps to reproduce:
Expected behavior: default_code must be restored from single related product variant.
Suggestions:
This method must be triggered after you unarchive first product variant, but it is not.
It can be fixed like this:
The text was updated successfully, but these errors were encountered: