Skip to content

Commit

Permalink
[FIX] call notify() on product.product model instead of template
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierrick Brun committed Oct 22, 2018
1 parent 5c93652 commit df687d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector_ecommerce/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _price_changed(self, vals):
remove_products = product_model.browse(from_product_ids)
products -= remove_products
for product in products:
self._event('on_product_price_changed').notify(product)
product._event('on_product_price_changed').notify(product)
# deprecated:
on_product_price_changed.fire(self.env,
product_model._name,
Expand Down

0 comments on commit df687d8

Please sign in to comment.