How can i display journal name, credit and debit about in point of sale orders tree view. i used to made relationship between pos.order and account.bank.statement models but still not showing field value in pos Tree view Or anyother way to perform this task? ..Here is code below to display account journal name
**pos_order.py**
journals_id = fields.One2many('account.bank.statement','journals', string='Journal', readonly=True)
journal_id = fields.Char(related='journals_id.type', store=True, readonly=True)
**account_bank_statement.py**
class AccountBankStatement(models.Model):
_inherit = 'account.bank.statement'
journals = fields.Many2one('pos.order', string="Journals", ondelete='cascade')