添加功能
This commit is contained in:
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user