1. Extends and Replace
    <record id=”my_view_warehouse_tree” model=”ir.ui.view”>
    <field name=”name”>my.stock.warehouse.tree</field>
    <field name=”model”>stock.warehouse</field>
    <field name=”type”>tree</field>
    <field name=”inherit_id” ref=”stock.view_warehouse_tree”/> (1) (2)
    <field eval=”4″ name=”priority”/>
    <field name=”arch” type=”xml”>
    <field name=”partner_address_id” position=”replace”> (3)
    <field name=”partner_id”/>

    (1) Using inherit_id field

    (2) reference name: module_name.view_id

    (3) Using replace inside arch xml

  2. Override view
    Using priority field with smaller value
  3. Hide field
    <field name=”origin” select=”2″ invisible=”1″/>
  4. Hide group/page
    <page string=”Delivery &amp; Invoices” attrs=”{‘invisible’:[(‘state’,’!=’,”)]}”>
  5. Change default value

    class purchase_order(osv.osv):
    _inherit = ‘purchase.order’
    _defaults = {
    ‘invoice_method’: lambda *a: ‘picking’


Sumber : http://pilgrimonerp.wordpress.com/2010/08/13/openerp-custom-view-cheatsheet/