mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[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:
committed by
twalter-c2c
parent
1b017daba7
commit
dd1248354d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user