Fix read of wrong dictionnary

This commit is contained in:
Akim Juillerat
2018-05-18 18:02:16 +02:00
committed by Guewen Baconnier
parent 6e50fc1826
commit 40d630ca86

View File

@@ -16,5 +16,5 @@ class ProcurementRule(models.Model):
vals['orderpoint_ids'] = [(4, values['orderpoint_id'].id)]
elif 'orderpoint_ids' in values:
vals['orderpoint_ids'] = [(4, o.id)
for o in vals['orderpoint_ids']]
for o in values['orderpoint_ids']]
return vals