You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.7 KiB
55 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Inherit the Res Company form view -->
|
|
<record id="view_company_form" model="ir.ui.view">
|
|
<field name="name">
|
|
res.company.view.form.inherit.odoo.google.contact.integration
|
|
</field>
|
|
<field name="model">res.company</field>
|
|
<field name="inherit_id" ref="base.view_company_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//notebook/page[1]" position="after">
|
|
<page string="Google Contact">
|
|
<separator name="gci_configuration"
|
|
string="Google Contact Configuration"/>
|
|
<notebook>
|
|
<page name="gci_credentials" string="Credentials">
|
|
<group>
|
|
<field name="contact_client_id"/>
|
|
<field name="contact_client_secret"/>
|
|
<field name="contact_redirect_uri"/>
|
|
</group>
|
|
<group>
|
|
<button string="Authenticate" type="object"
|
|
name="action_google_contact_authenticate"
|
|
class="oe_highlight"
|
|
/>
|
|
<button string="Refresh Token" type="object"
|
|
name="action_google_contact_refresh_token"
|
|
class="oe_highlight"/>
|
|
</group>
|
|
</page>
|
|
<page name="gci_authentication" string="Authentication">
|
|
<group>
|
|
<field name="contact_company_access_token"/>
|
|
<field name="contact_company_access_token_expiry"/>
|
|
<field name="contact_company_refresh_token"/>
|
|
<field name="contact_company_authorization_code"/>
|
|
</group>
|
|
</page>
|
|
<page name="gci_export" string="Import">
|
|
<group>
|
|
<div style="width: 150px; height: 50px; font-size: 16px;">
|
|
<button string="Import Contacts"
|
|
type="object"
|
|
name="action_import_google_contacts"
|
|
/>
|
|
</div>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|