def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=
    None, toolbar=False, submenu=False):
    res = models.Model.fields_view_get(self, cr, uid, view_id=view_id,
        view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
default_type = context.get('default_type', False)
can_create = default_type != 'out_customer_production'
update = not can_create and view_type in ['form', 'tree']
if update:
    doc = etree.XML(res['arch'])
if not can_create:
    for t in doc.xpath('//' + view_type):
        t.attrib['create'] = 'false'
res['arch'] = etree.tostring(doc)
return res
Odoo/OpenERP: скрытие кнопки создания из дерева