[FIX] point_of_sale: make tests consistent wrt taxes (take 2)

Rev 7b494187e9 forgot to correct some
tests.
This commit is contained in:
Christophe Simonis
2017-06-22 12:18:53 +02:00
parent 7b494187e9
commit 378b161ee1
@@ -153,7 +153,6 @@ class TestPointOfSaleFlow(TestPointOfSaleCommon):
})]
})
# I click on the "Make Payment" wizard to pay the PoS order with the total amount (2*450 + 3*300 = 1800)
context_make_payment = {
"active_ids": [self.pos_order_pos1.id],
"active_id": self.pos_order_pos1.id
@@ -217,7 +216,6 @@ class TestPointOfSaleFlow(TestPointOfSaleCommon):
})]
})
# I click on the "Make Payment" wizard to pay the PoS order with the total amount (-2*450 + -3*300 = -1800)
context_make_payment = {
"active_ids": [self.pos_order_pos2.id],
"active_id": self.pos_order_pos2.id
@@ -270,22 +268,23 @@ class TestPointOfSaleFlow(TestPointOfSaleCommon):
'price_unit': 450,
'discount': 0.0,
'qty': (-2.0),
'tax_ids': [(6, 0, self.product3.taxes_id.ids)],
}), (0, 0, {
'name': "OL/0006",
'product_id': self.product4.id,
'price_unit': 300,
'discount': 0.0,
'qty': 3.0,
'tax_ids': [(6, 0, self.product4.taxes_id.ids)],
})]
})
# I click on the "Make Payment" wizard to pay the PoS order with the total amount (-2*450 + 3*300 = 0)
context_make_payment = {
"active_ids": [self.pos_order_pos3.id],
"active_id": self.pos_order_pos3.id
}
self.pos_make_payment_4 = self.PosMakePayment.with_context(context_make_payment).create({
'amount': 0
'amount': 45,
})
# I click on the validate button to register the payment.