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

Hello, 

I have added a many2many field in the account.invoice model to be able to select a picking and associate it to the invoice. 

My problem is that I would like to be able to see in the picking selection form, only the picking related to the current purchase order of the invoice. 

It seems that the active_id is something that could help, but I can't find how to do this. 


I'm working on Odoo 12 cloud, with Odoo studio. 


Thanks for your help ! 

thomas


아바타
취소
베스트 답변

This should work:

domain="[('origin', '=', origin)]


아바타
취소
작성자

Great thank You !

Works perfectly

작성자 베스트 답변

Thanks a lot for your feedback, but unfortunately, this doesn't seems to do the trick. After writing domain="[('purchase_id', '=', purchase_id)]", when I want to select the picking, I have no record showing. 


I also tried : domain="[('origin.id', '=', account_invoice.origin.id)]" but this doesn't work either.



아바타
취소
관련 게시물 답글 화면 활동
2
2월 25
1207
2
2월 22
8887
1
3월 15
4300
0
3월 15
4747
0
10월 23
1672