diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py
index bbced4b30..550d4bc8f 100644
--- a/yuthon_property_approval/models/inherit_yuthon_property.py
+++ b/yuthon_property_approval/models/inherit_yuthon_property.py
@@ -43,6 +43,7 @@ class PropertyMeterArchives(models.Model):
else:
record.contract_id = False
+
class MeterArchivesLine(models.Model):
_inherit = 'meter.archives.line'
@@ -51,7 +52,7 @@ class MeterArchivesLine(models.Model):
contract_name = fields.Char(string='合同名称', store=True, index=True, compute="_compute_name")
lessee_name = fields.Char(string='承租方名称', store=True, index=True, compute="_compute_name")
- @api.depends('archives_id', 'contract_id', 'lessee_id')
+ @api.depends('yuthon_property_ids', 'archives_id', 'contract_id', 'lessee_id')
def _compute_name(self):
for name in self:
if name.contract_id:
@@ -80,7 +81,7 @@ class MeterWaterLine(models.Model):
contract_name = fields.Char(string='合同名称', store=True, index=True, compute="_compute_name")
lessee_name = fields.Char(string='承租方名称', store=True, index=True, compute="_compute_name")
- @api.depends('water_id', 'contract_id', 'lessee_id')
+ @api.depends('yuthon_property_ids', 'water_id', 'contract_id', 'lessee_id')
def _compute_name(self):
for name in self:
if name.contract_id:
diff --git a/yuthon_property_approval/views/inherit_yuthon_property_views.xml b/yuthon_property_approval/views/inherit_yuthon_property_views.xml
index 2d02e60ec..41dbc7620 100644
--- a/yuthon_property_approval/views/inherit_yuthon_property_views.xml
+++ b/yuthon_property_approval/views/inherit_yuthon_property_views.xml
@@ -27,8 +27,8 @@
-
-
+
+
@@ -57,8 +57,8 @@
-
-
+
+