<?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="arch" type="xml">
                <form string="Google login"  version="7.0">
                    <group>
                        <field name="user" placeholder="e.g. user@gmail.com"/>
                        <field name="password" password="True"/>
                    </group>
                    <footer>
                        <button name="login" string="_Login" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </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>
