Instead of remove boms lines, delete the lines.

Task #159390
This commit is contained in:
Juanjo Garcia 2023-05-30 16:09:14 +02:00
parent 3f337feec6
commit 91f66183b6
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class Plan(DeactivableMixin, ModelSQL, ModelView):
@fields.depends('bom', 'boms', 'product')
def on_change_with_boms(self):
boms = {
'remove': [x.id for x in self.boms],
'delete': [x.id for x in self.boms],
'add': [],
}
if not self.bom: