I am working on point of sale where i need to display 'Payment Journal'(Cash / Cheque) and statement id (statement) from 'Accounting' module which containing these fields only not POS. S o need to display in tree view of Point of sale(orders) list. here is my code i tried :
journal_ids = fields.Many2one('account.journal', string='Journal', readonly=True, domain=[('type', 'in', ('bank', 'cash'))])
journal_id = fields.Char(related='journal_ids.type', store=True)
journal_ids
has value, plus make sure they are visible in view – Dachi Darchiashvilijournal_id
while the second should be calledjournal_name
(or something in that way, nothing in the guideline). – CZoellner