From c811009c2e74d59b5825aa6a3b41ecd594d0e7ba Mon Sep 17 00:00:00 2001 From: lreficent Date: Wed, 26 Apr 2017 13:17:06 +0200 Subject: [PATCH] [9.0][FIX] mrp_bom_dismantling: fix tests --- mrp_bom_dismantling/__openerp__.py | 2 +- mrp_bom_dismantling/tests/test_template.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mrp_bom_dismantling/__openerp__.py b/mrp_bom_dismantling/__openerp__.py index c0d5a93bf..f6f469fd6 100644 --- a/mrp_bom_dismantling/__openerp__.py +++ b/mrp_bom_dismantling/__openerp__.py @@ -4,7 +4,7 @@ { "name": "BOM Dismantling", "summary": "Ability to create a dismantling BOM by reversing a BOM.", - "version": "9.0.1.0.0", + "version": "9.0.1.0.1", "category": "Manufacturing", "website": "http://www.camptocamp.com/", "author": "Camptocamp, Odoo Community Association (OCA)", diff --git a/mrp_bom_dismantling/tests/test_template.py b/mrp_bom_dismantling/tests/test_template.py index 43e3b6192..930da8358 100644 --- a/mrp_bom_dismantling/tests/test_template.py +++ b/mrp_bom_dismantling/tests/test_template.py @@ -16,7 +16,7 @@ class TestTemplate(TransactionCase): # Create a BoM for this template bom_model = self.env['mrp.bom'] bom_model.create({'product_tmpl_id': tmpl1.id}) - + tmpl1._bom_count() self.assertEqual(1, tmpl1.bom_count) # Create a dismantling BoM @@ -34,9 +34,7 @@ class TestTemplate(TransactionCase): # Check count on another template tmpl2 = tmpl_model.create({'name': 'Template 2'}) - self.assertEqual(0, tmpl2 - - .bom_count) + self.assertEqual(0, tmpl2.bom_count) # And on dismantled product self.assertEqual(0, other_product.product_tmpl_id.bom_count)