Merge pull request #314 from adrienpeiffer/patch-1

[FIX] account_payment_order: Use 'index' instead of 'select'
This commit is contained in:
Stéphane Bidoul (ACSONE)
2016-11-21 11:05:28 +01:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ class BankPaymentLine(models.Model):
readonly=True)
order_id = fields.Many2one(
'account.payment.order', string='Order', ondelete='cascade',
select=True)
index=True)
payment_type = fields.Selection(
related='order_id.payment_type', string="Payment Type",
readonly=True, store=True)