[ADD] partner : new history tabs are added for crm, email,maketing_campaign,mail_gateway
bzr revid: vir@tinyerp.com-20100625095038-tgjki9gmdfdibgp3
This commit is contained in:
parent
d5196a8fe8
commit
3d20973c46
|
@ -4,62 +4,88 @@
|
||||||
|
|
||||||
<!-- Partners inherited form -->
|
<!-- Partners inherited form -->
|
||||||
|
|
||||||
<record id="view_crm_partner_info_form" model="ir.ui.view">
|
<record id="view_crm_partner_info_form1" model="ir.ui.view">
|
||||||
<field name="name">res.partner.crm.info.inherit</field>
|
<field name="name">res.partner.crm.info.inherit1</field>
|
||||||
<field name="model">res.partner</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//notebook[last()]" position="after">
|
<page string="CRM" position="inside">
|
||||||
<notebook colspan="4">
|
<field name="meeting_ids" colspan="4" nolabel="1" >
|
||||||
<page string="CRM">
|
<tree string="Meetings" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
|
||||||
<field name="meeting_ids" colspan="4" nolabel="1" />
|
<field name="name" string="Subject" />
|
||||||
<field name="phonecall_ids" colspan="4" nolabel="1" />
|
<field name="date" string="Start Date" />
|
||||||
<field name="opportunity_ids" colspan="4" nolabel="1" domain="[('type', '=', 'opportunity')]">
|
<field name="date_deadline" string="End Date"/>
|
||||||
<tree string="Opportunities" colors="blue:state=='pending';grey:state in ('cancel', 'done')">
|
<field name="user_id" string="Responsible"/>
|
||||||
<field name="create_date"/>
|
</tree>
|
||||||
<field name="partner_name"/>
|
</field>
|
||||||
<field name="name"/>
|
</page>
|
||||||
<field name="email_from"/>
|
</field>
|
||||||
<field name="phone"/>
|
</record>
|
||||||
|
|
||||||
<field name="categ_id" invisible="1"/>
|
<record id="view_crm_partner_info_form2" model="ir.ui.view">
|
||||||
<field name="type_id" invisible="1"/>
|
<field name="name">res.partner.crm.info.inherit2</field>
|
||||||
<field name="referred" invisible="1"/>
|
<field name="model">res.partner</field>
|
||||||
|
<field name="type">form</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<page string="CRM" position="inside">
|
||||||
|
<field name="phonecall_ids" colspan="4" nolabel="1" />
|
||||||
|
</page>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<field name="stage_id"/>
|
<record id="view_crm_partner_info_form3" model="ir.ui.view">
|
||||||
<button name="stage_previous" string="Previous"
|
<field name="name">res.partner.crm.info.inherit3</field>
|
||||||
states="open,pending" type="object" icon="gtk-go-back" />
|
<field name="model">res.partner</field>
|
||||||
<button name="stage_next" string="Next"
|
<field name="type">form</field>
|
||||||
states="open,pending" type="object"
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
icon="gtk-go-forward" />
|
<field name="arch" type="xml">
|
||||||
<field name="section_id"
|
<page string="CRM" position="inside">
|
||||||
invisible="context.get('invisible_section', True)" />
|
<field name="opportunity_ids" colspan="4" nolabel="1" domain="[('type', '=', 'opportunity')]">
|
||||||
<field name="user_id" />
|
<tree string="Opportunities" colors="blue:state=='pending';grey:state in ('cancel', 'done')">
|
||||||
<field name="state" />
|
<field name="create_date"/>
|
||||||
<button name="case_open" string="Open"
|
<field name="partner_name"/>
|
||||||
states="draft,pending" type="object"
|
<field name="name"/>
|
||||||
icon="gtk-go-forward" />
|
<field name="email_from"/>
|
||||||
<button name="case_close" string="Close"
|
<field name="phone"/>
|
||||||
states="open,draft,pending" type="object"
|
|
||||||
icon="gtk-close" />
|
<field name="categ_id" invisible="1"/>
|
||||||
<button string="Convert to Opportunity"
|
<field name="type_id" invisible="1"/>
|
||||||
name="convert_opportunity"
|
<field name="referred" invisible="1"/>
|
||||||
states="draft,open,pending" icon="gtk-index"
|
|
||||||
type="object" />
|
<field name="stage_id"/>
|
||||||
<button name="case_escalate" string="Escalate"
|
<button name="stage_previous" string="Previous"
|
||||||
states="open,draft,pending" type="object"
|
states="open,pending" type="object" icon="gtk-go-back" />
|
||||||
icon="gtk-go-up" />
|
<button name="stage_next" string="Next"
|
||||||
<button name="case_cancel" string="Cancel"
|
states="open,pending" type="object"
|
||||||
states="draft,open,pending" type="object"
|
icon="gtk-go-forward" />
|
||||||
icon="gtk-cancel" />
|
<field name="section_id"
|
||||||
</tree>
|
invisible="context.get('invisible_section', True)" />
|
||||||
</field>
|
<field name="user_id" />
|
||||||
</page>
|
<field name="state" />
|
||||||
</notebook>
|
<button name="case_open" string="Open"
|
||||||
</xpath>
|
states="draft,pending" type="object"
|
||||||
|
icon="gtk-go-forward" />
|
||||||
|
<button name="case_close" string="Close"
|
||||||
|
states="open,draft,pending" type="object"
|
||||||
|
icon="gtk-close" />
|
||||||
|
<button string="Convert to Opportunity"
|
||||||
|
name="convert_opportunity"
|
||||||
|
states="draft,open,pending" icon="gtk-index"
|
||||||
|
type="object" />
|
||||||
|
<button name="case_escalate" string="Escalate"
|
||||||
|
states="open,draft,pending" type="object"
|
||||||
|
icon="gtk-go-up" />
|
||||||
|
<button name="case_cancel" string="Cancel"
|
||||||
|
states="draft,open,pending" type="object"
|
||||||
|
icon="gtk-cancel" />
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</page>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import mail_gateway
|
import mail_gateway
|
||||||
|
import res_partner
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
'init_xml': [],
|
'init_xml': [],
|
||||||
'update_xml': [
|
'update_xml': [
|
||||||
"mail_gateway_view.xml",
|
"mail_gateway_view.xml",
|
||||||
|
"res_partner_view.xml",
|
||||||
'security/ir.model.access.csv'
|
'security/ir.model.access.csv'
|
||||||
],
|
],
|
||||||
'demo_xml': [],
|
'demo_xml': [],
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# OpenERP, Open Source Management Solution
|
||||||
|
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
from osv import fields,osv
|
||||||
|
|
||||||
|
class res_partner(osv.osv):
|
||||||
|
""" Inherits partner and adds CRM information in the partner form """
|
||||||
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
_columns = {
|
||||||
|
'emails': fields.one2many('mailgate.message', 'partner_id',\
|
||||||
|
'Emails', readonly=True),
|
||||||
|
}
|
||||||
|
|
||||||
|
res_partner()
|
||||||
|
|
||||||
|
|
||||||
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<!-- Partners inherited form -->
|
||||||
|
|
||||||
|
<record id="view_emails_partner_info_form" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.emails.info.inherit</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="type">form</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<page string="History" position="inside">
|
||||||
|
<field name="emails" colspan="4" nolabel="1"/>
|
||||||
|
</page>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
import marketing_campaign
|
import marketing_campaign
|
||||||
|
import res_partner
|
||||||
import report
|
import report
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
|
@ -44,6 +44,7 @@ are dynamic and multi-channels. The process:
|
||||||
'marketing_campaign_view.xml',
|
'marketing_campaign_view.xml',
|
||||||
'marketing_campaign_data.xml',
|
'marketing_campaign_data.xml',
|
||||||
'marketing_campaign_workflow.xml',
|
'marketing_campaign_workflow.xml',
|
||||||
|
'res_partner_view.xml',
|
||||||
'report/campaign_analysis_view.xml',
|
'report/campaign_analysis_view.xml',
|
||||||
"security/marketing_campaign_security.xml",
|
"security/marketing_campaign_security.xml",
|
||||||
"security/ir.model.access.csv"
|
"security/ir.model.access.csv"
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# OpenERP, Open Source Management Solution
|
||||||
|
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
from osv import fields,osv
|
||||||
|
|
||||||
|
class res_partner(osv.osv):
|
||||||
|
""" Inherits partner and adds CRM information in the partner form """
|
||||||
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
_columns = {
|
||||||
|
'workitem_ids': fields.one2many('marketing.campaign.workitem', 'partner_id',\
|
||||||
|
'Workitems', readonly=True),
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
res_partner()
|
||||||
|
|
||||||
|
|
||||||
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<!-- Partners inherited form -->
|
||||||
|
|
||||||
|
<record id="view_workitem_partner_info_form" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.workitem.info.inherit</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="type">form</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<page string="History" position="inside">
|
||||||
|
<field name="workitem_ids" colspan="4" nolabel="1"/>
|
||||||
|
</page>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
|
|
|
@ -25,6 +25,7 @@ import installer
|
||||||
import project_mailgate
|
import project_mailgate
|
||||||
import report
|
import report
|
||||||
import wizard
|
import wizard
|
||||||
|
import res_partner
|
||||||
|
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
|
@ -46,6 +46,7 @@ work done on tasks, eso. It is able to render planning, order tasks, eso.
|
||||||
"project_report.xml",
|
"project_report.xml",
|
||||||
"process/task_process.xml",
|
"process/task_process.xml",
|
||||||
"project_installer.xml",
|
"project_installer.xml",
|
||||||
|
"res_partner_view.xml",
|
||||||
"report/project_report_view.xml",
|
"report/project_report_view.xml",
|
||||||
"wizard/project_close_task_view.xml",
|
"wizard/project_close_task_view.xml",
|
||||||
"board_project_view.xml",
|
"board_project_view.xml",
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# OpenERP, Open Source Management Solution
|
||||||
|
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
from osv import fields,osv
|
||||||
|
|
||||||
|
class res_partner(osv.osv):
|
||||||
|
""" Inherits partner and adds CRM information in the partner form """
|
||||||
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
_columns = {
|
||||||
|
'task_ids': fields.one2many('project.task', 'partner_id',\
|
||||||
|
'Tasks', readonly=True),
|
||||||
|
}
|
||||||
|
|
||||||
|
res_partner()
|
||||||
|
|
||||||
|
|
||||||
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<!-- Partners inherited form -->
|
||||||
|
|
||||||
|
<record id="view_task_partner_info_form" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.task.info.inherit</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="type">form</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<page string="History" position="inside">
|
||||||
|
<field name="task_ids" colspan="4" nolabel="1"/>
|
||||||
|
</page>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
|
|
Loading…
Reference in New Issue