'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):
<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" />
""",
'author': 'OpenERP SA',
#'images': ['images/project_gtd.jpeg'],
- 'depends': ['crm'],
+ 'depends': ['crm','project_gtd'],
'init_xml': [],
'update_xml': [
#'project_todo_view.xml',
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()
<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">
<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>
"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()
<separator string="Methodologies" colspan="4"/>
<field name="project_scrum"/>
<field name="project_gtd"/>
+ <field name="project_todo"/>
</group>
</data>
</field>
'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()
<field name="name">TODO</field>
<field name="icon">terp-check</field>
</record>
-
</data>
</openerp>