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.
47 lines
2.2 KiB
47 lines
2.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherit res.company to add pipedrive fields -->
|
|
<record id="view_company_form" model="ir.ui.view">
|
|
<field name="name">
|
|
res.company.view.form.inherit.odoo.pipedrive.connector
|
|
</field>
|
|
<field name="inherit_id" ref="base.view_company_form"/>
|
|
<field name="model">res.company</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//notebook" position="inside">
|
|
<page string="Pipedrive" name="Pipedrive">
|
|
<group>
|
|
<field name="api_key" password="True"
|
|
string="Token"/>
|
|
<field name="is_delete_webhook"/>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="product_synced" widget="boolean_toggle"/>
|
|
<field name="contact_synced" widget="boolean_toggle"/>
|
|
<field name="lead_synced" widget="boolean_toggle"/>
|
|
</group>
|
|
</group>
|
|
<group col="6">
|
|
<group>
|
|
<button string="Sync Products" class="btn-primary"
|
|
attrs="{'invisible': [('product_synced', '=', True)]}"
|
|
type="object" name="action_sync_products" style="margin:10px"/>
|
|
</group>
|
|
<group>
|
|
<button string="Sync Contacts" class="btn-primary" style="margin:10px"
|
|
type="object" name="action_sync_contacts"
|
|
attrs="{'invisible': [('contact_synced', '=', True)]}"
|
|
/>
|
|
</group>
|
|
<group>
|
|
<button string="Sync Leads" class="btn-primary" style="margin:10px"
|
|
type="object" name="action_sync_leads"
|
|
attrs="{'invisible': [('lead_synced', '=', True)]}"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|