コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4371 ビュー

I would like to calculate product qty using a product.product funciton _product_available to calculate the qty between two date

アバター
破棄
最善の回答

Hi, I think you can try after code: 

start_date = datetime.datetime.strptime(date_start, '%Y-%m-%d')

end_date = datetime.datetime.strptime(date_end, '%Y-%m-%d')

ctx = { 'to_date': end_date , 'from_date': start_date }

qty= self.pool.get('product.product').browse(cr, uid, product_id, ctx).qty_available


アバター
破棄
著作者

how to specify location_from and location_dest of movement ?

vvhat is the mean?

On Friday, September 11, 2015, Rachid <m3asmi-hotmail.com@mail.odoo.com> wrote:

how to specify location_from and location_dest of movement ?

--
Rachid
Sent by Odoo S.A. using Odoo access your messages


--
Name : Vũ Minh Quân
Phone : 090 2077220
Skype : quanvm00

著作者

I mean can we know the qty of product come from a location to a location in a specific date or hours

関連投稿 返信 ビュー 活動
1
8月 19
2760
3
8月 24
2090
0
1月 22
2367
0
8月 21
2208
1
3月 16
6854