콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2661 화면
 .. In a multi-company environment where each company has two or more warehouses, how do we make a warehouse a default warehouse when a SO or PO is created.

Example in Company 2: I want warehouse 2 to always be chosen by default.
Whereas in company 3: I want warehouse 5 to be always chosen by default.
아바타
취소
베스트 답변

Hi,
The default warehouse selected for a sale order is based on the current company.
The domain which is used to select the default warehouse is,


[('company_id', '=', self.env.company.id)]

and the method is,


def _get_default_warehouse_id(self):

Hence the default warehouse will be the first warehouse shown in the tree view of warehouses under the inventory module. Here there is a drag option to arrange the warehouses. So make sure the warehouse which has to be selected by default is on the top of the tree view.
If you have any other criteria in selecting the default warehouse then try updating the domain used in the function.

Regards

아바타
취소
관련 게시물 답글 화면 활동
2
9월 24
5644
0
8월 21
3060
1
5월 22
3097
0
10월 24
1444
1
1월 24
1640