> You can read it from the field quantity on product if you put in the
> context:
> 
>     - stock_date_end: default to today
>     - locations: a list of location ids
> 

Thank you. Why is this not working?:

stockdate = datetime.date(2012,1,1)
config._context['stock_date_end'] = stockdate
stock_2012_01_01 = product.quantity

It always shows the stock of today, but I need stock from 2012/01/01.

-- 
-- 
tryton@googlegroups.com mailing list



Reply via email to