diff options
| author | Gert Pellin <gpe@odoo.com> | 2019-09-09 09:25:27 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2019-09-13 10:05:44 +0000 |
| commit | 20c097996ee382501acf67d7ae1bee7ccd540f80 (patch) | |
| tree | 0cb884149cc96de265f32d9a95d69504dbdc1913 /addons | |
| parent | d61be86bf0581ee6fa1badc66c2afc08fdb5ffc1 (diff) | |
[FIX] point_of_sale: pos_payment group on session
TRACEBACK on pos.payment list view > Group By : Sessions
https://pastebin.com/cKESKmP6
session_id was not a stored field.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/models/pos_payment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/models/pos_payment.py b/addons/point_of_sale/models/pos_payment.py index 7f34d01f4d4..1bfe9f351b0 100644 --- a/addons/point_of_sale/models/pos_payment.py +++ b/addons/point_of_sale/models/pos_payment.py @@ -22,7 +22,7 @@ class PosPayment(models.Model): currency_id = fields.Many2one('res.currency', string='Currency', related='pos_order_id.currency_id') currency_rate = fields.Float(string='Conversion Rate', related='pos_order_id.currency_rate', help='Conversion rate from company currency to order currency.') partner_id = fields.Many2one('res.partner', string='Customer', related='pos_order_id.partner_id') - session_id = fields.Many2one('pos.session', string='Session', related='pos_order_id.session_id') + session_id = fields.Many2one('pos.session', string='Session', related='pos_order_id.session_id', store=True) company_id = fields.Many2one('res.company', string='Company', related='pos_order_id.company_id') card_type = fields.Char('Type of card used') transaction_id = fields.Char('Payment Transaction ID') |
