添加功能

This commit is contained in:
李鹏宇
2025-09-28 15:44:17 +08:00
parent dded95fc91
commit 24714801df
2 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -93,14 +93,12 @@ class YuthonProperty(models.Model):
annual_increase_percentage = fields.Float(string='递增百分比', igits=(6, 2))
annual_increase_amount = fields.Float(string='递增金额', igits=(6, 2))
rent_unit = fields.Float(string='租金单价', igits=(6, 2))
def update_mange(self):
property_ids = self.env['yuthon.property'].search([('name', 'ilike', '天河商贸大厦')])
for property_id in property_ids:
property_id.is_message_fee = True
@api.onchange('reference_ids')
def _onchange_reference_ids(self):
for record in self:
@@ -92,7 +92,7 @@
</group>
</group>
<notebook>
<page string="物业列表" invisible="state in ['协办', '分管领导', '总经理', '二部协办']">
<page string="物业列表" invisible="state not in ['分管领导', '总经理']">
<button name="choose_property_button" string="添加物业" type="object"
class="btn-primary"/>
<field name="lease_ids" string=" ">
@@ -249,7 +249,7 @@
<field name="ele_price"/>
</group>
<notebook>
<page string="租金明细" invisible="state in ['协办', '分管领导', '总经理', '二部协办']">
<page string="租金明细" invisible="state not in ['分管领导', '总经理']">
<field name="breakdown_ids" string=" ">
<tree editable="bottom">
<field name="breakdown_id" column_invisible="1"/>
@@ -262,7 +262,7 @@
</tree>
</field>
</page>
<page string="其他费用" invisible="state in ['协办', '分管领导', '总经理', '二部协办']">
<page string="其他费用" invisible="state not in ['分管领导', '总经理']">
<field name="other_ids" string=" ">
<tree editable="bottom">
<field name="other_id" column_invisible="1"/>
@@ -298,7 +298,7 @@
</tree>
</field>
</page>
<page string="银行流水" invisible="state in ['协办', '分管领导', '总经理', '二部协办']">
<page string="银行流水" invisible="state not in ['分管领导', '总经理']">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom">
<field name="start_time"/>
@@ -330,7 +330,7 @@
</group>
</group>
<notebook>
<page string="附件" invisible="state in ['协办', '分管领导', '总经理', '二部协办']">
<page string="附件" invisible="state not in ['分管领导', '总经理']">
<group col="2">
<group>
<field name="asset_valuation_ids" widget="preview_many2many"/>