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

I have reordering rules on automatic for raw materials. But i don't need reordering rules for products for sale. Is it possible to make an automated action to remove reordering rules when the product category is updated to Product?

아바타
취소
베스트 답변

You can do this by defining an automated action like so. Replace "Test" with the actual name of your product category ("Product" in your example above)


Python code:

for rule in env['stock.warehouse.orderpoint'].search([('product_id', 'in', record.product_variant_ids.ids)]):
rule.unlink()
아바타
취소
작성자

Wow! You really saved me! Thank you so much Paresh!

관련 게시물 답글 화면 활동
0
9월 15
4455
0
7월 15
3441
0
3월 15
3375
2
4월 25
1238
3
4월 23
2725