Merge branch 'master' of git:~/gitrepos/cam-template

develop
Andreas Brückl 2015-01-30 15:19:44 +01:00
commit 83657287c7
2 changed files with 34 additions and 2 deletions

View File

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

View File

@ -64,5 +64,16 @@
<field name="view_id"></field>
</record>
<record id="product_supplierinfo_form_view" model="ir.ui.view">
<field name="name">product.supplierinfo.form.view</field>
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_form_view"/>
<field name="arch" type="xml">
<field name="product_code" position="replace">
<field name="product_code" invisible="1"/>
</field>
</field>
</record>
</data>
</openerp>