From ccb7ee7eda315f9ca6832f1a5d9eafe33efb6055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 31 Oct 2008 14:14:55 +0100 Subject: [PATCH] Fix typo --- product.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/product.py b/product.py index e6e8280cc4..2ba5ae54c2 100644 --- a/product.py +++ b/product.py @@ -26,15 +26,12 @@ class Template(OSV): Template() class Product(OSV): - "Product" _name = "product.product" - _inherit = "product.product" quantity = fields.Function('get_quantity', type='float', string='Quantity', - fnct_search='search_quantity', readonly=True) - forecast_quantity = fields.Function( - 'get_quantity', type='float', string='Forecast Quantity', - fnct_search='search_quantity', readonly=True) + fnct_search='search_quantity') + forecast_quantity = fields.Function('get_quantity', type='float', + string='Forecast Quantity', fnct_search='search_quantity') def get_quantity(self, cursor, user, ids, name, args, context=None): date_obj = self.pool.get('ir.date')