line: negativer saldo färbt zeile blass-rot
This commit is contained in:
parent
5794a4ccb7
commit
94d51b4ee2
1 changed files with 7 additions and 0 deletions
7
line.py
7
line.py
|
@ -216,6 +216,13 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView):
|
|||
},
|
||||
})
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return super().view_attributes() + [
|
||||
('/tree', 'visual',
|
||||
If(Eval('balance', 0) < 0, 'warning', '')),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def migrate_amount_2nd_currency(cls):
|
||||
""" add amount-2nd-currency
|
||||
|
|
Loading…
Reference in a new issue