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

suppose I have invoice selection field 

select_invoice_id = fields.Many2one('account.move', string='invoice")

related_account_id = fields.Many2one(string="related account")

i want list of accounts inside the invoice line available on the field "related_account_id"

How's that possible? please help

아바타
취소
베스트 답변

Hi,

Seems you need to filter the related_account_id field with the accounts inside the selected invoice, for this you can try returning the domain from the onchange of the invoice field.

See: How To Give Domain For A Field Based On Another Field

 Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
4월 24
2001
3
10월 23
8267
2
4월 23
2876
2
2월 25
40680
2
11월 22
2923