2023-02-11 23:09:56 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# This file is part of the cashbook-module from m-ds.de for Tryton.
|
|
|
|
# The COPYRIGHT file at the top level of this repository contains the
|
|
|
|
# full copyright notices and license terms.
|
|
|
|
|
|
|
|
|
|
|
|
from trytond.model import ModelSingleton, ModelView, ModelSQL, fields
|
|
|
|
|
|
|
|
|
|
|
|
class AssetSetting(ModelSingleton, ModelSQL, ModelView):
|
|
|
|
'Asset setting'
|
|
|
|
__name__ = 'cashbook.assetconf'
|
|
|
|
|
2023-06-08 12:00:59 +00:00
|
|
|
fee_category = fields.Many2One(
|
|
|
|
string='Fee category',
|
2023-02-11 23:09:56 +00:00
|
|
|
model_name='cashbook.category', ondelete='RESTRICT',
|
|
|
|
help='Category for fees when trading assets.')
|
2023-06-08 12:00:59 +00:00
|
|
|
dividend_category = fields.Many2One(
|
|
|
|
string='Dividend category',
|
2023-02-11 23:09:56 +00:00
|
|
|
model_name='cashbook.category', ondelete='RESTRICT',
|
|
|
|
help='Category for dividend paid out.')
|
2023-06-08 12:00:59 +00:00
|
|
|
gainloss_book = fields.Many2One(
|
|
|
|
string='Profit/Loss Cashbook',
|
2023-02-11 23:09:56 +00:00
|
|
|
model_name='cashbook.book', ondelete='RESTRICT',
|
|
|
|
help='Profit and loss on sale of assets are recorded in the cash book.')
|
|
|
|
|
|
|
|
# end AssetSetting
|