[IMP]: added crm_todo module

bzr revid: han@tinyerp.com-20110817070420-shuzw3bks0i28bm9
This commit is contained in:
Hardik Ansodariy (OpenERP) 2011-08-17 12:34:20 +05:30
parent 8cb2df39c8
commit 544bb84725
9 changed files with 26 additions and 7 deletions

View File

@ -37,6 +37,7 @@ class crm_installer(osv.osv_memory):
'thunderbird': fields.boolean('Thunderbird', help="Allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."),
'outlook': fields.boolean('MS-Outlook', help="Allows you to link your e-mail to OpenERP's documents. You can attach it to any existing one in OpenERP or create a new one."),
'wiki_sale_faq': fields.boolean('Sale FAQ', help="Helps you manage wiki pages for Frequently Asked Questions on Sales Application."),
'crm_todo': fields.boolean('CRM TODO', help=" add a todo list in your Opportunities form."),
}
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):

View File

@ -32,6 +32,7 @@
<field name="crm_fundraising" />
<field name="wiki_sale_faq"/>
<field name="sale_crm" invisible="1"/>
<field name="crm_todo"/>
</group>
<group colspan="2" col="2">
<separator string="Synchronization" colspan="4" />

View File

@ -29,7 +29,7 @@
""",
'author': 'OpenERP SA',
#'images': ['images/project_gtd.jpeg'],
'depends': ['crm'],
'depends': ['crm','project_gtd'],
'init_xml': [],
'update_xml': [
#'project_todo_view.xml',

View File

@ -26,10 +26,11 @@ import tools
from tools.translate import _
class crm_todo(osv.osv):
_name ="crm.todo"
"""_name = 'crm.todo'"""
_description = "TODO"
_inherit = 'crm.lead'
_columns = {
'todo_ids': fields.one2many('project.gtd.timebox', 'name', 'TODO'),
'todo_ids': fields.one2many('project.gtd.timebox', 'todo_id', 'TODO'),
}
crm_todo()

View File

@ -4,7 +4,7 @@
<record model="ir.ui.view" id="crm_todo_form">
<field name="name">crm.todo.form</field>
<field name="model">crm.todo</field>
<field name="model">crm.lead</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Category of ideas">
@ -15,11 +15,25 @@
<record model="ir.actions.act_window" id="crm_todo_action">
<field name="name">CRM TODO</field>
<field name="res_model">crm.todo</field>
<field name="res_model">crm.lead</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
</record>
<record id="crm_todo_opportunity_add" model="ir.ui.view">
<field name="name">TODO</field>
<field name="model">crm.lead</field>
<field name="type">form</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor" />
<field name="arch" type="xml">
<data>
<xpath expr="/form/group/field[@name = 'message_ids']" position="after">
<field name="todo_ids" colspan="4" nolabel="1"/>
</xpath>
</data>
</field>
</record>
<menuitem name="TODOs" id="menu_crm_todo" parent="base.menu_sales" action="crm_todo_action"/>
</data>
</openerp>

View File

@ -46,6 +46,7 @@ class project_installer(osv.osv_memory):
"in the SCRUM methodology."),
'project_gtd': fields.boolean('Getting Things Done',
help="GTD is a methodology to efficiently organise yourself and your tasks. This module fully integrates GTD principle with OpenERP's project management."),
'project_todo': fields.boolean('Project TODO', help=" add a todo list in your Opportunities form."),
}
project_installer()

View File

@ -33,6 +33,7 @@
<separator string="Methodologies" colspan="4"/>
<field name="project_scrum"/>
<field name="project_gtd"/>
<field name="project_todo"/>
</group>
</data>
</field>

View File

@ -47,6 +47,7 @@ class project_gtd_timebox(osv.osv):
'name': fields.char('Timebox', size=64, required=True, select=1, translate=1),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of timebox."),
'icon': fields.selection(tools.icons, 'Icon', size=64),
'todo_id': fields.many2one('crm.lead','TODO'),
}
project_gtd_timebox()

View File

@ -6,6 +6,5 @@
<field name="name">TODO</field>
<field name="icon">terp-check</field>
</record>
</data>
</openerp>