Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions auditlog/models/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,7 @@ def subscribe(self):
act_window_model = self.env["ir.actions.act_window"]
for rule in self:
# Create a shortcut to view logs
domain = "[('model_id', '=', %s), ('res_id', '=', id)]" % (
rule.model_id.id
)
domain = "[('model_id', '=', %s), ('res_id', '=', id)]" % (rule.model_id.id)
vals = {
"name": _("View logs"),
"res_model": "auditlog.log",
Expand Down
6 changes: 3 additions & 3 deletions base_exception/models/exception_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def _to_cache_entry(self):
"sequence": self.sequence,
"model": self.model,
"exception_type": self.exception_type,
"domain": self._get_domain()
if self.exception_type == "by_domain"
else None,
"domain": (
self._get_domain() if self.exception_type == "by_domain" else None
),
"method": self.method,
"code": self.code,
"is_blocking": self.is_blocking,
Expand Down
3 changes: 1 addition & 2 deletions database_cleanup/models/purge_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def find(self):
"id",
"not in",
default_properties.filtered(
lambda x,
prop_fields_id=prop.fields_id: x.company_id
lambda x, prop_fields_id=prop.fields_id: x.company_id
and x.fields_id == prop_fields_id
).ids,
)
Expand Down
1 change: 0 additions & 1 deletion views_migration_17/patch_xml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ def convert_inherit_attributes_inplace(spec, target_node, view_type):
all_attrs.sort()

i = len(all_attrs)
next_xml = ""

for attr in all_attrs:
value = items.get(attr)
Expand Down