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.
40 lines
2.0 KiB
40 lines
2.0 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"/>
|
|
</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>
|
|
<div style="align-items: center; display: flex;flex-direction: raw; gap:1rem;" >
|
|
<button string="Sync Products" class="btn-primary"
|
|
invisible="product_synced == True"
|
|
type="object" name="action_sync_products"/>
|
|
<button string="Sync Contacts" class="btn-primary"
|
|
type="object" name="action_sync_contacts"
|
|
invisible = "contact_synced == True"
|
|
style="margin-right:26px"/>
|
|
<button string="Sync Leads" class="btn-primary"
|
|
type="object" name="action_sync_leads"
|
|
invisible ="lead_synced == True"/>
|
|
</div>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|