Disabled default_code in name_get

develop
Stefan Katzensteiner 2015-01-30 12:14:36 +01:00
parent c2445bcc1c
commit bae08695a2
1 changed files with 11 additions and 1 deletions

View File

@ -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'