[FIX] point_of_sale: open payment form from list

Impossible to open a pos.payment form through the session. Go to PoS >
 Sessions > open a session > Payments > you have the list view, and the
 form view doesn't open if you click on a line. Demo :
 https://drive.google.com/file/d/1IUFSsUGRhnbHAniSh6pldfSlPqRh8_JE/view
This commit is contained in:
Gert Pellin
2019-09-13 10:05:44 +00:00
committed by Pierre Masereel
parent 6f950482d3
commit 2d36eb8baa
+1 -2
View File
@@ -739,8 +739,7 @@ class PosSession(models.Model):
'name': _('Payments'),
'type': 'ir.actions.act_window',
'res_model': 'pos.payment',
'view_id': self.env.ref('point_of_sale.view_pos_payment_tree').id,
'view_mode': 'tree',
'view_mode': 'tree,form',
'domain': [('session_id', '=', self.id)],
'context': {'search_default_group_by_payment_method': 1}
}