[FIX] point_of_sale: traceback on clicking view button in cash register

before this commit, open a pos session form, click on
cash register smart button and if you click on view
button, traceback is shown.

* open a pos session
* click cash register smart button
* click view button under ID column
* traceback is shown

after the commit, on clicking view button traceback wont
be shown and view will get opened.

closes odoo/odoo#116897

X-original-commit: 5ce6bdb3ba0f098177022fcdd7dfad3f1c27aae6
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
niyasraphy
2023-03-30 16:22:54 +02:00
parent 8da2b52333
commit 6805d2f0f4
+1 -1
View File
@@ -1416,7 +1416,7 @@ class PosSession(models.Model):
'name': _('Cash register'),
'type': 'ir.actions.act_window',
'res_model': 'account.bank.statement.line',
'view_mode': 'tree',
'view_mode': 'tree,kanban',
'domain': [('id', 'in', self.statement_line_ids.ids)],
}