mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] Invoice cost center readonly if not draft
This commit is contained in:
@@ -10,7 +10,9 @@ class AccountInvoice(models.Model):
|
||||
cost_center_id = fields.Many2one(
|
||||
'account.cost.center',
|
||||
string='Cost Center',
|
||||
help='Default Cost Center'
|
||||
readonly=True,
|
||||
states={'draft': [('readonly', False)]},
|
||||
help='Default Cost Center',
|
||||
)
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user