Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2136 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 24
2057
3
Okt. 23
8330
2
Apr. 23
2928
2
Feb. 25
40795
2
Nov. 22
2970