Skip to content
Permalink
Browse files

[FIX] stock: late pickings

With the demo data:
- Go to Inventory
- On the 'Delivery Order' Kanban card of YourCompany, click on 'Late'

More pickings are displayed than the expected count.

This is because the domain of the filter is not in line with the domain
of `_compute_picking_count`.

Closes #29777
opw-1951090
  • Loading branch information...
nim-odoo committed Mar 20, 2019
1 parent 9854e0e commit c5388510e89eccdf8f008619caa3301f46fcb545
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/stock/views/stock_picking_views.xml
@@ -354,7 +354,7 @@
<filter name="confirmed" string="Confirmed" domain="[('state','in', ('confirmed', 'waiting', 'assigned'))]" help="Confirmed Moves"/>
<filter name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
<separator/>
<filter name="late" string="Late" domain="[('scheduled_date','&lt;', time.strftime('%%Y-%%m-%%d %%H:%%M:%%S'))]" help="Pickings that are late on scheduled time"/>
<filter name="late" string="Late" domain="[('scheduled_date','&lt;', time.strftime('%%Y-%%m-%%d %%H:%%M:%%S')), ('state', 'in', ('assigned', 'waiting', 'confirmed'))]" help="Pickings that are late on scheduled time"/>
<separator/>
<filter name="backorder" string="Backorders" domain="[('backorder_id','!=', False)]" help="Remaining parts of picking partially processed"/>
<separator/>

0 comments on commit c538851

Please sign in to comment.
You can’t perform that action at this time.