3
0
Fork 0

Merge PR #2659 into 14.0

Signed-off-by ilyasProgrammer
14.0
OCA-git-bot 2023-11-23 10:35:04 +00:00
commit cc038b0f69
1 changed files with 1 additions and 4 deletions

View File

@ -117,10 +117,7 @@ class CustomFieldRestriction(models.Model):
deps = ""
if self.condition_domain:
deps = ",".join(
[
r[0] if r[0] not in ["id"] else ""
for r in safe_eval(self.condition_domain)
]
{r[0] for r in safe_eval(self.condition_domain)} - {"id", "&", "|"}
)
field_id = self.env["ir.model.fields"].create(
{