mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
s_packaging_calculator: include units when units only on demand
This commit is contained in:
committed by
nguyen hoang hiep
parent
5b5c9c43ed
commit
af83305b66
@@ -38,7 +38,7 @@ class TestCalc(TestCommon):
|
||||
self.assertEqual(self.product_a.product_qty_by_packaging(350), expected)
|
||||
|
||||
def test_as_str(self):
|
||||
self.assertEqual(self.product_a.product_qty_by_packaging_as_str(10), "")
|
||||
self.assertEqual(self.product_a.product_qty_by_packaging_as_str(10), "10 Units")
|
||||
self.assertEqual(self.product_a.product_qty_by_packaging_as_str(100), "2PACK")
|
||||
self.assertEqual(
|
||||
self.product_a.product_qty_by_packaging_as_str(250), "1CASE,\xa01PACK"
|
||||
|
||||
Reference in New Issue
Block a user