Skip to Content
Menu
This question has been flagged
1 Atsakyti
2033 Rodiniai

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
bal. 24
1852
3
spal. 23
8095
2
bal. 23
2774
2
vas. 25
40461
2
lapkr. 22
2853