fix product send mail
This commit is contained in:
parent
a15e50a7cb
commit
ab6a30e703
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue