Browse Source

publish muk_web_client_refresh - 12.0

12.0
MuK IT GmbH 5 years ago
parent
commit
7d391afa4b
  1. 3
      muk_web_client_refresh/models/base.py
  2. 2
      muk_web_client_refresh/models/ir_actions.py

3
muk_web_client_refresh/models/base.py

@ -60,4 +60,5 @@ class Base(models.AbstractModel):
'create': create, 'create': create,
'model': model or self._name, 'model': model or self._name,
'uid': user and user.id or False if ids else self.env.user.id, 'uid': user and user.id or False if ids else self.env.user.id,
'ids': ids or self.mapped('id')})
'ids': ids or self.mapped('id')
})

2
muk_web_client_refresh/models/ir_actions.py

@ -50,5 +50,5 @@ class ServerActions(models.Model):
'uid': self.env.uid, 'uid': self.env.uid,
'model': action.model_name, 'model': action.model_name,
'ids': list(set().union(record and record.ids or [], records and records.ids or [])), 'ids': list(set().union(record and record.ids or [], records and records.ids or [])),
'create': record and record.exists() and record.create_date == record.write_date,
'create': record and record._log_access and record.exists() and record.create_date == record.write_date,
}) })
Loading…
Cancel
Save