[FIX] account_backing_payment_transfer: Use selection_add for overwrite state in payment.order

This commit is contained in:
Roberto Lizana
2015-07-12 09:41:56 +02:00
parent af400e6663
commit 97c1280c80

View File

@@ -61,13 +61,9 @@ class PaymentOrder(models.Model):
'rejected': [('readonly', True)],
'done': [('readonly', True)],
})
state = fields.Selection([
('draft', 'Draft'),
('open', 'Confirmed'),
('cancel', 'Cancelled'),
state = fields.Selection(selection_add=[
('sent', 'Sent'),
('rejected', 'Rejected'),
('done', 'Done'),
], string='State')
line_ids = fields.One2many(states={
'open': [('readonly', True)],