添加功能

This commit is contained in:
zhou
2025-06-01 19:52:04 +08:00
parent f50e9b590f
commit 90c3063d53
2 changed files with 2 additions and 2 deletions
@@ -65,7 +65,7 @@
<button type="object" class="btn btn-primary" name="put_property_management" string="批量增加物业信息"/>
<group string=" " invisible="is_line">
<field name="management_line2_ids" string=" ">
<tree editable="bottom">
<tree editable="bottom" create="False">
<field name="property_management_id" column_invisible="1"/>
<field name="property_id"/>
<field name="company_id" required="1"/>
@@ -46,7 +46,7 @@ class PropertyContractWizard(models.Model):
}))
# 一次性更新主记录
self.property_management_id.write({
self.property_management_id.sudo().write({
'management_line2_ids': property_list,
'management_line_ids':management_line_list
})