콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4483 화면

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
2840
3
8월 24
2221
0
1월 22
2482
0
8월 21
2336
1
3월 16
6854