Browse Source

[FIX] por_order_to_sale_order: PEP8

pull/142/head
Pedro M. Baeza 7 years ago
parent
commit
9e741a4cd2
  1. 12
      pos_order_to_sale_order/models/sale_order.py

12
pos_order_to_sale_order/models/sale_order.py

@ -39,15 +39,15 @@ class SaleOrder(models.Model):
qty=line_data['qty'],
partner_id=sale_order_data['partner_id'])['value']
res.update({
'product_id': line_data['product_id'],
'product_uom_qty': line_data['qty'],
'discount': line_data['discount'],
'tax_id': [(6, False, res['tax_id'])],
'product_id': line_data['product_id'],
'product_uom_qty': line_data['qty'],
'discount': line_data['discount'],
'tax_id': [(6, False, res['tax_id'])],
})
if self.env.context.get('is_pos_pricelist'):
res.update({
'price_unit': line_data['price_unit'],
'tax_id': line_data['tax_ids'],
'price_unit': line_data['price_unit'],
'tax_id': line_data['tax_ids'],
})
return res

Loading…
Cancel
Save