Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2854 Widoki

i want to  appear available lots in stock but this appear available product not lots . 

exp product_qty = 10 , lot_1=0, lot_2=10 , expected from this filter  lot_2 only but lot_1 appear so .

<filter string="qty_available" name="qty" domain="[('product_id.qty_available','>', 0)]"/>


and this 

domain="[('lot_id.product_qty','>', 0)]"
gave me ValueError: Invalid field u'lot_id.product_qty' in leaf "<osv.ExtendedLeaf: (u'lot_id.product_qty', u'>', 0) on stock_production_lot (ctx: )>"
Awatar
Odrzuć

Very interested in the solution. As time goes, you find all lots for a product, but most of the time you only want to see thoes with stock.

I think you need to filter on Quants. The quantity on hand lot is stored in quants.quantity

Powiązane posty Odpowiedzi Widoki Czynność
5
wrz 20
12916
1
mar 15
5426
0
mar 15
4081
2
mar 15
7639
6
maj 24
71199