[IMP] move fields and view in crm

bzr revid: tpa@tinyerp.com-20120301113835-co5hjoa4zukldhzs
This commit is contained in:
Turkesh Patel (Open ERP) 2012-03-01 17:08:35 +05:30
parent 0582105af0
commit cf04f10778
4 changed files with 96 additions and 98 deletions

View File

@ -38,12 +38,56 @@ class crm_configuration(osv.osv_memory):
'is_ssl': fields.boolean('SSL/TLS', help="Connections are encrypted with SSL/TLS through a dedicated port (default: IMAPS=993, POP=995)"),
'user' : fields.char('Username', size=256),
'password' : fields.char('Password', size=1024),
'import_sugarcrm' : fields.boolean("Import data from sugarCRM?",
help="""Import SugarCRM Leads, Opportunities, Users, Accounts, Contacts, Employees, Meetings, Phonecalls, Emails, and Project, Project Tasks Data into OpenERP Module.
It installs import_sugarcrm module.
"""),
'import_google' : fields.boolean("Import Contacts & Meetings from Google",
help="""
Import google contact in partner address and add google calendar events details in Meeting
It installs import_google module.
"""),
'wiki_sale_faq' : fields.boolean("Install a sales FAQ?",
help="""
It provides demo data, thereby creating a Wiki Group and a Wiki Page for Wiki Sale FAQ.
It installs wiki_sale_faq module.
"""),
'base_contact' : fields.boolean("Manage a several address per customer",
help="""
It lets you define:
* contacts unrelated to a partner,
* contacts working at several addresses (possibly for different partners),
* contacts with possibly different functions for each of its job's addresses
It installs base_contact module.
"""),
'google_map' : fields.boolean("Google maps on customer",
help="""
This allows yopu to locate customer on Google Map
It installs google_map module.
"""),
'plugin_thunderbird': fields.boolean('Thunderbird plugin',
help="""
The plugin allows you archive email and its attachments to the selected
OpenERP objects. You can select a partner, a task, a project, an analytical
account, or any other object and attach the selected mail as a .eml file in
the attachment of a selected record. You can create documents for CRM Lead,
HR Applicant and Project Issue from selected mails.
It installs plugin_thunderbird module.
"""),
'plugin_outlook': fields.boolean('Outlook plugin',
help="""
Outlook plug-in allows you to select an object that you would like to add
to your email and its attachments from MS Outlook. You can select a partner, a task,
a project, an analytical account, or any other object and archive selected
mail into mail.message with attachments.
It installs plugin_outlook module.
"""),
}
_defaults = {
'type': 'pop',
}
def get_default_email_configurations(self, cr, uid, ids, context=None):
ir_values_obj = self.pool.get('ir.values')
result = {}

View File

@ -7,30 +7,60 @@
<field name="type">form</field>
<field name="inherit_id" ref="base.res_config_view_base"/>
<field name="arch" type="xml">
<xpath expr="//form/group[@name='emails']" position="inside">
<group col="4" colspan="2">
<separator string="Emails" colspan="4"/>
<field name="fetchmail_crm" />
<newline/>
<group col="4" colspan="2"
attrs="{'invisible': [('fetchmail_crm','=',False)]}">
<field name="server" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="type" nolabel="1" on_change="onchange_server_type(type, is_ssl)" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="port" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="is_ssl" on_change="onchange_server_type(type, is_ssl)"/>
<newline/>
<field name="user" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="password" password="True" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<xpath expr="//form/group[@name='Contracts']" position="after">
<group col="8" colspan="4" name="emails">
<group col="4" colspan="2">
<separator string="Plugins" colspan="4"/>
<newline/>
<field name="plugin_thunderbird" colspan="2"/>
<newline/>
<field name="plugin_outlook" colspan="2"/>
<newline/>
</group>
<group col="4" colspan="2">
<separator string="Emails" colspan="4"/>
<field name="fetchmail_crm" />
<newline/>
<group col="4" colspan="2"
attrs="{'invisible': [('fetchmail_crm','=',False)]}">
<field name="server" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="type" nolabel="1" on_change="onchange_server_type(type, is_ssl)" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="port" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="is_ssl" on_change="onchange_server_type(type, is_ssl)"/>
<newline/>
<field name="user" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
<field name="password" password="True" attrs="{'required': [('fetchmail_crm','=',True)]}"/>
</group>
</group>
</group>
<group colspan="4" col="4" name="synchronization">
<separator string="Import and Synchronize data from an other application" colspan="4"/>
<group colspan="2" col="2">
<field name="import_sugarcrm"/>
<newline/>
<field name="import_google"/>
</group>
<group colspan="2" col="2">
<field name="crm_caldav"/>
</group>
</group>
</xpath>
<xpath expr="//form/group[@name='synchronization']" position="inside">
<group colspan="2" col="2">
<field name="crm_caldav"/>
<group colspan="4" col="4">
<group colspan="2" col="2">
<separator string="Documents and Wiki" colspan="2"/>
<field name="wiki_sale_faq" />
</group>
<group colspan="2" col="2">
<separator string="Customer Form" colspan="2"/>
<field name="base_contact"/>
<newline/>
<field name="google_map"/>
</group>
</group>
</xpath>
</field>
</record>
</data>
</openerp>

View File

@ -81,50 +81,6 @@ class sale_configuration(osv.osv_memory):
help=""" This allows you to define what is the default invoicing rate for a specific journal on a given account.
It installs analytic_journal_billing_rate module.
"""),
'import_sugarcrm' : fields.boolean("Import data from sugarCRM?",
help="""Import SugarCRM Leads, Opportunities, Users, Accounts, Contacts, Employees, Meetings, Phonecalls, Emails, and Project, Project Tasks Data into OpenERP Module.
It installs import_sugarcrm module.
"""),
'import_google' : fields.boolean("Import Contacts & Meetings from Google",
help="""
Import google contact in partner address and add google calendar events details in Meeting
It installs import_google module.
"""),
'wiki_sale_faq' : fields.boolean("Install a sales FAQ?",
help="""
It provides demo data, thereby creating a Wiki Group and a Wiki Page for Wiki Sale FAQ.
It installs wiki_sale_faq module.
"""),
'base_contact' : fields.boolean("Manage a several address per customer",
help="""
It lets you define:
* contacts unrelated to a partner,
* contacts working at several addresses (possibly for different partners),
* contacts with possibly different functions for each of its job's addresses
It installs base_contact module.
"""),
'google_map' : fields.boolean("Google maps on customer",
help="""
This allows yopu to locate customer on Google Map
It installs google_map module.
"""),
'plugin_thunderbird': fields.boolean('Thunderbird plugin',
help="""
The plugin allows you archive email and its attachments to the selected
OpenERP objects. You can select a partner, a task, a project, an analytical
account, or any other object and attach the selected mail as a .eml file in
the attachment of a selected record. You can create documents for CRM Lead,
HR Applicant and Project Issue from selected mails.
It installs plugin_thunderbird module.
"""),
'plugin_outlook': fields.boolean('Outlook plugin',
help="""
Outlook plug-in allows you to select an object that you would like to add
to your email and its attachments from MS Outlook. You can select a partner, a task,
a project, an analytical account, or any other object and archive selected
mail into mail.message with attachments.
It installs plugin_outlook module.
"""),
'account_analytic_analysis': fields.boolean('Contracts',
help = """
For modifying account analytic view to show important data to project manager of services companies,

View File

@ -64,45 +64,13 @@
</group>
<separator string="Contracts" colspan="4"/>
<group colspan="4" col="4">
<group name="Contracts" colspan="4" col="4">
<group colspan="4" col="4">
<field name="account_analytic_analysis"/>
<newline/>
</group>
</group>
<group col="8" colspan="4" name="emails">
<group col="4" colspan="2">
<separator string="Plugins" colspan="4"/>
<newline/>
<field name="plugin_thunderbird" colspan="2"/>
<newline/>
<field name="plugin_outlook" colspan="2"/>
<newline/>
</group>
</group>
<group colspan="4" col="4" name="synchronization">
<separator string="Import and Synchronize data from an other application" colspan="4"/>
<group colspan="2" col="2">
<field name="import_sugarcrm"/>
<newline/>
<field name="import_google"/>
</group>
</group>
<group colspan="4" col="4">
<group colspan="2" col="2">
<separator string="Documents and Wiki" colspan="2"/>
<field name="wiki_sale_faq" />
</group>
<group colspan="2" col="2">
<separator string="Customer Form" colspan="2"/>
<field name="base_contact"/>
<newline/>
<field name="google_map"/>
</group>
</group>
</form>
</form>
</field>