Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Oct 30, 2023
1 parent d8932a7 commit fc0db3a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ def create(self, vals_list):
)
res = super().create(vals_list)
return res

def write(self, values):
res = super().write(values)
if values.get('active') and values['active']:
# _compute_default_code is not triggered by default in this case
self.product_tmpl_id._compute_default_code()
return res

0 comments on commit fc0db3a

Please sign in to comment.