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">
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 <field name="stage_id" widget="statusbar"/>
75 <sheet string="Issue Tracker Form" layout="auto">
76 <group colspan="4" col="6">
78 <field name="project_id" required="True" on_change="on_change_project(project_id)"/>
79 <group colspan="2" col="3">
80 <field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'project.issue')]"/>
81 <button string="Send New Email"
82 name="%(mail.action_email_compose_message_wizard)d"
83 icon="terp-mail-message-new" type="action"/>
85 <field name="user_id"/>
86 <field name="version_id" colspan="2" widget="selection"/>
87 <field name="state" groups="base.group_no_one"/>
89 <notebook colspan="4">
90 <page string="General">
91 <group col="2" colspan="2">
92 <separator colspan="2" string="Contact Information"/>
93 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
94 <field name="email_from"/>
96 <group col="3" colspan="2">
97 <separator colspan="3" string="Status"/>
98 <field name="priority" colspan="3"/>
99 <field name="task_id" on_change="onchange_task_id(task_id)"/>
100 <button string="Convert To Task" name="convert_issue_task" icon="gtk-index" type="object"
101 attrs="{'invisible':[('task_id','!=',False)]}" />
102 <field name="progress" colspan="3" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
104 <separator string= "Description" colspan="4"/>
105 <field name="description" nolabel="1" colspan="4"/>
106 <separator colspan="4"/>
108 <page string="Extra Info">
109 <group col="4" colspan="4">
110 <separator string="Statistics" colspan="4" col="4"/>
111 <field name="day_open"/>
112 <field name="day_close"/>
113 <field name="working_hours_open" widget="float_time"/>
114 <field name="working_hours_close" widget="float_time"/>
115 <field name="inactivity_days"/>
116 <field name="days_since_creation"/>
118 <group colspan="4" col="4">
119 <separator string="References" colspan="4"/>
121 <field name="active"/>
126 <div class="oe_form_sheet_width">
127 <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
133 <record model="ir.ui.view" id="project_issue_tree_view">
134 <field name="name">Project Issue Tracker Tree</field>
135 <field name="model">project.issue</field>
136 <field name="type">tree</field>
137 <field name="arch" type="xml">
138 <tree string="Issue Tracker Tree" fonts="bold:needaction_pending==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
139 <field name="needaction_pending" invisible="1"/>
141 <field name="create_date" groups="base.group_no_one"/>
143 <field name="partner_id"/>
144 <field name="project_id" />
145 <field name="priority" string="Priority"/>
146 <field name="version_id" widget="selection"/>
147 <field name="user_id"/>
148 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
149 <field name="stage_id" widget="selection" readonly="1"/>
150 <field name="state" groups="base.group_no_one"/>
151 <field name="categ_id" invisible="1"/>
152 <field name="task_id" invisible="1"/>
157 <record id="view_project_issue_filter" model="ir.ui.view">
158 <field name="name">Project Issue Tracker Search</field>
159 <field name="model">project.issue</field>
160 <field name="type">search</field>
161 <field name="arch" type="xml">
162 <search string="Issue Tracker Search">
164 <filter string="New" icon="terp-document-new" name="draft" domain="[('state','=','draft')]" help="New Issues"/>
165 <filter string="To Do" name="todo" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
166 <filter string="Pending" domain="[('state','=','pending')]" help="Pending Issues" icon="terp-gtk-media-pause"/>
167 <separator orientation="vertical"/>
168 <field name="name" string="Issue / Partner" filter_domain="['|', '|', ('partner_id','ilike',self), ('email_from','ilike',self), ('name','ilike',self)]"/>
169 <field name="user_id">
170 <filter domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-" />
172 <field name="project_id"/>
176 <group expand="0" string="Group By..." >
177 <filter string="Responsible" icon="terp-personal"
178 domain="[]" context="{'group_by':'user_id'}" />
179 <filter string="Partner" icon="terp-partner" domain="[]"
180 context="{'group_by':'partner_id'}" />
181 <separator orientation="vertical"/>
182 <filter string="Project" icon="terp-folder-violet" domain="[]"
183 context="{'group_by':'project_id'}" />
184 <filter string="Version" icon="terp-gtk-jump-to-rtl"
185 domain="[]" context="{'group_by':'version_id'}" />
186 <separator orientation="vertical"/>
187 <filter string="Category" icon="terp-stock_symbol-selection" domain="[]"
188 context="{'group_by':'categ_id'}" />
189 <filter string="Priority" icon="terp-rating-rated" domain="[]"
190 context="{'group_by':'priority'}" />
191 <filter string="Stage" icon="terp-stage" domain="[]"
192 context="{'group_by':'stage_id'}" />
193 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]"
194 context="{'group_by':'state'}" />
195 <separator orientation="vertical" />
196 <filter string="Month" icon="terp-go-month"
197 domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
203 <record model="ir.ui.view" id="project_issue_calendar_view">
204 <field name="name">Project Issue Tracker Calendar</field>
205 <field name="model">project.issue</field>
206 <field name="type">calendar</field>
207 <field name="priority" eval="2"/>
208 <field name="arch" type="xml">
209 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
211 <field name="partner_id"/>
217 <!-- Project Issue Karban View-->
219 <record model="ir.ui.view" id="project_issue_kanban_view">
220 <field name="name">Project Issue Kanban</field>
221 <field name="model">project.issue</field>
222 <field name="type">kanban</field>
223 <field name="arch" type="xml">
224 <kanban default_group_by="stage_id">
225 <field name="color"/>
226 <field name="state" groups="base.group_no_one"/>
227 <field name="priority"/>
228 <field name="user_email"/>
229 <field name="user_id"/>
231 <t t-name="kanban-box">
232 <t t-set="color" t-value="kanban_color(record.color.raw_value || record.state.raw_value)"/>
233 <div t-att-class="color + (record.priority.raw_value == 1 ? ' oe_kanban_color_alert' : '')">
234 <div class="oe_kanban_box oe_kanban_color_border">
235 <table class="oe_kanban_table oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
237 <td align="left" valign="middle" width="16">
238 <a t-if="record.priority.raw_value == 1" icon="star-on" type="object" name="set_normal_priority"/>
239 <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);"/>
241 <td align="left" valign="middle" class="oe_kanban_title">
244 <td valign="top" width="22">
245 <img t-att-src="kanban_gravatar(record.user_email.value, 22)" class="oe_kanban_gravatar" t-att-title="record.user_id.value"/>
249 <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger oe_kanban_color_border">
250 <div t-if="record.partner_id.raw_value">
251 <field name="partner_id"/>
253 <div t-if="record.project_id.raw_value">
254 <field name="project_id"/>
256 <div t-if="record.version_id.raw_value">
257 <i><field name="version_id"/></i>
260 <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
261 <div class="oe_kanban_left">
262 <a string="Edit" icon="gtk-edit" type="edit"/>
263 <a string="Change Color" icon="color-picker" type="color" name="color"/>
264 <a string="Send New Email" name="%(mail.action_email_compose_message_wizard)d" icon="terp-mail-message-new" type="action"/>
265 <a string="Add Internal Note" name="%(crm.action_crm_add_note)d" context="{'model': 'crm.lead' }" icon="terp-document-new" type="action"/>
266 <a string="Escalate" name="case_escalate" icon="gtk-go-up" type="object"/>
267 <a string="Convert To Task" name="convert_issue_task" icon="gtk-index" type="object"/>
269 <div class="oe_kanban_right">
270 <a name="case_open" string="Open" states="draft,pending" type="object" icon="kanban-apply"/>
271 <a name="case_close" string="Close" states="open,draft,pending" type="object" icon="kanban-stop"/>
273 <div class="oe_kanban_clear"/>
288 # ------------------------------------------------------
290 # ------------------------------------------------------
292 <record model="ir.ui.view" id="project_feature_tree_view">
293 <field name="name">Project Issue- Feature Tracker Tree</field>
294 <field name="model">project.issue</field>
295 <field name="type">tree</field>
296 <field name="arch" type="xml">
297 <tree string="Feature Tracker Tree" fonts="bold:needaction_pending==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
299 <field name="needaction_pending" invisible="1"/>
300 <field name="name" string="Feature description"/>
301 <field name="partner_id"/>
302 <field name="priority" string="Priority"/>
303 <field name="version_id"/>
304 <field name="user_id"/>
305 <field name="stage_id" widget="selection" readonly="1"/>
306 <field name="state" groups="base.group_no_one"/>
311 <record id="view_project_feature_filter" model="ir.ui.view">
312 <field name="name">Project Issue - Feature Tracker Search</field>
313 <field name="model">project.issue</field>
314 <field name="type">search</field>
315 <field name="arch" type="xml">
316 <search string="Feature Tracker Search">
317 <filter icon="terp-go-today" string="Today"
318 domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]" help="Today's features"/>
319 <separator orientation="vertical"/>
321 <field name="name" string="Feature description"/>
322 <field name="user_id"/>
323 <field name="state" groups="base.group_no_one">
324 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
325 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
327 <field name="project_id" string="Project"/>
333 <act_window id="act_project_project_2_project_issue_all"
335 src_model="project.project"
336 res_model="project.issue"
338 view_mode="kanban,tree,form,calendar,graph"
339 context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"/>
341 # ------------------------------------------------------
343 # ------------------------------------------------------
345 <record id="view_project_form_inherited" model="ir.ui.view">
346 <field name="name">project.project.form.inherited</field>
347 <field name="model">project.project</field>
348 <field name="type">form</field>
349 <field name="inherit_id" ref="project.edit_project"/>
350 <field name="arch" type="xml">
351 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
352 <tr name="use_issues_row">
353 <th style="border-right:1px solid #DDD;" width="140px">Issues Tracking</th>
354 <td><field name="use_issues" nolabel="1"/></td>
355 <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>
358 <field name="priority" position="before">
359 <field name="project_escalation_id"/>
360 <field name="reply_to"/>
362 <xpath expr='//page[@name="team"]' position='replace'>
363 <page name="team" string="Team" attrs="{'invisible':[('use_tasks','=', 0),('use_issues','=', 0)]}">
364 <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.">
365 <tree string="Members">
367 <field name="user_email"/>
375 <record id="view_project_kanban_inherited" model="ir.ui.view">
376 <field name="name">project.project.kanban.inherited</field>
377 <field name="model">project.project</field>
378 <field name="type">kanban</field>
379 <field name="inherit_id" ref="project.view_project_kanban"/>
380 <field name="arch" type="xml">
381 <field name="use_tasks" position="after">
382 <field name="use_issues"/>
383 <field name="issue_count" invisible="1"/>
385 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
386 <a t-if="record.use_issues.raw_value"
387 name="%(act_project_project_2_project_issue_all)d" type="action">
388 Issues(<field name="issue_count"/>)</a>
392 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
393 <field name="name">account.analytic.account.issue.form.inherit</field>
394 <field name="model">account.analytic.account</field>
395 <field name="type">form</field>
396 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
397 <field eval="18" name="priority"/>
398 <field name="arch" type="xml">
399 <xpath expr='//separator[@name="project_sep"]' position='replace'>
400 <separator colspan="2" string="Project" name="project_sep"/>
402 <group name="project" position="inside">
403 <field name="use_issues"/>