Disabled default_code in name_get
							parent
							
								
									c2445bcc1c
								
							
						
					
					
						commit
						bae08695a2
					
				|  | @ -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' | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue