Trade Finance - Initial Commit
This commit is contained in:
35
modules/trade_finance/operational.py
Normal file
35
modules/trade_finance/operational.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# This file is part of Tradon. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.model import ModelSQL, ModelView, fields
|
||||
|
||||
__all__ = ['BlockingReason', 'ChargeType']
|
||||
|
||||
|
||||
class BlockingReason(ModelSQL, ModelView):
|
||||
'Blocking Reason'
|
||||
__name__ = 'trade_finance.blocking_reason'
|
||||
_rec_name = 'name'
|
||||
|
||||
code = fields.Char('Code', required=True)
|
||||
name = fields.Char('Name', required=True)
|
||||
active = fields.Boolean('Active')
|
||||
|
||||
@staticmethod
|
||||
def default_active():
|
||||
return True
|
||||
|
||||
|
||||
class ChargeType(ModelSQL, ModelView):
|
||||
'Charge Type'
|
||||
__name__ = 'trade_finance.charge_type'
|
||||
_rec_name = 'name'
|
||||
|
||||
code = fields.Char('Code', required=True)
|
||||
name = fields.Char('Name', required=True)
|
||||
description = fields.Text('Description')
|
||||
active = fields.Boolean('Active')
|
||||
|
||||
@staticmethod
|
||||
def default_active():
|
||||
return True
|
||||
Reference in New Issue
Block a user