<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <record model="ir.ui.view" id="sale_form_delivery_check"> <field name="name">sale_form_delivery_check</field> <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <field name="partner_id" position="after"> <field name="is_delivery"/> <field name="delivery_type" attrs="{'invisible':[('is_delivery','=',False)]}"/> </field> </field> </record> </data> </openerp>