Skip to content

Commit

Permalink
Anomaly RM#88524:Version: When creating a version from a project, the… (
Browse files Browse the repository at this point in the history
#13926)

* Anomaly RM#88524:Version: When creating a version from a project, the domain should ignore the current project to avoid conflicts on save

(cherry picked from commit 67d19e2)
  • Loading branch information
vva-axelor authored and ale-axelor committed Feb 6, 2025
1 parent 336ab0b commit 424b87b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
</form>

<action-attrs name="action-version-attrs-project-domain">
<attribute name="domain" for="project"
expr="eval: &quot; ${__user__.id} MEMBER OF self.membersUserSet &quot;"/>
<attribute name="domain" for="projectSet"
expr="eval: &quot; ${__user__.id} MEMBER OF self.membersUserSet &quot;" if="!__parent__"/>
<attribute name="domain" for="projectSet"
expr="eval: &quot; ${__user__.id} MEMBER OF self.membersUserSet AND self.id != ${__parent__.id} &quot;"
if="__parent__ &amp;&amp; __parent__._model == 'com.axelor.apps.project.db.Project'"/>
</action-attrs>

</object-views>
3 changes: 3 additions & 0 deletions changelogs/unreleased/88524.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Project version: fixed project filter to avoid conflicts on save."
module: axelor-business-support

0 comments on commit 424b87b

Please sign in to comment.