Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-17918-msh into
lp:openobject-addons/6.0.
Requested reviews:
Raphael Collet (OpenERP) (rco-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17918-msh/+merge/78091
Hello,
Fixed the issue of change stages from SalesDashboard.
To generate this issue open SalsesDashboard and change the stage from My Open
Opportunity, stage will not be changed.
Here context was not passed that stage_type = opportunity.
which is fetched in method stage_change of crm_case class.
So changed the code accordingly in buttons of board_crm_view.xml.
I have also given the view_id because by default tree view of crm.lead opened
in SaleDashboard.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17918-msh/+merge/78091
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-17918-msh.
=== modified file 'crm/board_crm_view.xml'
--- crm/board_crm_view.xml 2011-01-14 00:11:01 +0000
+++ crm/board_crm_view.xml 2011-10-04 12:25:31 +0000
@@ -40,10 +40,10 @@
<field name="partner_id"/>
<field name="stage_id"/>
<button name="stage_previous" string="Previous Stage"
- states="open,pending" type="object" icon="gtk-go-back" />
+ states="open,pending" type="object" icon="gtk-go-back" context = "{'stage_type': 'opportunity'}" />
<button name="stage_next" string="Next Stage"
states="open,pending" type="object"
- icon="gtk-go-forward" />
+ icon="gtk-go-forward" context = "{'stage_type': 'opportunity'}" />
<field name="planned_revenue" sum="Total of Planned Revenue"/>
<field name="probability" widget="progressbar" avg="Avg. of Probability"/>
<field name="date_deadline" invisible="1"/>
@@ -69,6 +69,7 @@
<field name="res_model">crm.lead</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
+ <field name="view_id" ref="crm_case_my_open_oppor"/>
<field name="domain">[('user_id','=',uid),('state','=','open'), ('type', '=', 'opportunity')]</field>
</record>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp