changeset 54386eadcb78 in modules/stock_lot:default
details: https://hg.tryton.org/modules/stock_lot?cmd=changeset&node=54386eadcb78
description:
        Do not set list_price in test without company

        issue10878
diffstat:

 tests/scenario_stock_lot_number.rst |  1 -
 tests/test_stock_lot.py             |  3 ---
 2 files changed, 0 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r cfca5a3e0794 -r 54386eadcb78 tests/scenario_stock_lot_number.rst
--- a/tests/scenario_stock_lot_number.rst       Wed Oct 06 16:24:33 2021 +0200
+++ b/tests/scenario_stock_lot_number.rst       Tue Oct 19 00:10:45 2021 +0200
@@ -40,7 +40,6 @@
     >>> template.name = 'Product'
     >>> template.default_uom = unit
     >>> template.type = 'goods'
-    >>> template.list_price = Decimal('20')
     >>> template.save()
     >>> product, = template.products
 
diff -r cfca5a3e0794 -r 54386eadcb78 tests/test_stock_lot.py
--- a/tests/test_stock_lot.py   Wed Oct 06 16:24:33 2021 +0200
+++ b/tests/test_stock_lot.py   Tue Oct 19 00:10:45 2021 +0200
@@ -37,7 +37,6 @@
         template, = Template.create([{
                     'name': 'Test products_by_location',
                     'type': 'goods',
-                    'list_price': Decimal(0),
                     'default_uom': kg.id,
                     }])
         product, = Product.create([{
@@ -133,7 +132,6 @@
                     'name': 'Test period',
                     'type': 'goods',
                     'default_uom': unit.id,
-                    'list_price': Decimal(0),
                     }])
         product, = Product.create([{
                     'template': template.id,
@@ -236,7 +234,6 @@
         template = Template(
             name="Product",
             type='goods',
-            list_price=Decimal(1),
             default_uom=uom,
             )
         template.save()

Reply via email to