[FIX] stock_average_daily_sale: Don't exclude moves on priority

By default the priority in odoo is set to '0'. Before this change
the daily sale was never computed for moves done in a normal process.
There is no need to filter out moves based on the priority from
the computation.
This commit is contained in:
Laurent Mignon (ACSONE)
2023-07-31 18:22:08 +02:00
committed by twalter-c2c
parent 1b017daba7
commit dd1248354d

View File

@@ -209,7 +209,6 @@ class StockAverageDailySale(models.Model):
WHERE
sl_src.usage in ('view', 'internal')
AND sl_dest.usage = 'customer'
AND sm.priority > '0'
AND sm.date BETWEEN cfg.date_from AND cfg.date_to
AND sm.state = 'done'
WINDOW pid AS (PARTITION BY sm.product_id, sm.warehouse_id)