diff options
Diffstat (limited to 'addons/procurement/tests/test_procurement.py')
| -rw-r--r-- | addons/procurement/tests/test_procurement.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/procurement/tests/test_procurement.py b/addons/procurement/tests/test_procurement.py new file mode 100644 index 00000000000..6df2c6eb5e0 --- /dev/null +++ b/addons/procurement/tests/test_procurement.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +# Author: Leonardo Pistone +# Copyright 2015 Camptocamp SA + +from odoo.addons.procurement.tests.common import TestStockCommon + + +class TestBase(TestStockCommon): + + def test_base(self): + procurement = self._create_procurement( + self.user_employee, + product_id=self.product_1.id, + name='Procurement Test', + product_qty=15.0) + # I check that procurement order is in exception, as at first there isn't any suitable rule + self.assertEqual(procurement.state, 'exception') |
