diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index d0c767ba1be..6a0a29cb2fe 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -195,7 +195,7 @@ class account_invoice(osv.osv): 'number': fields.related('move_id','name', type='char', readonly=True, size=64, relation='account.move', store=True, string='Number'), 'internal_number': fields.char('Invoice Number', size=32, readonly=True, help="Unique number of the invoice, computed automatically when the invoice is created."), 'reference': fields.char('Invoice Reference', size=64, help="The partner reference of this invoice."), - 'reference_type': fields.selection(_get_reference_type, 'Reference Type', + 'reference_type': fields.selection(_get_reference_type, 'Payment Reference', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'comment': fields.text('Additional Information'), diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 86f6beaf3a6..211a40f030f 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -50,7 +50,7 @@ form
- + - +