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

hi every one,

how i can get all products by each location in postgreSQL?

i can´t find the table where odoo save the quantity of all products for each location

thanks in advance

아바타
취소
베스트 답변

To insert product no need to create stock moves. Stock Moves needs to created only if products quantity needs to be updated.

아바타
취소
베스트 답변

That is because OpenERP does not store that information directly into Postgres. It is based on a calculated field that gets updated everytime it is triggered within OpenERP. For example, when a stock move is set to the specified location.

If you want an overview outside of Postgres, just go the specified location and print out the stock report.

If you must do this within postgres then you should loop over the stock_move table and calculate based on the product_id, destination_location_id and source_location_id (or something like that).

아바타
취소
작성자 베스트 답변

thank Ludo, and is the same for inserting a products? i have to insert data into much tables?

아바타
취소
작성자

Inserting products should be done using an XML-RPC connection preferably, because you will loose all sort of information when only inserting records into OpenERP. If you want to insert stock for existing products than you should be fine using the stock moves.

관련 게시물 답글 화면 활동
Locations 해결 완료
1
3월 15
8925
8
12월 23
37933
2
8월 21
4784
1
4월 19
3014
6
10월 17
13236