mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_backing_payment_transfer: Use selection_add for overwrite state in payment.order
This commit is contained in:
@@ -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)],
|
||||
|
||||
Reference in New Issue
Block a user