[FIX] [BUG FIXES]:

-------------
* lp:690109 :
  -> The Parent Project field gives access to the list of analytic accounts.

* lp:691481 :
  -> Bug with the lead converted into opportunity log.

bzr revid: tfr@openerp.com-20101220141323-ijxv4e5clbpbcxjv
This commit is contained in:
Thibault Francois
2010-12-20 15:13:23 +01:00
6 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -153,7 +153,7 @@
<field name="usage">menu</field>
<field name="view_id" ref="board_crm_form"/>
</record>
<menuitem id="board.menu_dasboard" name="Dashboard" sequence="0" parent="base.next_id_64"/>
<menuitem id="board.menu_dasboard" name="Dashboard" sequence="0" parent="base.next_id_64"/>
<menuitem
name="Sales Dashboard" parent="board.menu_dasboard"
action="open_board_crm"
+1 -1
View File
@@ -89,7 +89,7 @@ class crm_lead2opportunity(osv.osv_memory):
self.pool.get('mailgate.message').write(cr, uid, msg_ids, {
'partner_id': lead.partner_id.id
}, context=context)
self.log(cr, uid, lead.id,
leads.log(cr, uid, lead.id,
_("Lead '%s' has been converted to an opportunity.") % lead.name)
return {
+1
View File
@@ -129,6 +129,7 @@ class project(osv.osv):
'priority': fields.integer('Sequence', help="Gives the sequence order when displaying a list of task"),
'warn_manager': fields.boolean('Warn Manager', help="If you check this field, the project manager will receive a request each time a task is completed by his team.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
'members': fields.many2many('res.users', 'project_user_rel', 'project_id', 'uid', 'Project Members', help="Project's member. Not used in any computation, just for information purpose.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
'parent_id': fields.many2one('project.project', 'Parent Project'),
'tasks': fields.one2many('project.task', 'project_id', "Project tasks"),
'planned_hours': fields.function(_progress_rate, multi="progress", method=True, string='Planned Time', help="Sum of planned hours of all tasks related to this project and its child projects.",
store = {
+2 -1
View File
@@ -17,12 +17,13 @@
<!--
Resource: project.project
-->
<record id="all_projects_account" model="account.analytic.account">
<field name="name">Projects</field>
<field name="code">3</field>
</record>
<function eval="('default',False,'parent_id', [('project.project', False)], all_projects_account, True, False, False, False, True)" id="parent_project_default_set" model="ir.values" name="set"/>
-->
</data>
</openerp>
+5
View File
@@ -241,6 +241,11 @@
</record>
<!-- Projects -->
<record id="all_projects_account" model="project.project">
<field name="name">Projects</field>
<field name="code">3</field>
</record>
<record id="project_project_9" model="project.project">
<field name="warn_manager">1</field>
<field name="name">OpenERP Integration</field>
+1 -1
View File
@@ -21,7 +21,7 @@
<form string="Project">
<group colspan="6" col="6">
<field name="name" string="Project Name" select="1"/>
<field name="parent_id" string="Parent Project"/>
<field name="parent_id"/>
<field name="user_id" string="Project Manager" select="1" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>
<field name="date_start" string="Start Date" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>
<field name="date" string="End Date" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>