From 1243937e1036943d4c90b062cd88d8a7e7dbe047 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Wed, 10 Jun 2015 15:49:13 +0200 Subject: [PATCH] [FIX] account: usability small improvement in invoice form view --- addons/account/account_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index a6e6ad03257..8b769016a90 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -197,11 +197,11 @@ class AccountInvoice(models.Model): default=False, copy=False, help="Technical field holding the number given to the invoice, automatically set when the invoice is validated then stored to set the same number again if the invoice is cancelled, set to draft and re-validated.") reference = fields.Char(string='Supplier Reference', - help="The partner reference of this invoice.") + help="The partner reference of this invoice.", readonly=True, states={'draft': [('readonly', False)]}) reference_type = fields.Selection('_get_reference_type', string='Payment Reference', required=True, readonly=True, states={'draft': [('readonly', False)]}, default='none') - comment = fields.Text('Additional Information') + comment = fields.Text('Additional Information', readonly=True, states={'draft': [('readonly', False)]}) state = fields.Selection([ ('draft','Draft'),