product_update_price_last_purchase: clean logger

This commit is contained in:
Luis 2024-01-18 17:28:17 +01:00
parent 39dd06bacc
commit ed2cab2b15

View file

@ -18,7 +18,6 @@ class StockMove(models.Model):
def product_price_update_before_done(self): def product_price_update_before_done(self):
res = super(StockMove, self).product_price_update_before_done() res = super(StockMove, self).product_price_update_before_done()
for move in self.filtered(lambda move: move.location_id.usage == "supplier"): for move in self.filtered(lambda move: move.location_id.usage == "supplier"):
_logger.warning("move: %s" % move)
if ( if (
move.product_id.last_purchase_price_received_compute_type move.product_id.last_purchase_price_received_compute_type
== "with_three_discounts" == "with_three_discounts"