[FIX] web_field_required_invisible_manager: fix depend. domain compute

pull/2659/head
Ilyas 2023-11-06 12:38:15 +01:00
parent c9c5fa7cc1
commit c3f14b352d
1 changed files with 1 additions and 4 deletions

View File

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