146 lines
8.3 KiB
XML
146 lines
8.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="view_mailchimp_accounts_form" model="ir.ui.view">
|
|
<field name="name">mailchimp.accounts.form</field>
|
|
<field name="model">mailchimp.accounts</field>
|
|
<field name="arch" type="xml">
|
|
<form string="MailChimp Accounts">
|
|
<header>
|
|
<button name="test_connection" string="Test Connection"
|
|
type="object" class="btn-success"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label class="oe_edit_only" for="name" string="Account Name"/>
|
|
<h1>
|
|
<field name="name" placeholder="Account Name"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group string="Authentication">
|
|
<field name="api_key"/>
|
|
</group>
|
|
</group>
|
|
<group string='MailChimp Tutorial'
|
|
attrs="{'invisible': [('api_key', '!=', False)]}">
|
|
<ul>
|
|
<li>
|
|
<b>
|
|
Go to
|
|
<a href='https://mailchimp.com/help/about-api-keys/' target='_blank'>MailChimp
|
|
Website
|
|
</a>
|
|
to create or retrive API Key
|
|
</b>
|
|
</li>
|
|
</ul>
|
|
</group>
|
|
<notebook>
|
|
<page name="lists" string="Lists">
|
|
<field name="list_ids" nolabel="1">
|
|
<tree string="MailChimp Lists/Audiences" create="false">
|
|
<field name="name"/>
|
|
<field name="date_created"/>
|
|
<field name="list_id"/>
|
|
<field name="partner_id"/>
|
|
<field name="list_rating"/>
|
|
<!--<button name="export_in_mailchimp" attrs="{'invisible': [('list_id','!=', False)]}" string="Export In MailChimp" type="object" icon="fa-external-link"/>-->
|
|
<!--<button name="update_in_mailchimp" attrs="{'invisible': [('list_id','=', False)]}" string="Update In MailChimp" type="object" icon="fa-share-square-o"/>-->
|
|
<button name="refresh_list" attrs="{'invisible': [('list_id','=', False)]}"
|
|
string="Refresh" type="object" icon="fa-refresh"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page name="campaign" string="Campaigns">
|
|
<field name="campaign_ids" nolabel="1" readonly="1"/>
|
|
</page>
|
|
<page name="settings" string="Settings">
|
|
<h2>Member Options</h2>
|
|
<div class="row mt16 o_settings_container" id="member_option">
|
|
<div class="col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="auto_create_member"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="auto_create_member" string="Auto Create Member In Odoo?"/>
|
|
<div class="text-muted">
|
|
While syncing member lists would you like to create new mailling contact
|
|
in Odoo if not found in Odoo?
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="auto_refresh_member"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="auto_refresh_member"/>
|
|
<div class="text-muted">
|
|
Auto Import/Update member in Odoo at defined in scheduled action.
|
|
</div>
|
|
<div attrs="{'invisible': [('auto_refresh_member','=',False)]}"
|
|
class="mt16">
|
|
<p attrs="{'invisible': [('auto_refresh_member', '=', False)]}">
|
|
<button name="get_refresh_member_action" icon="fa-arrow-right" type="object" string="Scheduled Actions" class="btn-link"/>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 o_setting_box" attrs="{'invisible': [('auto_create_member', '=', False)]}">
|
|
<div class="o_setting_left_pane">
|
|
<field name="auto_create_partner"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="auto_create_partner" string="Auto Create Customers In Odoo?"/>
|
|
<div class="text-muted">
|
|
While syncing member lists would you like to create new Customers(Odoo Contacts)
|
|
in Odoo if not found in Odoo?
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_mailchimp_accounts_tree" model="ir.ui.view">
|
|
<field name="name">mailchimp.accounts.tree</field>
|
|
<field name="model">mailchimp.accounts</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="MailChimp Account">
|
|
<field name="name"/>
|
|
<field name="api_key"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_mailchimp_accounts" model="ir.actions.act_window">
|
|
<field name="name">MailChimp Accounts</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">mailchimp.accounts</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context"></field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to create a new MailChimp Account.
|
|
</p>
|
|
<p>
|
|
Accounts allows you to manage the all MailChimp operation from here.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_mailchimp_root" name="MailChimp" parent="mass_mailing.mass_mailing_menu_root"
|
|
sequence="3" web_icon="mailchimp,static/description/icon.png" groups="mass_mailing.group_mass_mailing_user"/>
|
|
|
|
<menuitem name="Accounts" parent="menu_mailchimp_root"
|
|
action="action_mailchimp_accounts" id="menu_action_mailchimp_accounts"
|
|
sequence="10"/>
|
|
</data>
|
|
</odoo>
|