mirror of
https://github.com/NaN-tic/trytond-analytic_line_state.git
synced 2023-12-14 03:33:02 +01:00
make jorunal not requirend on draft state
This commit is contained in:
parent
1a2adc2c0e
commit
fee88fc323
|
@ -205,6 +205,11 @@ class AnalyticLine:
|
|||
cls.currency.setter = 'set_currency'
|
||||
cls.currency_digits.on_change_with = ['internal_currency']
|
||||
|
||||
cls.journal.required = False
|
||||
cls.journal.states = {
|
||||
'required': Eval('state') != 'draft',
|
||||
'readonly': Eval('state') != 'draft',
|
||||
}
|
||||
cls.move_line.required = False
|
||||
cls.move_line.states = {
|
||||
'required': Eval('state') != 'draft',
|
||||
|
|
Loading…
Reference in a new issue