Skip to content

Commit

Permalink
[FIX] More PEP8 nitpicking
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Sausin committed Oct 30, 2015
1 parent 1087e12 commit 348d420
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions stock_available_sale/tests/test_quoted_qty.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def setUp(self):
('state', '=', 'draft')])
orders = lines.mapped(lambda l: l.order_id)
orders.action_cancel()

#  Record the initial quantity available for sale
self.initial_usable_qty = self.product.immediately_usable_qty

# Get the warehouses
self.wh_main = self.browse_ref('stock.warehouse0')
self.wh_ch = self.browse_ref('stock.stock_warehouse_shop0')
Expand Down Expand Up @@ -187,8 +187,7 @@ def assertQuotedQty(record, qty, msg):

# Confirm one of the Quotations
order1.signal_workflow('order_confirm')
# Check the qty available for sale
# Must still be 720 less than initially: the quotation turned into outgoing stock
# Check qty avl. for sale (unchanged: quotation turned into delivery)
self.assertImmediatelyUsableQty(
self.product, -720.0, "Check the quantity available for sale")
# Check by variant
Expand Down

0 comments on commit 348d420

Please sign in to comment.