From 9937f763f1385fd706e2257a7d3e3db0041072c8 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 7 Nov 2016 16:28:28 +0100 Subject: [PATCH] remove field 'available', as it was not correctly defined --- .../models/stock_warehouse_orderpoint.py | 4 ---- .../tests/test_stock_warehouse_orderpoint.py | 6 ------ .../views/stock_warehouse_orderpoint_view.xml | 6 ------ 3 files changed, 16 deletions(-) diff --git a/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py b/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py index 4b57a4582..853c223c2 100644 --- a/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py +++ b/stock_warehouse_orderpoint_stock_info/models/stock_warehouse_orderpoint.py @@ -41,10 +41,6 @@ class StockWarehouseOrderpoint(models.Model): virtual_location_qty = fields.Float( string='Forecast On Location', compute='_compute_product_available_qty') - - available = fields.Boolean( - string='Is enough product available?', - compute='_compute_product_available') product_category = fields.Many2one(string='Product Category', related='product_id.categ_id', store=True) diff --git a/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py b/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py index 744dd26ce..6a6880bf3 100644 --- a/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py +++ b/stock_warehouse_orderpoint_stock_info/tests/test_stock_warehouse_orderpoint.py @@ -78,9 +78,6 @@ class TestStockWarehouseOrderpoint(common.TransactionCase): def test_product_qty(self): """Tests the product quantity in the Reordering rules""" - # Checks the product availability - self.reordering_record.refresh() - self.assertFalse(self.reordering_record.available) # Create & process moves to test the product quantity move = self.create_stock_move() self.reordering_record.refresh() @@ -98,6 +95,3 @@ class TestStockWarehouseOrderpoint(common.TransactionCase): self.assertEqual(self.reordering_record.virtual_location_qty, self.product.virtual_available, 'Virtual Qty does not match') - # Checks the product availability after moves processed - self.reordering_record.refresh() - self.assertTrue(self.reordering_record.available) diff --git a/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml b/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml index e76d4c8f9..0215dc274 100644 --- a/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml +++ b/stock_warehouse_orderpoint_stock_info/views/stock_warehouse_orderpoint_view.xml @@ -14,7 +14,6 @@ - @@ -51,11 +50,6 @@ domain="[]" context="{'group_by':'product_category'}"/> - - -