Merge pull request #198 from rlizana/8.0_account_banking_payment_transfer_add_states

[FIX] account_banking_payment_transfer: Use selection_add for state overwrite
This commit is contained in:
Pedro M. Baeza
2015-07-12 11:47:53 +02:00

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)],