添加功能
This commit is contained in:
@@ -21,7 +21,9 @@ class PropertyBillsList(models.Model):
|
||||
remake = fields.Text(string="备注")
|
||||
|
||||
def update_lessor_id(self):
|
||||
for record in self:
|
||||
bills_ids = self.env["property.bills.list"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
for record in bills_ids:
|
||||
if record.contract_id:
|
||||
record.lessor_id = record.contract_id.lessor_id.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user