Merge pull request !1365 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-01-16 06:43:42 +00:00
committed by Gitee
3 changed files with 52 additions and 16 deletions
+24 -1
View File
@@ -65,7 +65,6 @@ class YuthonProperty(models.Model):
equity_area = fields.Float(string="产权面积", group_operator=None, digits=(16, 4))
decoration_type = fields.Selection([('blank', '毛坯'), ('hardcover', '精装'), ('brands', '简装'), ('rsz', '豪装')],
string="装修类型")
bank_statements_ids = fields.One2many('property.bank.statements', 'property_id', string="银行流水")
water_meter_ids = fields.One2many('yuthon.property.water', 'yuthon_property_id', string='水表列表')
energy_meter_ids = fields.One2many('yuthon.property.energy', 'yuthon_property_id', string='电表列表')
title_information_ids = fields.One2many('title.information.line', 'yuthon_property_id', string='关联产权信息明细行')
@@ -73,6 +72,9 @@ class YuthonProperty(models.Model):
string='关联管理信息明细行')
disassembly_information_ids = fields.One2many('disassembly.information.line', 'yuthon_property_id',
string='关联拆分信息明细行')
assessment_ids = fields.One2many('yuthon.property.assessment', 'yuthon_property_id', string='关联评估明细行')
repair_ids = fields.One2many('yuthon.property.repair', 'yuthon_property_id', string='关联维修明细行')
produce_ids = fields.One2many('yuthon.property.produce', 'yuthon_property_id', string='关联安全生产明细行')
property_merge_approval_id = fields.Many2one('yuthon.property', string='关联物业信息')
@api.onchange('title_information_ids')
@@ -359,4 +361,25 @@ class DisassemblyInformationLine(models.Model):
end_date = fields.Date(string="失效日期")
class YuthonPropertyAssessment(models.Model):
_name = 'yuthon.property.assessment'
_description = '物业评估'
yuthon_property_id = fields.Many2one('yuthon.property', string="关联物业信息")
name = fields.Char(string="评估名称")
class YuthonPropertyRepair(models.Model):
_name = 'yuthon.property.repair'
_description = '维修'
yuthon_property_id = fields.Many2one('yuthon.property', string="关联物业信息")
name = fields.Char(string="维修名称")
class YuthonPropertyProduce(models.Model):
_name = 'yuthon.property.produce'
_description = '安全生产'
yuthon_property_id = fields.Many2one('yuthon.property', string="关联物业信息")
name = fields.Char(string="名称")
+4 -1
View File
@@ -65,4 +65,7 @@ access_property_statements_wizard,property_statements_wizard,model_property_stat
access_property_bank_line,property_bank_line,model_property_bank_line,base.group_user,1,1,1,1
access_property_electric_reading,property_electric_reading,model_property_electric_reading,base.group_user,1,1,1,1
access_property_water_reading,property_water_reading,model_property_water_reading,base.group_user,1,1,1,1
access_property_deposit_list,property_deposit_list,model_property_deposit_list,base.group_user,1,1,1,1
access_property_deposit_list,property_deposit_list,model_property_deposit_list,base.group_user,1,1,1,1
access_yuthon_property_assessment,yuthon_property_assessment,model_yuthon_property_assessment,base.group_user,1,1,1,1
access_yuthon_property_repair,yuthon_property_repair,model_yuthon_property_repair,base.group_user,1,1,1,1
access_yuthon_property_produce,yuthon_property_produce,model_yuthon_property_produce,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
65 access_property_bank_line property_bank_line model_property_bank_line base.group_user 1 1 1 1
66 access_property_electric_reading property_electric_reading model_property_electric_reading base.group_user 1 1 1 1
67 access_property_water_reading property_water_reading model_property_water_reading base.group_user 1 1 1 1
68 access_property_deposit_list property_deposit_list model_property_deposit_list base.group_user 1 1 1 1
69 access_yuthon_property_assessment yuthon_property_assessment model_yuthon_property_assessment base.group_user 1 1 1 1
70 access_yuthon_property_repair yuthon_property_repair model_yuthon_property_repair base.group_user 1 1 1 1
71 access_yuthon_property_produce yuthon_property_produce model_yuthon_property_produce base.group_user 1 1 1 1
+24 -14
View File
@@ -146,20 +146,6 @@
</tree>
</field>
</page>
<page string="银行流水">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom">
<field name="property_id" column_invisible="1"/>
<field name="name"/>
<field name="company_id"/>
<field name="start_time"/>
<field name="withdraw"/>
<field name="deposit"/>
<field name="balance"/>
<field name="bank_id"/>
</tree>
</field>
</page>
<page string="招商信息">
<group>
<group>
@@ -183,6 +169,30 @@
</group>
</group>
</page>
<page string="评估">
<field name="assessment_ids">
<tree editable="bottom">
<field name="yuthon_property_id" column_invisible="1"/>
<field name="name"/>
</tree>
</field>
</page>
<page string="维修">
<field name="repair_ids">
<tree editable="bottom">
<field name="yuthon_property_id" column_invisible="1"/>
<field name="name"/>
</tree>
</field>
</page>
<page string="生产">
<field name="produce_ids">
<tree editable="bottom">
<field name="yuthon_property_id" column_invisible="1"/>
<field name="name"/>
</tree>
</field>
</page>
<page string="拆分信息" invisible="not is_done_split">
<field name="disassembly_information_ids">
<tree editable="bottom">