line: add help, fix form
This commit is contained in:
parent
0c60a8c313
commit
6177b5d691
3 changed files with 16 additions and 0 deletions
3
line.py
3
line.py
|
@ -112,18 +112,21 @@ class Line(SecondUomMixin, metaclass=PoolMeta):
|
|||
'on_change_with_diff_percent')
|
||||
|
||||
trade_fee = fields.Function(fields.Numeric(string='Fee',
|
||||
help='Trading fee for the current booking line.',
|
||||
readonly=True, digits=(16, Eval('currency_digits', 2)),
|
||||
states = {
|
||||
'invisible': Eval('feature', '') != 'asset',
|
||||
}, depends=['currency_digits', 'feature']),
|
||||
'get_yield_data', searcher='search_trade_fee')
|
||||
asset_dividend = fields.Function(fields.Numeric(string='Dividend',
|
||||
help='Dividend received at the current booking line.',
|
||||
readonly=True, digits=(16, Eval('currency_digits', 2)),
|
||||
states = {
|
||||
'invisible': Eval('feature', '') != 'asset',
|
||||
}, depends=['currency_digits', 'feature']),
|
||||
'get_yield_data', searcher='search_asset_dividend')
|
||||
asset_gainloss = fields.Function(fields.Numeric(string='Profit/Loss',
|
||||
help='Profit or loss on sale on the current booking line.',
|
||||
readonly=True, digits=(16, Eval('currency_digits', 2)),
|
||||
states = {
|
||||
'invisible': Eval('feature', '') != 'asset',
|
||||
|
|
12
locale/de.po
12
locale/de.po
|
@ -266,14 +266,26 @@ msgctxt "field:cashbook.line,trade_fee:"
|
|||
msgid "Fee"
|
||||
msgstr "Gebühr"
|
||||
|
||||
msgctxt "help:cashbook.line,trade_fee:"
|
||||
msgid "Trading fee for the current booking line."
|
||||
msgstr "Handelsgebühr für die aktuelle Buchungszeile."
|
||||
|
||||
msgctxt "field:cashbook.line,asset_dividend:"
|
||||
msgid "Dividend"
|
||||
msgstr "Dividende"
|
||||
|
||||
msgctxt "help:cashbook.line,asset_dividend:"
|
||||
msgid "Dividend received at the current booking line."
|
||||
msgstr "Erhaltene Dividende an der aktuellen Buchungszeile."
|
||||
|
||||
msgctxt "field:cashbook.line,asset_gainloss:"
|
||||
msgid "Profit/Loss"
|
||||
msgstr "Gewinn/Verlust"
|
||||
|
||||
msgctxt "help:cashbook.line,asset_gainloss:"
|
||||
msgid "Profit or loss on sale on the current booking line."
|
||||
msgstr "Gewinn oder Verlust bei Verkauf auf der aktuellen Buchungszeile."
|
||||
|
||||
|
||||
##################
|
||||
# cashbook.recon #
|
||||
|
|
|
@ -34,6 +34,7 @@ full copyright notices and license terms. -->
|
|||
<field name="diff_percent" xexpand="0"/>
|
||||
<label name="diff_percent" xalign="0.0" string="%" xexpand="1"/>
|
||||
</group>
|
||||
<newline/>
|
||||
|
||||
<label name="trade_fee"/>
|
||||
<field name="trade_fee"/>
|
||||
|
|
Loading…
Reference in a new issue