diff --git a/opportunity.py b/opportunity.py index 959c8b5479..c9ed965c53 100644 --- a/opportunity.py +++ b/opportunity.py @@ -352,6 +352,12 @@ class SaleOpportunityLine(ModelSQL, ModelView): '_parent_sale.party': line.opportunity.party.id, '_parent_sale.currency': line.opportunity.company.currency.id, })) + for field_name, field in sale_line_obj._columns.iteritems(): + if field._type not in ('one2many', 'many2many'): + continue + if field_name not in res: + continue + res[field_name] = [('add', res[field_name])] return res SaleOpportunityLine()