diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py index 70d3fbe54cc..2cbe99206d6 100644 --- a/addons/account_payment/account_payment.py +++ b/addons/account_payment/account_payment.py @@ -92,8 +92,8 @@ class payment_order(osv.osv): 'mode': fields.many2one('payment.mode', 'Payment mode', select=True, required=1, states={'done': [('readonly', True)]}, help='Select the Payment Mode to be applied.'), 'state': fields.selection([ ('draft', 'Draft'), - ('open', 'Confirmed'), ('cancel', 'Cancelled'), + ('open', 'Confirmed'), ('done', 'Done')], 'State', select=True, help='When an order is placed the state is \'Draft\'.\n Once the bank is confirmed the state is set to \'Confirmed\'.\n Then the order is paid the state is \'Done\'.'), 'line_ids': fields.one2many('payment.line', 'order_id', 'Payment lines', states={'done': [('readonly', True)]}), diff --git a/addons/account_payment/account_payment_view.xml b/addons/account_payment/account_payment_view.xml index 71856dcf703..751b4027941 100644 --- a/addons/account_payment/account_payment_view.xml +++ b/addons/account_payment/account_payment_view.xml @@ -100,8 +100,18 @@ payment.order form -
- + +
+
+ + @@ -162,13 +172,7 @@ - - -