5 <menuitem id="menu_project_confi" name="Issues" parent="project.menu_definitions" sequence="2"/>
7 <record model="ir.ui.view" id="project_issue_version_search_view">
8 <field name="name">Issue Version</field>
9 <field name="model">project.issue.version</field>
10 <field name="type">search</field>
11 <field name="arch" type="xml">
12 <search string="Issue Version">
14 <field name="active"/>
18 <record model="ir.ui.view" id="project_issue_version_form_view">
19 <field name="name">Issue Version</field>
20 <field name="model">project.issue.version</field>
21 <field name="type">form</field>
22 <field name="arch" type="xml">
23 <form string="Issue Version">
25 <field name="active"/>
29 <record id="project_issue_version_action" model="ir.actions.act_window">
30 <field name="name">Versions</field>
31 <field name="res_model">project.issue.version</field>
32 <field name="view_type">form</field>
33 <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>
35 <menuitem action="project_issue_version_action" id="menu_project_issue_version_act" parent="menu_project_confi" groups="base.group_no_one"/>
37 <record id="project_issue_categ_action" model="ir.actions.act_window">
38 <field name="name">Issue Categories</field>
39 <field name="res_model">crm.case.categ</field>
40 <field name="view_type">form</field>
41 <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
42 <field name="domain">[('object_id.model', '=', 'project.issue')]</field>
43 <field name="context" eval="{'object_id': ref('model_project_issue')}"/>
46 <menuitem action="project_issue_categ_action" name="Categories" id="menu_project_issue_category_act" parent="menu_project_confi" groups="base.group_no_one"/>
48 <record model="ir.ui.view" id="project_issue_form_view">
49 <field name="name">Project Issue Tracker Form</field>
50 <field name="model">project.issue</field>
51 <field name="type">form</field>
52 <field name="arch" type="xml">
53 <form layout="manual">
54 <div class="oe_form_topbar">
55 <button name="case_open" string="Open" type="object"
56 states="draft,pending"/>
57 <button name="case_close" string="Done" type="object"
58 states="draft,open,pending"/>
59 <button name="case_pending" string="Pending" type="object"
61 <button name="case_escalate" string="Escalate" type="object"
62 states="draft,open,pending"/>
63 <button name="case_reset" string="Reset to New" type="object"
64 states="cancelled,done"/>
65 <button name="stage_previous" string="Previous Stage" type="object"
66 states="open,pending" icon="gtk-go-back"
67 attrs="{'invisible': [('stage_id','=', False)]}"/>
68 <button name="stage_next" string="Next Stage" type="object"
69 states="open,pending" icon="gtk-go-forward"
70 attrs="{'invisible': [('stage_id','=', False)]}"/>
71 <button name="case_cancel" string="Cancel" type="object"
72 states="draft,open,pending"/>
73 <div class="oe_right">
74 <field name="stage_id" nolabel="1" widget="statusbar"/>
76 <div class="oe_clear"/>
78 <sheet string="Issue Tracker Form" layout="auto">
79 <group colspan="4" col="6">
81 <field name="project_id" required="True" on_change="on_change_project(project_id)"/>
82 <group colspan="2" col="3">
83 <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/>
84 <button string="Send New Email"
85 name="%(mail.action_email_compose_message_wizard)d"
86 icon="terp-mail-message-new" type="action"/>
88 <field name="user_id"/>
89 <field name="version_id" colspan="2" widget="selection"/>
90 <field name="state" groups="base.group_no_one"/>
92 <notebook colspan="4">
93 <page string="General">
94 <group col="2" colspan="2">
95 <separator colspan="2" string="Contact Information"/>
96 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
97 <field name="email_from"/>
99 <group col="3" colspan="2">
100 <separator colspan="3" string="Status"/>
101 <field name="priority" colspan="3"/>
102 <field name="task_id" on_change="onchange_task_id(task_id)"/>
103 <button string="Convert To Task" name="convert_issue_task" icon="gtk-index" type="object"
104 attrs="{'invisible':[('task_id','!=',False)]}" />
105 <field name="progress" colspan="3" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
107 <separator string= "Description" colspan="4"/>
108 <field name="description" nolabel="1" colspan="4"/>
109 <separator colspan="4"/>
111 <page string="Extra Info">
112 <group col="4" colspan="4">
113 <separator string="Statistics" colspan="4" col="4"/>
114 <field name="day_open"/>
115 <field name="day_close"/>
116 <field name="working_hours_open" widget="float_time"/>
117 <field name="working_hours_close" widget="float_time"/>
118 <field name="inactivity_days"/>
119 <field name="days_since_creation"/>
121 <group colspan="4" col="4">
122 <separator string="References" colspan="4"/>
124 <field name="active"/>
129 <div class="oe_form_sheet_width">
130 <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
136 <record model="ir.ui.view" id="project_issue_tree_view">
137 <field name="name">Project Issue Tracker Tree</field>
138 <field name="model">project.issue</field>
139 <field name="type">tree</field>
140 <field name="arch" type="xml">
141 <tree string="Issue Tracker Tree" fonts="bold:needaction_pending==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
142 <field name="needaction_pending" invisible="1"/>
144 <field name="create_date" groups="base.group_no_one"/>
146 <field name="partner_id"/>
147 <field name="project_id" />
148 <field name="priority" string="Priority"/>
149 <field name="version_id" widget="selection"/>
150 <field name="user_id"/>
151 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
152 <field name="stage_id" widget="selection" readonly="1"/>
153 <field name="state" groups="base.group_no_one"/>
154 <field name="categ_id" invisible="1"/>
155 <field name="task_id" invisible="1"/>
160 <record id="view_project_issue_filter" model="ir.ui.view">
161 <field name="name">Project Issue Tracker Search</field>
162 <field name="model">project.issue</field>
163 <field name="type">search</field>
164 <field name="arch" type="xml">
165 <search string="Issue Tracker Search">
167 <filter string="New" icon="terp-document-new" name="draft" domain="[('state','=','draft')]" help="New Issues"/>
168 <filter string="To Do" name="todo" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
169 <filter string="Pending" domain="[('state','=','pending')]" help="Pending Issues" icon="terp-gtk-media-pause"/>
170 <separator orientation="vertical"/>
171 <field name="name" string="Issue / Partner" filter_domain="['|', '|', ('partner_id','ilike',self), ('email_from','ilike',self), ('name','ilike',self)]"/>
172 <field name="user_id">
173 <filter domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-" />
175 <field name="project_id"/>
179 <group expand="0" string="Group By..." >
180 <filter string="Responsible" icon="terp-personal"
181 domain="[]" context="{'group_by':'user_id'}" />
182 <filter string="Partner" icon="terp-partner" domain="[]"
183 context="{'group_by':'partner_id'}" />
184 <separator orientation="vertical"/>
185 <filter string="Project" icon="terp-folder-violet" domain="[]"
186 context="{'group_by':'project_id'}" />
187 <filter string="Version" icon="terp-gtk-jump-to-rtl"
188 domain="[]" context="{'group_by':'version_id'}" />
189 <separator orientation="vertical"/>
190 <filter string="Category" icon="terp-stock_symbol-selection" domain="[]"
191 context="{'group_by':'categ_id'}" />
192 <filter string="Priority" icon="terp-rating-rated" domain="[]"
193 context="{'group_by':'priority'}" />
194 <filter string="Stage" icon="terp-stage" domain="[]"
195 context="{'group_by':'stage_id'}" />
196 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]"
197 context="{'group_by':'state'}" />
198 <separator orientation="vertical" />
199 <filter string="Month" icon="terp-go-month"
200 domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
206 <record model="ir.ui.view" id="project_issue_calendar_view">
207 <field name="name">Project Issue Tracker Calendar</field>
208 <field name="model">project.issue</field>
209 <field name="type">calendar</field>
210 <field name="priority" eval="2"/>
211 <field name="arch" type="xml">
212 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
214 <field name="partner_id"/>
220 <!-- Project Issue Karban View-->
222 <record model="ir.ui.view" id="project_issue_kanban_view">
223 <field name="name">Project Issue Kanban</field>
224 <field name="model">project.issue</field>
225 <field name="type">kanban</field>
226 <field name="arch" type="xml">
227 <kanban default_group_by="stage_id">
228 <field name="color"/>
229 <field name="state" groups="base.group_no_one"/>
230 <field name="priority"/>
231 <field name="user_email"/>
232 <field name="user_id"/>
234 <t t-name="kanban-box">
235 <t t-set="color" t-value="kanban_color(record.color.raw_value || record.state.raw_value)"/>
236 <div t-att-class="color + (record.priority.raw_value == 1 ? ' oe_kanban_color_alert' : '')">
237 <div class="oe_kanban_box oe_kanban_color_border">
238 <table class="oe_kanban_table oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
240 <td align="left" valign="middle" width="16">
241 <a t-if="record.priority.raw_value == 1" icon="star-on" type="object" name="set_normal_priority"/>
242 <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);"/>
244 <td align="left" valign="middle" class="oe_kanban_title">
247 <td valign="top" width="22">
248 <img t-att-src="kanban_gravatar(record.user_email.value, 22)" class="oe_kanban_gravatar" t-att-title="record.user_id.value"/>
252 <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger oe_kanban_color_border">
253 <div t-if="record.partner_id.raw_value">
254 <field name="partner_id"/>
256 <div t-if="record.project_id.raw_value">
257 <field name="project_id"/>
259 <div t-if="record.version_id.raw_value">
260 <i><field name="version_id"/></i>
263 <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
264 <div class="oe_kanban_left">
265 <a string="Edit" icon="gtk-edit" type="edit"/>
266 <a string="Change Color" icon="color-picker" type="color" name="color"/>
267 <a string="Send New Email" name="%(mail.action_email_compose_message_wizard)d" icon="terp-mail-message-new" type="action"/>
268 <a string="Add Internal Note" name="%(crm.action_crm_add_note)d" context="{'model': 'crm.lead' }" icon="terp-document-new" type="action"/>
269 <a string="Escalate" name="case_escalate" icon="gtk-go-up" type="object"/>
270 <a string="Convert To Task" name="convert_issue_task" icon="gtk-index" type="object"/>
272 <div class="oe_kanban_right">
273 <a name="case_open" string="Open" states="draft,pending" type="object" icon="kanban-apply"/>
274 <a name="case_close" string="Close" states="open,draft,pending" type="object" icon="kanban-stop"/>
276 <div class="oe_kanban_clear"/>
291 # ------------------------------------------------------
293 # ------------------------------------------------------
295 <record model="ir.ui.view" id="project_feature_tree_view">
296 <field name="name">Project Issue- Feature Tracker Tree</field>
297 <field name="model">project.issue</field>
298 <field name="type">tree</field>
299 <field name="arch" type="xml">
300 <tree string="Feature Tracker Tree" fonts="bold:needaction_pending==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
302 <field name="needaction_pending" invisible="1"/>
303 <field name="name" string="Feature description"/>
304 <field name="partner_id"/>
305 <field name="priority" string="Priority"/>
306 <field name="version_id"/>
307 <field name="user_id"/>
308 <field name="stage_id" widget="selection" readonly="1"/>
309 <field name="state" groups="base.group_no_one"/>
314 <record id="view_project_feature_filter" model="ir.ui.view">
315 <field name="name">Project Issue - Feature Tracker Search</field>
316 <field name="model">project.issue</field>
317 <field name="type">search</field>
318 <field name="arch" type="xml">
319 <search string="Feature Tracker Search">
320 <filter icon="terp-go-today" string="Today"
321 domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]" help="Today's features"/>
322 <separator orientation="vertical"/>
324 <field name="name" string="Feature description"/>
325 <field name="user_id"/>
326 <field name="state" groups="base.group_no_one">
327 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
328 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
330 <field name="project_id" string="Project"/>
336 <act_window id="act_project_project_2_project_issue_all"
338 src_model="project.project"
339 res_model="project.issue"
341 view_mode="kanban,tree,form,calendar,graph"
342 context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"/>
344 # ------------------------------------------------------
346 # ------------------------------------------------------
348 <record id="view_project_form_inherited" model="ir.ui.view">
349 <field name="name">project.project.form.inherited</field>
350 <field name="model">project.project</field>
351 <field name="type">form</field>
352 <field name="inherit_id" ref="project.edit_project"/>
353 <field name="arch" type="xml">
354 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
355 <tr name="use_issues_row">
356 <th style="border-right:1px solid #DDD;" width="140px">Issues Tracking</th>
357 <td><field name="use_issues" nolabel="1"/></td>
358 <td style="text-align:right;" width="110px"><button class="oe_btn_width" name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/></td>
361 <field name="priority" position="before">
362 <field name="project_escalation_id"/>
363 <field name="reply_to"/>
365 <xpath expr='//page[@name="team"]' position='replace'>
366 <page name="team" string="Team" attrs="{'invisible':[('use_tasks','=', 0),('use_issues','=', 0)]}">
367 <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.">
368 <tree string="Members">
370 <field name="user_email"/>
378 <record id="view_project_kanban_inherited" model="ir.ui.view">
379 <field name="name">project.project.kanban.inherited</field>
380 <field name="model">project.project</field>
381 <field name="type">kanban</field>
382 <field name="inherit_id" ref="project.view_project_kanban"/>
383 <field name="arch" type="xml">
384 <field name="use_tasks" position="after">
385 <field name="use_issues"/>
386 <field name="issue_count" invisible="1"/>
388 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
389 <a t-if="record.use_issues.raw_value"
390 name="%(act_project_project_2_project_issue_all)d" type="action">
391 Issues(<field name="issue_count"/>)</a>
395 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
396 <field name="name">account.analytic.account.issue.form.inherit</field>
397 <field name="model">account.analytic.account</field>
398 <field name="type">form</field>
399 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
400 <field eval="18" name="priority"/>
401 <field name="arch" type="xml">
402 <xpath expr='//separator[@name="project_sep"]' position='replace'>
403 <separator colspan="2" string="Project" name="project_sep"/>
405 <group name="project" position="inside">
406 <field name="use_issues"/>
408 <xpath expr='//field[@name="members"]' position='replace'>
409 <field name="members" colspan="4" nolabel="1" attrs="{'invisible': [('use_tasks','!=',1),('use_issues','!=',1)]}"/>