34 lines
939 B
Python
34 lines
939 B
Python
from odoo import models, fields, api
|
|
from odoo.exceptions import UserError, ValidationError
|
|
|
|
|
|
class YuthonPenaltySetting(models.Model):
|
|
_name = 'yuthon.penalty.setting'
|
|
_description = '违约金配置'
|
|
|
|
name = fields.Char(string="名称")
|
|
ratio = fields.Float(string="比例")
|
|
|
|
|
|
class YuthonTariffSetting(models.Model):
|
|
_name = 'yuthon.tariff.setting'
|
|
_description = '税率配置'
|
|
|
|
name = fields.Char(string="名称")
|
|
ratio = fields.Float(string="比例", digits=(16, 4))
|
|
|
|
|
|
class PropertyAccountSetting(models.Model):
|
|
_name = 'property.account.setting'
|
|
_description = '账户配置'
|
|
|
|
name = fields.Char(string="账户名称")
|
|
bank_deposit = fields.Char(string="开户行")
|
|
bank_cards = fields.Char(string="银行卡号")
|
|
|
|
class PropertyProjectSetting(models.Model):
|
|
_name = 'property.project.setting'
|
|
_description = '费用项目配置'
|
|
|
|
name = fields.Char(string="名称")
|