[FIX] account: usability small improvement in invoice form view
This commit is contained in:
committed by
Quentin De Paoli
parent
b92bb1b156
commit
1243937e10
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user