18 lines
793 B
Python
18 lines
793 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields, api, exceptions, _
|
|
|
|
|
|
class PropertyPenaltyProportion(models.Model):
|
|
_name = 'property.penalty.proportion'
|
|
_description = '违约金比例审批'
|
|
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin']
|
|
_rec_name = 'name'
|
|
|
|
name = fields.Char(string='标题')
|
|
code = fields.Char(string="编号",
|
|
default=lambda self: self.env['ir.sequence'].next_by_code('property_penalty_proportion_code'))
|
|
calculate_time_point = fields.Char(string='违约金计算时间点')
|
|
percentage_damages = fields.Float(string='违约金比例')
|
|
date_payment = fields.Date(string='付款日期') |