2010-04-19 08:38:25 +00:00
<?xml version="1.0"?>
<openerp >
<data >
2012-06-13 13:15:07 +00:00
<menuitem id= "menu_project_confi" name= "Issues" parent= "base.menu_definitions" sequence= "2" />
2010-09-28 12:50:08 +00:00
<record model= "ir.ui.view" id= "project_issue_version_search_view" >
<field name= "name" > Issue Version</field>
<field name= "model" > project.issue.version</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Issue Version" >
<field name= "name" />
<field name= "active" />
</search>
</field>
</record>
<record model= "ir.ui.view" id= "project_issue_version_form_view" >
<field name= "name" > Issue Version</field>
<field name= "model" > project.issue.version</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 15:59:35 +00:00
<form string= "Issue Version" version= "7.0" >
<group col= "2" >
<field name= "name" />
<field name= "active" />
</group>
2010-09-28 12:50:08 +00:00
</form>
</field>
</record>
<record id= "project_issue_version_action" model= "ir.actions.act_window" >
<field name= "name" > Versions</field>
<field name= "res_model" > project.issue.version</field>
<field name= "view_type" > form</field>
2010-10-16 08:26:55 +00:00
<field name= "help" > You can use the issues tracker in OpenERP to handle bugs in the software development project, to handle claims in after-sales services, etc. Define here the different versions of your products on which you can work on issues.</field>
2010-09-28 12:50:08 +00:00
</record>
2012-03-16 10:15:31 +00:00
<menuitem action= "project_issue_version_action" id= "menu_project_issue_version_act" parent= "menu_project_confi" groups= "base.group_no_one" />
2010-05-27 09:26:52 +00:00
2010-04-19 08:38:25 +00:00
<record id= "project_issue_categ_action" model= "ir.actions.act_window" >
<field name= "name" > Issue Categories</field>
<field name= "res_model" > crm.case.categ</field>
<field name= "view_type" > form</field>
<field name= "view_id" ref= "crm.crm_case_categ_tree-view" />
<field name= "domain" > [('object_id.model', '=', 'project.issue')]</field>
2011-11-24 14:20:01 +00:00
<field name= "context" eval= "{'object_id': ref('model_project_issue')}" />
2010-04-19 08:38:25 +00:00
</record>
2012-03-16 10:15:31 +00:00
<menuitem action= "project_issue_categ_action" name= "Categories" id= "menu_project_issue_category_act" parent= "menu_project_confi" groups= "base.group_no_one" />
2010-09-01 09:49:27 +00:00
2010-04-19 08:38:25 +00:00
<record model= "ir.ui.view" id= "project_issue_form_view" >
<field name= "name" > Project Issue Tracker Form</field>
<field name= "model" > project.issue</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
2012-06-09 15:59:35 +00:00
<form version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-05-25 13:08:32 +00:00
<button name= "case_open" string= "Open" type= "object"
2012-05-30 11:32:17 +00:00
states="draft,pending"/>
2012-05-25 13:08:32 +00:00
<button name= "case_close" string= "Done" type= "object"
2012-05-30 11:32:17 +00:00
states="draft,open,pending"/>
<button name= "case_pending" string= "Pending" type= "object"
states="draft,open"/>
2012-05-25 13:08:32 +00:00
<button name= "case_escalate" string= "Escalate" type= "object"
2012-05-30 11:32:17 +00:00
states="draft,open,pending"/>
2012-05-25 13:08:32 +00:00
<button name= "case_reset" string= "Reset to New" type= "object"
2012-05-30 11:32:17 +00:00
states="cancelled,done"/>
2012-06-01 09:06:32 +00:00
<button name= "stage_previous" string= "Previous Stage" type= "object"
states="open,pending" icon="gtk-go-back"
attrs="{'invisible': [('stage_id','=', False)]}"/>
<button name= "stage_next" string= "Next Stage" type= "object"
states="open,pending" icon="gtk-go-forward"
attrs="{'invisible': [('stage_id','=', False)]}"/>
2012-05-25 13:08:32 +00:00
<button name= "case_cancel" string= "Cancel" type= "object"
2012-05-30 11:32:17 +00:00
states="draft,open,pending"/>
2012-06-04 10:50:56 +00:00
<field name= "stage_id" widget= "statusbar" />
2012-06-04 12:11:39 +00:00
</header>
2012-06-09 15:59:35 +00:00
<sheet string= "Issue" >
<label for= "name" class= "oe_form_readonly_hidden" />
<h1 > <field name= "name" /> </h1>
<label for= "project_id" class= "oe_form_readonly_hidden" />
<h2 > <field name= "project_id" required= "True" on_change= "on_change_project(project_id)" /> </h2>
<group >
<group >
<field name= "user_id" />
<field name= "partner_id" on_change= "onchange_partner_id(partner_id, email_from)" />
<field name= "email_from" />
</group> <group >
2012-06-14 06:24:14 +00:00
<field name= "task_id" on_change= "onchange_task_id(task_id)" />
2012-03-05 12:03:41 +00:00
<field name= "categ_id" widget= "selection" domain= "[('object_id.model', '=', 'project.issue')]" />
2012-06-09 15:59:35 +00:00
<field name= "version_id" widget= "selection" />
<field name= "priority" />
<field name= "progress" widget= "progressbar" attrs= "{'invisible':[('task_id','=',False)]}" />
<field name= "state" groups= "base.group_no_one" />
2012-03-05 12:03:41 +00:00
</group>
2010-04-19 08:38:25 +00:00
</group>
2012-06-14 06:24:14 +00:00
<field name= "description" placeholder= "Add a description..." />
2012-06-09 15:59:35 +00:00
<notebook groups= "base.group_no_one" >
2012-04-25 14:02:12 +00:00
<page string= "Extra Info" >
2012-03-05 12:03:41 +00:00
<group col= "4" colspan= "4" >
<separator string= "Statistics" colspan= "4" col= "4" />
2012-03-21 16:29:56 +00:00
<field name= "day_open" />
<field name= "day_close" />
<field name= "working_hours_open" widget= "float_time" />
<field name= "working_hours_close" widget= "float_time" />
<field name= "inactivity_days" />
<field name= "days_since_creation" />
2010-06-09 05:49:31 +00:00
</group>
2012-03-05 12:03:41 +00:00
<group colspan= "4" col= "4" >
<separator string= "References" colspan= "4" />
<field name= "id" />
<field name= "active" />
2010-06-09 05:49:31 +00:00
</group>
</page>
2010-04-19 08:38:25 +00:00
</notebook>
2012-04-26 06:06:16 +00:00
</sheet>
2012-06-09 15:59:35 +00:00
<footer >
<field name= "message_ids" widget= "ThreadView" />
</footer>
2010-04-19 08:38:25 +00:00
</form>
</field>
</record>
2010-07-02 14:37:06 +00:00
2010-04-19 08:38:25 +00:00
<record model= "ir.ui.view" id= "project_issue_tree_view" >
<field name= "name" > Project Issue Tracker Tree</field>
<field name= "model" > project.issue</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2012-04-19 10:08:55 +00:00
<tree string= "Issue Tracker Tree" fonts= "bold:needaction_pending==True" colors= "black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')" >
2012-04-19 09:48:52 +00:00
<field name= "needaction_pending" invisible= "1" />
2010-04-19 08:38:25 +00:00
<field name= "id" />
2012-03-14 06:22:28 +00:00
<field name= "create_date" groups= "base.group_no_one" />
2010-04-19 08:38:25 +00:00
<field name= "name" />
2012-04-25 14:02:12 +00:00
<field name= "partner_id" />
2010-07-09 12:39:53 +00:00
<field name= "project_id" />
2010-09-22 07:58:44 +00:00
<field name= "priority" string= "Priority" />
2010-09-28 12:50:08 +00:00
<field name= "version_id" widget= "selection" />
2011-08-30 08:45:10 +00:00
<field name= "user_id" />
2010-09-30 14:41:19 +00:00
<field name= "progress" widget= "progressbar" attrs= "{'invisible':[('task_id','=',False)]}" />
2012-05-31 15:15:56 +00:00
<field name= "stage_id" widget= "selection" readonly= "1" />
2012-05-04 11:01:47 +00:00
<field name= "state" groups= "base.group_no_one" />
2010-09-20 06:11:01 +00:00
<field name= "categ_id" invisible= "1" />
2011-11-15 10:39:27 +00:00
<field name= "task_id" invisible= "1" />
2010-04-19 08:38:25 +00:00
</tree>
</field>
</record>
<record id= "view_project_issue_filter" model= "ir.ui.view" >
<field name= "name" > Project Issue Tracker Search</field>
<field name= "model" > project.issue</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Issue Tracker Search" >
2010-06-09 05:49:31 +00:00
<group >
2011-09-23 17:22:47 +00:00
<filter string= "New" icon= "terp-document-new" name= "draft" domain= "[('state','=','draft')]" help= "New Issues" />
2011-11-11 08:11:52 +00:00
<filter string= "To Do" name= "todo" domain= "[('state','=','open')]" help= "To Do Issues" icon= "terp-check" />
2010-06-01 10:47:58 +00:00
<filter string= "Pending" domain= "[('state','=','pending')]" help= "Pending Issues" icon= "terp-gtk-media-pause" />
2010-06-12 17:49:33 +00:00
<separator orientation= "vertical" />
2011-08-18 19:30:44 +00:00
<field name= "name" string= "Issue / Partner" filter_domain= "['|', '|', ('partner_id','ilike',self), ('email_from','ilike',self), ('name','ilike',self)]" />
2011-08-30 08:45:10 +00:00
<field name= "user_id" >
2011-03-14 17:54:30 +00:00
<filter domain= "[('user_id','=',False)]" help= "Unassigned Issues" icon= "terp-personal-" />
2010-10-04 19:41:46 +00:00
</field>
<field name= "project_id" />
<field name= "id" />
2010-04-19 08:38:25 +00:00
</group>
<newline />
2012-04-25 14:02:12 +00:00
<group expand= "0" string= "Group By..." >
2010-09-28 12:50:08 +00:00
<filter string= "Responsible" icon= "terp-personal"
2011-08-30 08:45:10 +00:00
domain="[]" context="{'group_by':'user_id'}" />
2010-09-28 12:50:08 +00:00
<filter string= "Partner" icon= "terp-partner" domain= "[]"
2010-09-20 06:11:01 +00:00
context="{'group_by':'partner_id'}" />
2010-09-28 12:50:08 +00:00
<separator orientation= "vertical" />
2010-10-13 06:12:42 +00:00
<filter string= "Project" icon= "terp-folder-violet" domain= "[]"
2010-06-09 05:49:31 +00:00
context="{'group_by':'project_id'}" />
2010-06-12 17:49:33 +00:00
<filter string= "Version" icon= "terp-gtk-jump-to-rtl"
2010-09-28 12:50:08 +00:00
domain="[]" context="{'group_by':'version_id'}" />
<separator orientation= "vertical" />
<filter string= "Category" icon= "terp-stock_symbol-selection" domain= "[]"
2010-09-20 06:11:01 +00:00
context="{'group_by':'categ_id'}" />
2010-09-28 12:50:08 +00:00
<filter string= "Priority" icon= "terp-rating-rated" domain= "[]"
2010-09-20 06:11:01 +00:00
context="{'group_by':'priority'}" />
<filter string= "Stage" icon= "terp-stage" domain= "[]"
2012-05-23 12:55:23 +00:00
context="{'group_by':'stage_id'}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]"
2010-09-20 06:11:01 +00:00
context="{'group_by':'state'}" />
2010-06-12 17:49:33 +00:00
<separator orientation= "vertical" />
<filter string= "Month" icon= "terp-go-month"
2010-09-20 06:11:01 +00:00
domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
2010-06-12 17:49:33 +00:00
</group>
2010-04-19 08:38:25 +00:00
</search>
</field>
</record>
<record model= "ir.ui.view" id= "project_issue_calendar_view" >
<field name= "name" > Project Issue Tracker Calendar</field>
<field name= "model" > project.issue</field>
<field name= "type" > calendar</field>
<field name= "priority" eval= "2" />
<field name= "arch" type= "xml" >
2011-08-30 08:45:10 +00:00
<calendar string= "Issues" date_start= "date" color= "user_id" date_delay= "duration" >
2010-04-19 08:38:25 +00:00
<field name= "name" />
<field name= "partner_id" />
</calendar>
</field>
</record>
2011-09-15 12:36:42 +00:00
2011-10-25 19:26:39 +00:00
<!-- Project Issue Karban View -->
2011-09-15 12:36:42 +00:00
2011-10-25 19:26:39 +00:00
<record model= "ir.ui.view" id= "project_issue_kanban_view" >
2011-09-15 12:36:42 +00:00
<field name= "name" > Project Issue Kanban</field>
<field name= "model" > project.issue</field>
<field name= "type" > kanban</field>
<field name= "arch" type= "xml" >
2012-05-23 12:55:23 +00:00
<kanban default_group_by= "stage_id" >
2011-10-25 19:26:39 +00:00
<field name= "color" />
2012-05-07 05:27:07 +00:00
<field name= "state" groups= "base.group_no_one" />
2011-10-25 19:26:39 +00:00
<field name= "priority" />
<field name= "user_email" />
2011-12-01 13:00:02 +00:00
<field name= "user_id" />
2011-10-25 19:26:39 +00:00
<templates >
2011-09-16 13:13:02 +00:00
<t t-name= "kanban-box" >
2011-09-15 12:36:42 +00:00
<t t-set= "color" t-value= "kanban_color(record.color.raw_value || record.state.raw_value)" />
<div t-att-class= "color + (record.priority.raw_value == 1 ? ' oe_kanban_color_alert' : '')" >
<div class= "oe_kanban_box oe_kanban_color_border" >
2011-12-01 13:00:02 +00:00
<table class= "oe_kanban_table oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle" >
<tr >
<td align= "left" valign= "middle" width= "16" >
<a t-if= "record.priority.raw_value == 1" icon= "star-on" type= "object" name= "set_normal_priority" />
<a t-if= "record.priority.raw_value != 1" icon= "star-off" type= "object" name= "set_high_priority" style= "opacity:0.6; filter:alpha(opacity=60);" />
</td>
<td align= "left" valign= "middle" class= "oe_kanban_title" >
<field name= "name" />
</td>
<td valign= "top" width= "22" >
<img t-att-src= "kanban_gravatar(record.user_email.value, 22)" class= "oe_kanban_gravatar" t-att-title= "record.user_id.value" />
</td>
</tr>
</table>
2011-09-16 13:13:02 +00:00
<div class= "oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger oe_kanban_color_border" >
2011-12-01 13:00:02 +00:00
<div t-if= "record.partner_id.raw_value" >
<field name= "partner_id" />
</div>
<div t-if= "record.project_id.raw_value" >
<field name= "project_id" />
</div>
<div t-if= "record.version_id.raw_value" >
<i > <field name= "version_id" /> </i>
</div>
2011-09-16 13:13:02 +00:00
</div>
<div class= "oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick" >
<div class= "oe_kanban_left" >
2011-09-15 12:36:42 +00:00
<a string= "Edit" icon= "gtk-edit" type= "edit" />
<a string= "Change Color" icon= "color-picker" type= "color" name= "color" />
<a string= "Send New Email" name= "%(mail.action_email_compose_message_wizard)d" icon= "terp-mail-message-new" type= "action" />
2011-09-16 13:13:02 +00:00
<a string= "Escalate" name= "case_escalate" icon= "gtk-go-up" type= "object" />
2011-10-25 19:26:39 +00:00
<a string= "Convert To Task" name= "convert_issue_task" icon= "gtk-index" type= "object" />
2011-09-16 13:13:02 +00:00
</div>
<div class= "oe_kanban_right" >
2012-06-01 09:06:32 +00:00
<a name= "case_open" string= "Open" states= "draft,pending" type= "object" icon= "kanban-apply" />
2011-11-24 22:50:09 +00:00
<a name= "case_close" string= "Close" states= "open,draft,pending" type= "object" icon= "kanban-stop" />
2011-09-15 12:36:42 +00:00
</div>
2011-12-01 13:00:02 +00:00
<div class= "oe_kanban_clear" />
2011-09-16 13:13:02 +00:00
</div>
</div>
2011-09-15 12:36:42 +00:00
</div>
</t>
</templates>
</kanban>
</field>
</record>
2010-04-19 08:38:25 +00:00
# ------------------------------------------------------
# Feature Requests
# ------------------------------------------------------
<record model= "ir.ui.view" id= "project_feature_tree_view" >
<field name= "name" > Project Issue- Feature Tracker Tree</field>
<field name= "model" > project.issue</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2012-04-19 10:08:55 +00:00
<tree string= "Feature Tracker Tree" fonts= "bold:needaction_pending==True" colors= "red:state=='open';black:state in ('draft', 'cancel','done','pending')" >
2010-04-19 08:38:25 +00:00
<field name= "id" />
2012-04-19 10:08:55 +00:00
<field name= "needaction_pending" invisible= "1" />
2010-04-19 08:38:25 +00:00
<field name= "name" string= "Feature description" />
2012-04-25 14:02:12 +00:00
<field name= "partner_id" />
2010-09-22 07:58:44 +00:00
<field name= "priority" string= "Priority" />
2010-09-28 12:50:08 +00:00
<field name= "version_id" />
2011-08-30 08:45:10 +00:00
<field name= "user_id" />
2012-05-31 15:15:56 +00:00
<field name= "stage_id" widget= "selection" readonly= "1" />
2012-05-04 11:01:47 +00:00
<field name= "state" groups= "base.group_no_one" />
2010-04-19 08:38:25 +00:00
</tree>
</field>
</record>
<record id= "view_project_feature_filter" model= "ir.ui.view" >
2011-04-22 11:46:05 +00:00
<field name= "name" > Project Issue - Feature Tracker Search</field>
2010-04-19 08:38:25 +00:00
<field name= "model" > project.issue</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Feature Tracker Search" >
2012-04-06 09:45:40 +00:00
<filter icon= "terp-go-today" string= "Today"
2010-10-04 19:41:46 +00:00
domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]" help="Today's features"/>
2010-04-19 08:38:25 +00:00
<separator orientation= "vertical" />
<group >
2011-03-15 12:41:11 +00:00
<field name= "name" string= "Feature description" />
<field name= "user_id" />
2012-05-07 05:27:07 +00:00
<field name= "state" groups= "base.group_no_one" >
2011-11-08 22:53:37 +00:00
<filter icon= "terp-check" domain= "[('state','in',('open','draft'))]" help= "Current Features" name= "current_feature" />
<filter icon= "terp-camera_test" domain= "[('state','=','open')]" help= "Open Features" />
2010-04-19 08:38:25 +00:00
</field>
2011-03-15 12:41:11 +00:00
<field name= "project_id" string= "Project" />
2010-04-19 08:38:25 +00:00
</group>
</search>
</field>
</record>
2012-05-08 09:21:43 +00:00
2012-05-09 06:56:44 +00:00
<act_window id= "act_project_project_2_project_issue_all"
2012-05-08 09:21:43 +00:00
name="Issues"
src_model="project.project"
2012-05-09 06:56:44 +00:00
res_model="project.issue"
view_type="form"
2012-05-08 09:21:43 +00:00
view_mode="kanban,tree,form,calendar,graph"
2012-05-09 06:56:44 +00:00
context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"/>
2010-04-19 08:38:25 +00:00
2010-09-28 12:50:08 +00:00
# ------------------------------------------------------
2010-07-26 09:41:14 +00:00
# Project
# ------------------------------------------------------
<record id= "view_project_form_inherited" model= "ir.ui.view" >
<field name= "name" > project.project.form.inherited</field>
<field name= "model" > project.project</field>
<field name= "type" > form</field>
<field name= "inherit_id" ref= "project.edit_project" />
<field name= "arch" type= "xml" >
2012-05-30 07:37:28 +00:00
<xpath expr= '//tr[@name="use_tasks_row"]' position= 'after' >
<tr name= "use_issues_row" >
2012-05-30 08:50:24 +00:00
<th style= "border-right:1px solid #DDD;" width= "140px" > Issues Tracking</th>
<td > <field name= "use_issues" nolabel= "1" /> </td>
2012-06-08 07:20:54 +00:00
<td style= "text-align:right;" width= "110px" > <button icon= "terp-stock_symbol-selection" class= "oe_btn_width" name= "%(act_project_project_2_project_issue_all)d" string= "Issues" type= "action" attrs= "{'invisible':[('use_issues','=', 0)]}" /> </td>
2012-05-30 06:59:34 +00:00
</tr>
</xpath>
2010-07-26 09:41:14 +00:00
<field name= "priority" position= "before" >
<field name= "project_escalation_id" />
<field name= "reply_to" />
</field>
2012-06-04 09:24:52 +00:00
<xpath expr= '//page[@name="team"]' position= 'replace' >
<page name= "team" string= "Team" attrs= "{'invisible':[('use_tasks','=', 0),('use_issues','=', 0)]}" >
<field colspan= "4" name= "members" nolabel= "1" help= "Project's members are users who can have an access to the tasks related to this project." >
<tree string= "Members" >
<field name= "name" />
<field name= "user_email" />
</tree>
</field>
</page>
</xpath>
2010-07-26 09:41:14 +00:00
</field>
</record>
2012-03-28 11:52:48 +00:00
2012-03-28 06:08:12 +00:00
<record id= "view_project_kanban_inherited" model= "ir.ui.view" >
<field name= "name" > project.project.kanban.inherited</field>
<field name= "model" > project.project</field>
<field name= "type" > kanban</field>
<field name= "inherit_id" ref= "project.view_project_kanban" />
<field name= "arch" type= "xml" >
2012-05-07 07:20:49 +00:00
<field name= "use_tasks" position= "after" >
<field name= "use_issues" />
<field name= "issue_count" invisible= "1" />
2012-03-28 06:51:36 +00:00
</field>
2012-05-22 15:58:15 +00:00
<xpath expr= "//div[contains(@class, 'oe_kanban_project_list')]" position= "inside" >
<a t-if= "record.use_issues.raw_value"
name="%(act_project_project_2_project_issue_all)d" type="action">
2012-05-09 06:56:44 +00:00
Issues(<field name= "issue_count" /> )</a>
2012-03-28 06:08:12 +00:00
</xpath>
</field>
</record>
2012-05-28 12:30:54 +00:00
<record id= "analytic_account_inherited_issue_form" model= "ir.ui.view" >
<field name= "name" > account.analytic.account.issue.form.inherit</field>
<field name= "model" > account.analytic.account</field>
<field name= "type" > form</field>
2012-06-04 10:33:42 +00:00
<field name= "inherit_id" ref= "project.analytic_account_inherited_form" />
2012-05-28 12:30:54 +00:00
<field eval= "18" name= "priority" />
<field name= "arch" type= "xml" >
<xpath expr= '//separator[@name="project_sep"]' position= 'replace' >
2012-06-15 08:12:54 +00:00
<separator colspan= "2" string= "Project Management" name= "project_sep" /> <!-- removal of invisible attribute -->
</xpath>
<xpath expr= '//separator[@name="project_sep"]' position= 'after' >
<field name= "use_issuess" />
2012-05-28 12:30:54 +00:00
</xpath>
</field>
</record>
2010-04-19 08:38:25 +00:00
</data>
</openerp>