From a445ac90e13d3c2ccc5ddbd5c4b725ecd8ff0573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Sep 2010 18:39:29 +0200 Subject: [PATCH] Add missing super call in Product and Location to view_header_get for issue1695 --- location.py | 2 ++ product.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/location.py b/location.py index e99afca262..2a74b55bbd 100644 --- a/location.py +++ b/location.py @@ -169,6 +169,8 @@ class Location(ModelSQL, ModelView): def view_header_get(self, value, view_type='form'): product_obj = self.pool.get('product.product') + value = super(Location, self).view_header_get(value, + view_type=view_type) if (Transaction().context.get('product') and isinstance(Transaction().context['product'], (int, long))): with Transaction().set_context(active_test=False): diff --git a/product.py b/product.py index a375b39997..b8688f0735 100644 --- a/product.py +++ b/product.py @@ -508,6 +508,8 @@ class Product(ModelSQL, ModelView): return res def view_header_get(self, value, view_type='form'): + value = super(Product, self).view_header_get(value, + view_type=view_type) if not Transaction().context.get('locations'): return value location_obj = self.pool.get('stock.location')