Fix: state bool
This commit is contained in:
parent
347c70d4be
commit
ab773b8645
15
statement.py
15
statement.py
@ -373,13 +373,14 @@ class StatementLine(ModelView):
|
|||||||
"Real Cash", currency='currency', digits='currency')
|
"Real Cash", currency='currency', digits='currency')
|
||||||
mismatch = Monetary(
|
mismatch = Monetary(
|
||||||
"Mismatch", currency='currency', digits='currency', readonly=True)
|
"Mismatch", currency='currency', digits='currency', readonly=True)
|
||||||
account = fields.Many2One('account.account', "Account",
|
account = fields.Many2One(
|
||||||
domain=[
|
'account.account', "Account",
|
||||||
('company', '=', Eval('company', 0)),
|
domain=[
|
||||||
('type', '!=', None),
|
('company', '=', Eval('company', 0)),
|
||||||
('closed', '!=', True),
|
('type', '!=', None),
|
||||||
],
|
('closed', '!=', True),
|
||||||
states={'required': If(Eval('transfer', True), True)})
|
],
|
||||||
|
states={'required': Eval('transfer', True)})
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_currency():
|
def default_currency():
|
||||||
|
Loading…
Reference in New Issue
Block a user