[IMP] project_issue: Improve the search view of project Issues, The Converrt to Task button must work, either if the issue in not in the state open

bzr revid: mra@tinyerp.com-20100412102518-mgqteb79uzxdkabz
This commit is contained in:
mra (Open ERP) 2010-04-12 15:55:18 +05:30
parent 684bdfe21a
commit ceaecaf57a
2 changed files with 19 additions and 4 deletions

View File

@ -148,10 +148,10 @@ class project_issue(osv.osv):
if context is None:
context = {}
for case in case_obj.browse(cr, uid, ids, context=context):
if case.state != 'open':
raise osv.except_osv(_('Warning !'),
_('Issues or Feature Requests should be in \'Open\' state before converting into Task.'))
# for case in case_obj.browse(cr, uid, ids, context=context):
# if case.state != 'open':
# raise osv.except_osv(_('Warning !'),
# _('Issues or Feature Requests should be in \'Open\' state before converting into Task.'))
result = data_obj._get_id(cr, uid, 'project', 'view_task_search_form')
res = data_obj.read(cr, uid, result, ['res_id'])

View File

@ -220,6 +220,21 @@
/>
</field>
</group>
<newline/>
<group expand="1" string="Group By..." colspan="16">
<filter string="Stage" icon="terp-crm" domain="[]"
context="{'group_by':'stage_id'}" />
<filter string="Priority" icon="terp-crm" domain="[]"
context="{'group_by':'priority'}" />
<filter string="Campaign" icon="terp-crm"
domain="[]" context="{'group_by':'type_id'}" />
<separator orientation="vertical" />
<filter string="Partner" icon="terp-crm" domain="[]"
context="{'group_by':'partner_id'}" />
<filter string="Salesman" icon="terp-crm"
domain="[]" context="{'group_by':'user_id'}" />
<separator orientation="vertical" />
</group>
</search>
</field>
</record>