跳至內容
選單
此問題已被標幟
1 回覆
1982 瀏覽次數

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
1822
3
10月 23
8076
2
4月 23
2747
2
2月 25
40429
2
11月 22
2825