Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1996 Visninger

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

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
apr. 24
1839
3
okt. 23
8083
2
apr. 23
2768
2
feb. 25
40445
2
nov. 22
2846