[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:
@@ -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)],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user