[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:
parent
684bdfe21a
commit
ceaecaf57a
|
@ -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'])
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue