Skip to content

Commit 5dbd6ee

Browse files
committed
Fixup
1 parent 5c2b9e7 commit 5dbd6ee

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • partner_stage_only_confirmed/models

partner_stage_only_confirmed/models/base.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ def get_view(self, view_id=None, view_type="form", **options):
2828
domain = node.get("domain")
2929
if not domain:
3030
domain = "[('state', '=', 'confirmed')]"
31-
elif isinstance(domain, str):
31+
else:
32+
# domain is always a string due to XML parsing
3233
if domain in ("", "[]"):
3334
domain = "[('state', '=', 'confirmed')]"
3435
else:
3536
domain = domain[:-1]
3637
domain += ", ('state', '=', 'confirmed')]"
37-
else:
38-
domain = list(domain)
39-
domain.append(("state", "=", "confirmed"))
40-
domain = str(domain)
4138
node.set("domain", domain)
4239
res["arch"] = etree.tostring(doc)
4340
return res

0 commit comments

Comments
 (0)