Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1985 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 24
1825
3
říj 23
8077
2
dub 23
2752
2
úno 25
40430
2
lis 22
2832