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

Hi all, is it possible to stop merging same products on delivery orders or purchase orders ?

I think this is done in _prepare_pack_ops function, but i can't find a way to stop this behaviour, so each line on Initial Demand create a line on Operations tab, even if the product is the same ?

Thank you

아바타
취소

Don't know. But can you give me any use case when you need this kind of behaviour..

작성자

The use case is simple Pinakin: you create a sale order with the same product (or variant), but with different description, and you want this description on the delivery order, how can we achieve that ?

작성자

I just edited my question, as this occurs not only on delivery orders, but in all pickings, as the problem is the same with purchase ...

베스트 답변

In the function _action_confirm, stock moves default to merge=True. You can pass ._action_confirm(merge=False) to disable merging for specific moves.

Alternatively, if you want to disable merging entirely, you can override the _merge_moves method like this:

def _merge_moves(self, merge_into=False):
    return self

This will prevent any move merging in all cases.

아바타
취소
베스트 답변

hey , done this in odoo11 , stock stock_move.py

        #if merge:
            #return self._merge_moves(merge_into=merge_into)
        return self

아바타
취소
관련 게시물 답글 화면 활동
0
4월 19
3598
1
5월 25
1462
2
5월 25
1570
2
8월 24
2275
2
1월 24
3093