Browse Source

publish muk_web_client_refresh - 12.0

12.0
MuK IT GmbH 5 years ago
parent
commit
828631153f
  1. 2
      muk_web_client_refresh/__manifest__.py
  2. 6
      muk_web_client_refresh/models/base.py

2
muk_web_client_refresh/__manifest__.py

@ -23,7 +23,7 @@
{
"name": "MuK Web Refresh",
"summary": """Web Client Refresh""",
"version": "12.0.3.0.1",
"version": "12.0.3.0.2",
"category": "Extra Tools",
"license": "AGPL-3",
"website": "http://www.mukit.at",

6
muk_web_client_refresh/models/base.py

@ -52,8 +52,12 @@ class Base(models.AbstractModel):
"""
if self.exists() or ids:
record = next(iter(self)) if len(self) > 1 else self
if not ids and self._log_access:
create = record.exists() and record.create_date == record.write_date or False
self.env['bus.bus'].sendone('refresh', {
'create': create if ids else record.exists() and record.create_date == record.write_date or False,
'create': create,
'model': model or self._name,
'uid': user and user.id or False if ids else self.env.user.id,
'ids': ids or self.mapped('id')})
Loading…
Cancel
Save