Files
gzth/yuthon_property/models/yuthon_property_setting.py
T
2026-02-14 17:06:07 +08:00

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="名称")