Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2005 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
1848
3
thg 10 23
8083
2
thg 4 23
2772
2
thg 2 25
40453
2
thg 11 22
2849