Skip to content

Commit

Permalink
[FIX] purchase_order_import: missing price_unit on line
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex authored and Alexis de Lattre committed Dec 13, 2019
1 parent 8172e87 commit c73d4f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion purchase_order_import/wizard/purchase_order_import.py
Expand Up @@ -214,7 +214,11 @@ def update_order_lines(self, parsed_quote, order):
@api.model
def _prepare_create_order_line(self, product, uom, import_line, order):
polo = self.env['purchase.order.line']
vals = {'product_id': product.id, 'order_id': order}
vals = {
'product_id': product.id,
'order_id': order,
'price_unit': import_line['price_unit'],
}
vals.update(polo.play_onchanges(vals, ['product_id']))
vals.pop('order_id')
return vals
Expand Down

0 comments on commit c73d4f8

Please sign in to comment.