fix product send mail

This commit is contained in:
eslamabady 2024-07-24 09:22:08 +03:00
parent a15e50a7cb
commit ab6a30e703
1 changed files with 2 additions and 1 deletions

View File

@ -678,7 +678,8 @@ class ProductCustom(models.Model):
@api.model
def create(self, vals):
res = super(ProductCustom, self).create(vals)
self.action_notify_new_product(res)
if 'import_file' not in self.env.context:
self.action_notify_new_product(res)
return res