Disabled default_code in name_get
							parent
							
								
									c2445bcc1c
								
							
						
					
					
						commit
						bae08695a2
					
				|  | @ -35,6 +35,16 @@ class res_partner(osv.osv): | ||||||
|         """ verhindert das Überschreiben von address_format """ |         """ verhindert das Überschreiben von address_format """ | ||||||
|         return arch |         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): | class mail_notification(osv.Model): | ||||||
|     _inherit = 'mail.notification' |     _inherit = 'mail.notification' | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue