@@ -8,7 +8,6 @@ class PropertyDepositList(models.Model):
|
||||
property_id = fields.Many2one('yuthon.property', string='物业')
|
||||
admin_id = fields.Many2one(related='property_id.admin_id', string="片区管理员", store=True)
|
||||
lessee_id = fields.Many2one('property.tenant.information', string='承租方')
|
||||
company_id = fields.Many2one(related='property_id.company_id', string="公司")
|
||||
|
||||
is_push = fields.Boolean(string='是否推送')
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ class PropertyRentList(models.Model):
|
||||
property_id = fields.Many2one('yuthon.property', string='物业')
|
||||
lessee_id = fields.Many2one('property.tenant.information', string='承租方', store=True)
|
||||
admin_id = fields.Many2one(related='property_id.admin_id', string="片区管理员", store=True)
|
||||
company_id = fields.Many2one(related='property_id.company_id', string="公司", store=True)
|
||||
rent_month = fields.Float(string='当月租金')
|
||||
tax = fields.Float(string='税率')
|
||||
title_certificate = fields.Char(sting="产权证号")
|
||||
|
||||
@@ -720,6 +720,7 @@ class PropertyRentList(models.Model):
|
||||
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
|
||||
tenure_type = fields.Selection(related='contract_id.tenure_type', string="权属类型", store=True)
|
||||
property_address = fields.Text(string="物业信息", compute='get_property_address')
|
||||
company_id = fields.Many2one(related='contract_id.lessor_id', string="出租方公司", store=True)
|
||||
|
||||
@api.depends('contract_id')
|
||||
def get_property_address(self):
|
||||
@@ -838,6 +839,7 @@ class PropertyDepositList(models.Model):
|
||||
posit_type = fields.Selection([('deposit', '押金'), ('performance_bonds', '经营履约保证金'),
|
||||
('utility_bills', '水电费'), ('decorate', '装修')], string="保证金类型")
|
||||
original_amount = fields.Float(string="金额")
|
||||
company_id = fields.Many2one(related='contract_id.lessor_id', string="出租方公司", store=True)
|
||||
|
||||
def push_deposit(self):
|
||||
for rec in self:
|
||||
@@ -874,6 +876,8 @@ class PropertyManagementList(models.Model):
|
||||
_inherit = 'property.management.list'
|
||||
|
||||
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
|
||||
company_id = fields.Many2one(related='contract_id.lessor_id', string="出租方公司", store=True)
|
||||
tenure_type = fields.Selection(related='contract_id.tenure_type', string="权属类型", store=True)
|
||||
|
||||
def push_management(self):
|
||||
for rec in self:
|
||||
@@ -911,6 +915,8 @@ class PropertyTariffList(models.Model):
|
||||
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
|
||||
admin_id = fields.Many2one(related='contract_id.admin_id', string="片区管理员", store=True)
|
||||
property_name = fields.Char(related='contract_id.property_name', string="物业信息", store=True)
|
||||
company_id = fields.Many2one(related='contract_id.lessor_id', string="出租方公司", store=True)
|
||||
tenure_type = fields.Selection(related='contract_id.tenure_type', string="权属类型", store=True)
|
||||
|
||||
def push_tariff(self):
|
||||
for rec in self:
|
||||
@@ -949,6 +955,8 @@ class PropertyWaterList(models.Model):
|
||||
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
|
||||
admin_id = fields.Many2one(related='contract_id.admin_id', string="片区管理员", store=True)
|
||||
property_name = fields.Char(related='contract_id.property_name', string="物业信息")
|
||||
company_id = fields.Many2one(related='contract_id.lessor_id', string="出租方公司", store=True)
|
||||
tenure_type = fields.Selection(related='contract_id.tenure_type', string="权属类型", store=True)
|
||||
|
||||
def push_water(self):
|
||||
for rec in self:
|
||||
|
||||
@@ -134,7 +134,9 @@
|
||||
<field name="property_id"/>
|
||||
<field name="lessee_id"/>
|
||||
<field name="contract_id"/>
|
||||
<field name="tenure_type"/>
|
||||
<group expand="0" string="group_by">
|
||||
<filter name="group_tenure_type" string="权属类型" context="{'group_by':'tenure_type'}"/>
|
||||
<filter name="group_property_id" string="物业" context="{'group_by':'property_id'}"/>
|
||||
<filter name="group_lessee_id" string="承租方" context="{'group_by':'lessee_id'}"/>
|
||||
<filter name="group_admin_id" string="管理员" context="{'group_by':'admin_id'}"/>
|
||||
@@ -160,7 +162,11 @@
|
||||
<field name="property_name"/>
|
||||
<field name="lessee_id"/>
|
||||
<field name="contract_id"/>
|
||||
<field name="tenure_type"/>
|
||||
<field name="company_id"/>
|
||||
<group expand="0" string="group_by">
|
||||
<filter name="group_company_id" string="公司" context="{'group_by':'company_id'}"/>
|
||||
<filter name="group_tenure_type" string="权属类型" context="{'group_by':'tenure_type'}"/>
|
||||
<filter name="group_admin_id" string="管理员" context="{'group_by':'admin_id'}"/>
|
||||
<filter name="group_due_date" string="应收日期" context="{'group_by':'due_date:month'}"/>
|
||||
<filter name="group_property_name" string="物业" context="{'group_by':'property_name'}"/>
|
||||
@@ -204,7 +210,11 @@
|
||||
<field name="property_name"/>
|
||||
<field name="lessee_id"/>
|
||||
<field name="contract_id"/>
|
||||
<field name="company_id"/>
|
||||
<field name="tenure_type"/>
|
||||
<group expand="0" string="group_by">
|
||||
<filter name="group_company_id" string="公司" context="{'group_by':'company_id'}"/>
|
||||
<filter name="group_tenure_type" string="权属类型" context="{'group_by':'tenure_type'}"/>
|
||||
<filter name="group_admin_id" string="管理员" context="{'group_by':'admin_id'}"/>
|
||||
<filter name="group_due_date" string="应收日期" context="{'group_by':'due_date:month'}"/>
|
||||
<filter name="group_property_name" string="物业" context="{'group_by':'property_name'}"/>
|
||||
@@ -261,10 +271,14 @@
|
||||
<field name="model">property.management.list</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="property_id"/>
|
||||
<field name="lessee_id"/>
|
||||
<field name="contract_id"/>
|
||||
<field name="property_id"/>
|
||||
<field name="lessee_id"/>
|
||||
<field name="contract_id"/>
|
||||
<field name="company_id"/>
|
||||
<field name="tenure_type"/>
|
||||
<group expand="0" string="group_by">
|
||||
<filter name="group_company_id" string="公司" context="{'group_by':'company_id'}"/>
|
||||
<filter name="group_tenure_type" string="权属类型" context="{'group_by':'tenure_type'}"/>
|
||||
<filter name="group_admin_id" string="管理员" context="{'group_by':'admin_id'}"/>
|
||||
<filter name="group_due_date" string="应收日期" context="{'group_by':'due_date:month'}"/>
|
||||
<filter name="group_property_id" string="物业" context="{'group_by':'property_id'}"/>
|
||||
|
||||
Reference in New Issue
Block a user