diff --git a/ext/custom-addons/cam_custom/cam_custom.py b/ext/custom-addons/cam_custom/cam_custom.py index bebceb12..39b534c8 100644 --- a/ext/custom-addons/cam_custom/cam_custom.py +++ b/ext/custom-addons/cam_custom/cam_custom.py @@ -34,7 +34,17 @@ class res_partner(osv.osv): def fields_view_get_address(self, arch): """ verhindert das Überschreiben von address_format """ return arch - + +class product_product(osv.osv): + _inherit = 'product.product' + + def name_get(self, cr, user, ids, context=None): + if context is None: + context = {} + c = context.copy() + c.update({'display_default_code': False}) + return super(product_product, self).name_get(cr, user, ids, context=c) + class mail_notification(osv.Model): _inherit = 'mail.notification'