From 91b3422af379eed44ffdf41fe09684542a2de310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 31 Jul 2012 11:46:29 +0200 Subject: [PATCH] Integer, Numeric and Float allow None as value --- tests/test_stock_split.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_stock_split.py b/tests/test_stock_split.py index 7f03b77ac6..e5de798a07 100644 --- a/tests/test_stock_split.py +++ b/tests/test_stock_split.py @@ -10,6 +10,7 @@ if os.path.isdir(DIR): sys.path.insert(0, os.path.dirname(DIR)) import unittest +from decimal import Decimal import trytond.tests.test_tryton from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\ @@ -55,6 +56,8 @@ class StockSplitTestCase(unittest.TestCase): 'type': 'goods', 'cost_price_method': 'fixed', 'default_uom': unit_id, + 'list_price': Decimal(0), + 'cost_price': Decimal(0), }) input_id, = self.location.search([('code', '=', 'IN')]) storage_id, = self.location.search([('code', '=', 'STO')])