5 <menuitem id="menu_project_confi" name="Issues" parent="base.menu_definitions" sequence="2"/>
7 <!-- Project issue Read/Unread actions -->
8 <record id="actions_server_project_issue_unread" model="ir.actions.server">
9 <field name="name">Mark unread</field>
10 <field name="condition">True</field>
11 <field name="type">ir.actions.server</field>
12 <field name="model_id" ref="model_project_issue"/>
13 <field name="state">code</field>
14 <field name="code">self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
16 <record id="action_project_issue_unread" model="ir.values">
17 <field name="name">action_project_issue_unread</field>
18 <field name="action_id" ref="actions_server_project_issue_unread"/>
19 <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_issue_unread'))"/>
20 <field name="key">action</field>
21 <field name="model_id" ref="model_project_issue"/>
22 <field name="model">project.issue</field>
23 <field name="key2">client_action_multi</field>
26 <record id="actions_server_project_issue_read" model="ir.actions.server">
27 <field name="name">Mark read</field>
28 <field name="condition">True</field>
29 <field name="type">ir.actions.server</field>
30 <field name="model_id" ref="model_project_issue"/>
31 <field name="state">code</field>
32 <field name="code">self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
34 <record id="action_project_issue_read" model="ir.values">
35 <field name="name">action_project_issue_read</field>
36 <field name="action_id" ref="actions_server_project_issue_read"/>
37 <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_issue_read'))"/>
38 <field name="key">action</field>
39 <field name="model_id" ref="model_project_issue"/>
40 <field name="model">project.issue</field>
41 <field name="key2">client_action_multi</field>
44 <record model="ir.ui.view" id="project_issue_version_search_view">
45 <field name="name">Issue Version</field>
46 <field name="model">project.issue.version</field>
47 <field name="type">search</field>
48 <field name="arch" type="xml">
49 <search string="Issue Version">
50 <field name="name" string="Issue Version"/>
51 <field name="active"/>
55 <record model="ir.ui.view" id="project_issue_version_form_view">
56 <field name="name">Issue Version</field>
57 <field name="model">project.issue.version</field>
58 <field name="type">form</field>
59 <field name="arch" type="xml">
60 <form string="Issue Version" version="7.0">
63 <field name="active"/>
68 <record id="project_issue_version_action" model="ir.actions.act_window">
69 <field name="name">Versions</field>
70 <field name="res_model">project.issue.version</field>
71 <field name="view_type">form</field>
72 <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>
74 <menuitem action="project_issue_version_action" id="menu_project_issue_version_act" parent="menu_project_confi" groups="base.group_no_one"/>
76 <record id="project_issue_categ_action" model="ir.actions.act_window">
77 <field name="name">Issue Categories</field>
78 <field name="res_model">crm.case.categ</field>
79 <field name="view_type">form</field>
80 <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
81 <field name="domain">[('object_id.model', '=', 'project.issue')]</field>
82 <field name="context" eval="{'object_id': ref('model_project_issue')}"/>
85 <menuitem action="project_issue_categ_action" name="Categories" id="menu_project_issue_category_act" parent="menu_project_confi" groups="base.group_no_one"/>
87 <record model="ir.ui.view" id="project_issue_form_view">
88 <field name="name">Project Issue Tracker Form</field>
89 <field name="model">project.issue</field>
90 <field name="type">form</field>
91 <field name="arch" type="xml">
94 <span groups="base.group_user">
96 <button name="case_open" string="Open" type="object"
97 states="draft,pending" class="oe_highlight"/>
98 <button name="case_close" string="Done" type="object"
100 <button name="case_close" string="Done" type="object"
101 states="draft,pending"/>
102 <button name="case_pending" string="Pending" type="object"
103 states="draft,open"/>
105 <button name="case_escalate" string="Escalate" type="object"
106 states="draft,open,pending"/>
108 <button name="case_reset" string="Reset to New" type="object"
109 states="cancelled,done"/>
111 <button name="stage_previous" string="Previous Stage" type="object"
112 states="open,pending"
113 attrs="{'invisible': [('stage_id','=', False)]}"/>
114 <button name="stage_next" string="Next Stage" type="object"
115 states="open,pending"
116 attrs="{'invisible': [('stage_id','=', False)]}"/>
117 <button name="case_cancel" string="Cancel" type="object"
118 states="draft,open,pending"/>
120 <field name="stage_id" widget="statusbar"/>
122 <sheet string="Issue">
123 <label for="name" class="oe_edit_only"/>
124 <h1><field name="name"/></h1>
127 <field name="user_id"/>
128 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
129 <field name="email_from"/>
132 <field name="priority"/>
133 <field name="project_id" required="True" on_change="on_change_project(project_id)" context="{'default_use_issues':1}"/>
134 <label for="task_id"/>
136 <field name="task_id" on_change="onchange_task_id(task_id)" class="oe_inline" context="{'default_project_id':project_id}"/>
137 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}" class="oe_inline"/>
139 <field name="categ_ids" widget="many2many_tags"/>
143 <page string="Description">
146 <field name="version_id" widget="selection"/>
149 <field name="description" placeholder="Add a description..."/>
151 <page string="Extra Info" groups="base.group_no_one">
152 <group col="4" colspan="4">
153 <separator string="Statistics" colspan="4" col="4"/>
154 <field name="day_open"/>
155 <field name="day_close"/>
156 <field name="working_hours_open" widget="float_time"/>
157 <field name="working_hours_close" widget="float_time"/>
158 <field name="inactivity_days"/>
159 <field name="days_since_creation"/>
161 <group colspan="4" col="4">
162 <separator string="References" colspan="4"/>
164 <field name="active"/>
166 <group colspan="4" col="4">
167 <separator string="Status" colspan="4"/>
168 <field name="state" groups="base.group_no_one" string="Status"/>
173 <div class="oe_chatter">
174 <field name="message_ids" widget="mail_thread"/>
180 <record model="ir.ui.view" id="project_issue_tree_view">
181 <field name="name">Project Issue Tracker Tree</field>
182 <field name="model">project.issue</field>
183 <field name="type">tree</field>
184 <field name="arch" type="xml">
185 <tree string="Issue Tracker Tree" fonts="bold:needaction_pending==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
186 <field name="needaction_pending" invisible="1"/>
188 <field name="create_date" groups="base.group_no_one"/>
190 <field name="partner_id"/>
191 <field name="project_id"/>
192 <field name="priority" string="Priority" groups="base.group_user"/>
193 <field name="version_id" widget="selection"/>
194 <field name="user_id"/>
195 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
196 <field name="stage_id" widget="selection" readonly="1"/>
197 <field name="state" groups="base.group_no_one"/>
198 <field name="categ_ids" invisible="1"/>
199 <field name="task_id" invisible="1"/>
204 <record id="view_project_issue_filter" model="ir.ui.view">
205 <field name="name">Project Issue Tracker Search</field>
206 <field name="model">project.issue</field>
207 <field name="type">search</field>
208 <field name="arch" type="xml">
209 <search string="Issue Tracker Search">
210 <field name="name" string="Issue" filter_domain="['|', '|',('partner_id','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
212 <filter icon="terp-mail-message-new" string="Inbox" help="Unread messages" name="needaction_pending" domain="[('needaction_pending','=',True)]"/>
214 <filter string="New" icon="terp-document-new" domain="[('state','=','draft')]" help="New Issues"/>
215 <filter string="To Do" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
217 <filter string="Unassigned Issues" domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-" />
218 <field name="user_id"/>
219 <field name="project_id"/>
220 <group expand="0" string="Group By..." >
221 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
222 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
223 <filter string="Project" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
224 <filter string="Version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
225 <filter string="Category" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'categ_id'}"/>
226 <filter string="Priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
227 <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
228 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
229 <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
235 <record model="ir.ui.view" id="project_issue_calendar_view">
236 <field name="name">Project Issue Tracker Calendar</field>
237 <field name="model">project.issue</field>
238 <field name="type">calendar</field>
239 <field name="priority" eval="2"/>
240 <field name="arch" type="xml">
241 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
243 <field name="partner_id"/>
249 <!-- Project Issue Karban View-->
251 <record model="ir.ui.view" id="project_issue_kanban_view">
252 <field name="name">Project Issue Kanban</field>
253 <field name="model">project.issue</field>
254 <field name="type">kanban</field>
255 <field name="arch" type="xml">
256 <kanban default_group_by="stage_id">
257 <field name="color"/>
258 <field name="priority"/>
259 <field name="user_email"/>
260 <field name="user_id"/>
261 <field name="date_deadline"/>
263 <t t-name="kanban-tooltip">
264 <ul class="oe_kanban_tooltip">
265 <li><b>Project:</b> <field name="project_id"/></li>
266 <li><b>Category:</b> <field name="categ_ids"/></li>
269 <t t-name="kanban-box">
270 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">
271 <div class="oe_dropdown_toggle oe_dropdown_kanban">
272 <span class="oe_e">i</span>
273 <ul class="oe_dropdown_menu">
274 <li><a type="edit" >Edit...</a></li>
275 <li><a type="delete">Delete</a></li>
276 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
279 <div class="oe_kanban_content" tooltip="kanban-tooltip">
281 <b><field name="name"/></b> <br/>
282 <field name="partner_id"/> <br/>
283 <field name="version_id"/>
285 <div class="oe_kanban_footer_left">
286 <div class="oe_left oe_tags">
287 <t t-foreach="record.categ_ids.raw_value" t-as="categ_id">
288 <span class="oe_tag" t-att-data-categ_id="categ_id"></span>
291 <div class="oe_right">
292 <span class="oe_kanban_highlight">
293 <t t-set="priority" t-value="record.priority.raw_value || 5"/>
294 <a type="object" name="set_priority" args="['3']" t-if="priority gt 3" title="Normal Priority">
295 <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
297 <a type="object" name="set_priority" args="['5']" t-if="priority lte 3" title="Normal Priority">
298 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
300 <a type="object" name="set_priority" args="['2']" title="High Priority">
301 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
303 <a type="object" name="set_priority" args="['1']" title="Highest Priority">
304 <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
307 <t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())">
308 <span t-attf-class="oe_kanban_status oe_kaban_status_red"> </span>
310 <img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
314 <div class="oe_clear"></div>
323 <!-- Feature Requests -->
324 <record model="ir.ui.view" id="project_feature_tree_view">
325 <field name="name">Project Issue- Feature Tracker Tree</field>
326 <field name="model">project.issue</field>
327 <field name="type">tree</field>
328 <field name="arch" type="xml">
329 <tree string="Feature Tracker Tree" fonts="bold:needaction_pending==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
331 <field name="needaction_pending" invisible="1"/>
332 <field name="name" string="Feature description"/>
333 <field name="partner_id"/>
334 <field name="priority" string="Priority"/>
335 <field name="version_id"/>
336 <field name="user_id"/>
337 <field name="stage_id" widget="selection" readonly="1"/>
338 <field name="state" groups="base.group_no_one"/>
343 <record id="view_project_feature_filter" model="ir.ui.view">
344 <field name="name">Project Issue - Feature Tracker Search</field>
345 <field name="model">project.issue</field>
346 <field name="type">search</field>
347 <field name="arch" type="xml">
348 <search string="Feature Tracker Search">
349 <field name="name" string="Feature description"/>
351 <field name="state" groups="base.group_no_one"/>
352 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
353 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
354 <field name="user_id"/>
355 <field name="project_id" string="Project"/>
360 <act_window id="act_project_project_2_project_issue_all"
362 src_model="project.project"
363 res_model="project.issue"
365 view_mode="kanban,tree,form,calendar,graph"
366 context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"/>
369 <record id="view_project_form_inherited" model="ir.ui.view">
370 <field name="name">project.project.form.inherited</field>
371 <field name="model">project.project</field>
372 <field name="type">form</field>
373 <field name="inherit_id" ref="project.edit_project"/>
374 <field name="arch" type="xml">
375 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
377 <td><group><field name="use_issues"/></group></td>
378 <td><button icon="terp-gtk-go-back-rtl" name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/></td>
381 <field name="priority" position="before">
382 <field name="project_escalation_id"/>
383 <field name="reply_to"/>
388 <record id="view_project_kanban_inherited" model="ir.ui.view">
389 <field name="name">project.project.kanban.inherited</field>
390 <field name="model">project.project</field>
391 <field name="type">kanban</field>
392 <field name="inherit_id" ref="project.view_project_kanban"/>
393 <field name="arch" type="xml">
394 <field name="use_tasks" position="after">
395 <field name="use_issues"/>
396 <field name="issue_count" invisible="1"/>
398 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
399 <a t-if="record.use_issues.raw_value"
400 name="%(act_project_project_2_project_issue_all)d" type="action">
401 Issues(<field name="issue_count"/>)</a>
406 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
407 <field name="name">account.analytic.account.issue.form.inherit</field>
408 <field name="model">account.analytic.account</field>
409 <field name="type">form</field>
410 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
411 <field eval="18" name="priority"/>
412 <field name="arch" type="xml">
413 <xpath expr='//separator[@name="project_sep"]' position='replace'>
414 <separator colspan="4" string="Project Management" name="project_sep"/> <!-- removal of invisible attribute -->
416 <xpath expr='//separator[@name="project_sep"]' position='after'>
417 <field name="use_issues"/>