@@ -70,9 +70,10 @@ class PropertyBillsPayable(models.Model):
|
||||
record.amount_upper = rmb_upper(record.actual_amount)
|
||||
remarks = fields.Text(string='正文')
|
||||
document_ids = fields.Many2many('ir.attachment', string="附件")
|
||||
attachment_count = fields.Char(string='附件张数')
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
work_end = fields.Boolean(string="结束")
|
||||
business_type = fields.Char(string='业务类型')
|
||||
business_type_id = fields.Many2one('property.business.type', string='业务类型')
|
||||
payment_account = fields.Selection([
|
||||
('basic', '基本户'),
|
||||
('loan', '贷款户'),
|
||||
@@ -84,13 +85,7 @@ class PropertyBillsPayable(models.Model):
|
||||
payee_id = fields.Many2one('property.tenant.information', string='收款单位/收款人')
|
||||
payee_bank = fields.Char(string='开户行')
|
||||
payee_account = fields.Char(string='银行账号')
|
||||
payment_type = fields.Selection([
|
||||
('deposit_refund', '退押'),
|
||||
('lease_refund', '退租'),
|
||||
('engineering', '工程款'),
|
||||
('agency_fee', '中介费'),
|
||||
('other', '其他')
|
||||
], string='付款类型')
|
||||
payment_type_id = fields.Many2one('property.payment.type', string='付款类型')
|
||||
|
||||
def _get_default_name_title(self):
|
||||
return self._description if self._description else self._name
|
||||
@@ -131,4 +126,22 @@ class PropertyBillsPayable(models.Model):
|
||||
|
||||
class PropertyBillsLine(models.Model):
|
||||
_name = 'property.bills.line'
|
||||
_description = '账单明细'
|
||||
_description = '账单明细'
|
||||
|
||||
|
||||
class PropertyBusinessType(models.Model):
|
||||
_name = 'property.business.type'
|
||||
_description = '业务类型'
|
||||
|
||||
name = fields.Char(string='业务类型名称', required=True)
|
||||
code = fields.Char(string='编码')
|
||||
active = fields.Boolean('Active', default=True)
|
||||
|
||||
|
||||
class PropertyPaymentType(models.Model):
|
||||
_name = 'property.payment.type'
|
||||
_description = '付款类型'
|
||||
|
||||
name = fields.Char(string='付款类型名称', required=True)
|
||||
code = fields.Char(string='编码')
|
||||
active = fields.Boolean('Active', default=True)
|
||||
@@ -140,4 +140,6 @@ access_property_fee_form,property_fee_form,model_property_fee_form,base.group_us
|
||||
access_property_fee_form_line,property_fee_form_line,model_property_fee_form_line,base.group_user,1,1,1,1
|
||||
|
||||
access_refund_wizard,refund_wizard,model_refund_wizard,base.group_user,1,1,1,1
|
||||
access_refund_wizard_line,refund_wizard_line,model_refund_wizard_line,base.group_user,1,1,1,1
|
||||
access_refund_wizard_line,refund_wizard_line,model_refund_wizard_line,base.group_user,1,1,1,1
|
||||
access_property_business_type,property_business_type,model_property_business_type,base.group_user,1,1,1,1
|
||||
access_property_payment_type,property_payment_type,model_property_payment_type,base.group_user,1,1,1,1
|
||||
|
@@ -23,59 +23,87 @@
|
||||
invisible="urgency_level != 'urgent'"/>
|
||||
<widget name="web_ribbon" title="特急" bg_color="text-bg-danger"
|
||||
invisible="urgency_level != 'emergency'"/>
|
||||
<group col="4">
|
||||
|
||||
<group col="3">
|
||||
<group>
|
||||
<field name="code" string="流水号" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="urgency_level" readonly="1"/>
|
||||
<field name="urgency_level" string="紧急度"/>
|
||||
</group>
|
||||
<group/>
|
||||
<group/>
|
||||
</group>
|
||||
<div class="col-12 text-center">
|
||||
<h1>
|
||||
<field name="name_title" readonly="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group string="审批事项">
|
||||
<group>
|
||||
<field name="is_back" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="due_date" string="单据日期"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="department_id" string="申请部门"/>
|
||||
<field name="users_id"/>
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="remarks" string="付款说明"/>
|
||||
<field name="document_ids" widget="preview_many2many"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="users_id" string="申请人"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="业务核心信息">
|
||||
|
||||
<separator string="业务核心信息"/>
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="business_type" string="业务类型"/>
|
||||
<field name="payment_type" string="付款类型"/>
|
||||
<field name="payment_type_id" string="付款类型"/>
|
||||
<field name="lease_contract_id" string="合同信息" options="{'no_create': True}"/>
|
||||
<field name="property_name" string="物业信息"/>
|
||||
<field name="payment_account" string="支付账户"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="business_type_id" string="业务类型"/>
|
||||
<field name="property_name" string="物业信息"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="收款方信息">
|
||||
|
||||
<separator string="收款方信息"/>
|
||||
<group col="1">
|
||||
<group>
|
||||
<field name="payee_id" string="收款单位/收款人"/>
|
||||
</group>
|
||||
</group>
|
||||
<group col="2">
|
||||
<group>
|
||||
<field name="payee_bank" string="开户行"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="payee_account" string="银行账号"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="详情">
|
||||
|
||||
<separator string="金额信息"/>
|
||||
<div class="oe_form_box">
|
||||
<group col="3">
|
||||
<group>
|
||||
<field name="amount_payable" string="应付金额"/>
|
||||
<field name="amount_upper" string="金额大写" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="deduction_amount" string="扣除金额"/>
|
||||
<field name="attachment_count" string="附件张数"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="actual_amount" string="实付金额"/>
|
||||
</group>
|
||||
</group>
|
||||
</div>
|
||||
|
||||
<group col="1">
|
||||
<group>
|
||||
<field name="lessee_id" string="承租方"/>
|
||||
<field name="amount_payable"/>
|
||||
<field name="deduction_amount"/>
|
||||
<field name="remake" invisible="not deduction_amount"/>
|
||||
<field name="actual_amount"/>
|
||||
<field name="amount_upper" string="金额大写" readonly="1"/>
|
||||
<field name="remarks" string="付款说明" nolabel="1"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<field name="document_ids" widget="preview_many2many" invisible="1"/>
|
||||
<field name="is_back" invisible="1"/>
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="lessee_id" invisible="1"/>
|
||||
<field name="remake" invisible="1"/>
|
||||
<field name="self_users_ids" invisible="1"/>
|
||||
<field name="name" invisible="1"/>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user