<?xml version="1.0"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="view_google_login_form">
            <field name="name">google.login.form</field>
            <field name="model">google.login</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Google login" >
                    <group colspan="4" col="4" width="300">
                        <field name="user" />
                        <newline/>
                        <label string="ex: user@gmail.com" align="1.0" colspan="2"/>
                        <newline/>
                        <field name="password" password="True"/>
                    </group>
                    <separator string="" colspan="4"/>
                    <group colspan="4" col="4">
                        <group colspan="2"/>
                        <group colspan="2">  
                            <button special="cancel" string="_Cancel" icon="gtk-cancel"/>
                            <button name="login" string="_Login" type="object" icon="terp-check"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>
        
        <!-- 
            Login Action 
        -->
        <record model="ir.actions.act_window" id="act_google_login_form">
          <field name="name">Google Login</field>
          <field name="type">ir.actions.act_window</field>
          <field name="res_model">google.login</field>
          <field name="view_type">form</field>
          <field name="view_mode">form</field>
          <field name="target">new</field>
          <field name="view_id" ref="view_google_login_form" />
        </record>
    </data>
</openerp>
