diff --git a/ext/custom-addons/cam_custom/cam_custom.py b/ext/custom-addons/cam_custom/cam_custom.py index 785b34b2..e652c7c3 100644 --- a/ext/custom-addons/cam_custom/cam_custom.py +++ b/ext/custom-addons/cam_custom/cam_custom.py @@ -61,7 +61,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' @@ -105,4 +115,15 @@ class mail_notification(osv.Model): # }) # footer = tools.append_content_to_html(footer, signature_company, plaintext=False, container_tag='div') - return footer \ No newline at end of file + return footer + +# 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) + diff --git a/ext/custom-addons/cam_custom/cam_custom_view.xml b/ext/custom-addons/cam_custom/cam_custom_view.xml index e2cf755e..62c1597b 100644 --- a/ext/custom-addons/cam_custom/cam_custom_view.xml +++ b/ext/custom-addons/cam_custom/cam_custom_view.xml @@ -64,5 +64,16 @@ + + product.supplierinfo.form.view + product.supplierinfo + + + + + + + +