Skip to content

Commit

Permalink
[ADD] improve comment and propose removal
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Aug 3, 2023
1 parent 9902d88 commit bca5176
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eater/models/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ def write(self, values):
)
% partner.parent_eater_id.name
)
# replace many2many command when writing on child_eater_ids to just
# remove the link
# fixme : is this still necessary ? In a many2many widget, removing an item
# is a "3" (unlink) command. In which case would this be a delete command ?
# replace many2many command when writing on child_eater_ids to unlink
# rather than delete
if "child_eater_ids" in values:
for command in values["child_eater_ids"]:
if command[0] == 2:
Expand Down

0 comments on commit bca5176

Please sign in to comment.