Let users search products and locations by quantity

Registered by Numérigraphe

This was discussed for years, but it seems the search methods for product quantities on the Product model and the Stock Location model are still not implemented.

We should implement them and add quick filters :
- available products (stock>0)
- products out of stock
- products with negative stock
- used locations (stock >0)
- empty locations (stock = 0)
- locations with negative stock(stock<0)

Blueprint information

Status:
Started
Approver:
Stock and Logistic Core Editors
Priority:
Undefined
Drafter:
Numérigraphe
Direction:
Needs approval
Assignee:
None
Definition:
Review
Series goal:
Proposed for trunk
Implementation:
Beta Available
Milestone target:
None
Started by
Numérigraphe

Whiteboard

Numerigraphe have an implementation available for v6.0 which works and should not be too difficult to adapt for the current trunk. It does need refactoring with regards to the improvements of the stock module, but could be used as a basis for this.

Probably other implementations exist, so please spread the word so we can get everyone to work on the same proposal.

Cristian Salamea can help migrating existing module for 6.0 to 6.1

(?)

Work Items

Work items:
Extract the changes in Numerigraphe's branch as a module for v6.0: DONE
Review/clean up/improve the implementation: TODO
Migrate module to 6.1, merge into lp:stock-logistic-warehouse/6.1: TODO
Migrate module to 7.0, merge into lp:stock-logistic-warehouse: TODO
Convert module to a clean patch, propose to merge into the trunk: TODO

This blueprint contains Public information 
Everyone can see this information.