添加功能
This commit is contained in:
@@ -136,9 +136,9 @@ class YuthonProperty(models.Model):
|
||||
|
||||
|
||||
def update_is_new(self):
|
||||
property_ids = self.env["yuthon.property"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
# property_ids = self.env['yuthon.property'].search([])
|
||||
# property_ids = self.env["yuthon.property"].browse(
|
||||
# self._context.get('active_ids', self._context.get('active_id')))
|
||||
property_ids = self.env['yuthon.property'].search([])
|
||||
for property_id in property_ids:
|
||||
property_id.compute_is_new()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user