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