5 <menuitem id="menu_project_confi" name="Issues" parent="base.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="arch" type="xml">
11 <search string="Issue Version">
12 <field name="name" string="Issue Version"/>
13 <field name="active"/>
17 <record model="ir.ui.view" id="project_issue_version_form_view">
18 <field name="name">Issue Version</field>
19 <field name="model">project.issue.version</field>
20 <field name="arch" type="xml">
21 <form string="Issue Version" version="7.0">
24 <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" type="html">
34 <p class="oe_view_nocontent_create">
35 Click to add a new version.
37 Define here the different versions of your products on which
38 you can work on issues.
42 <menuitem action="project_issue_version_action" id="menu_project_issue_version_act" parent="menu_project_confi" groups="base.group_no_one"/>
44 <record id="project_issue_categ_action" model="ir.actions.act_window">
45 <field name="name">Issue Categories</field>
46 <field name="res_model">crm.case.categ</field>
47 <field name="view_type">form</field>
48 <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
49 <field name="domain">[('object_id.model', '=', 'project.issue')]</field>
50 <field name="context" eval="{'object_id': ref('model_project_issue')}"/>
53 <menuitem action="project_issue_categ_action" name="Categories" id="menu_project_issue_category_act" parent="menu_project_confi" groups="base.group_no_one"/>
55 <record model="ir.ui.view" id="project_issue_form_view">
56 <field name="name">Project Issue Tracker Form</field>
57 <field name="model">project.issue</field>
58 <field name="arch" type="xml">
59 <form string="Issue" version="7.0">
61 <button name="case_close" string="Done" type="object"
62 states="open" groups="base.group_user"/>
63 <button name="case_close" string="Done" type="object"
64 states="draft,pending" groups="base.group_user"/>
65 <button name="case_cancel" string="Cancel" type="object"
66 states="draft,open,pending" groups="base.group_user"/>
67 <field name="stage_id" widget="statusbar" clickable="True"/>
69 <sheet string="Issue">
70 <label for="name" class="oe_edit_only"/>
71 <h1><field name="name"/></h1>
73 <group groups="base.group_user">
74 <field name="user_id"/>
75 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
76 <field name="email_from"/>
77 <label for="project_id" groups="base.group_user"/>
78 <div groups="base.group_user">
79 <field name="project_id" on_change="on_change_project(project_id)" class="oe_inline" context="{'default_use_issues':1}"/>
80 <button name="case_escalate" string="⇒ Escalate" type="object" states="draft,open,pending" class="oe_link"/>
84 <field name="categ_ids" widget="many2many_tags"/>
85 <field name="version_id" groups="base.group_user"/>
86 <field name="priority" groups="base.group_user"/>
87 <label for="task_id" groups="base.group_user"/>
88 <div groups="base.group_user">
89 <field name="task_id" on_change="onchange_task_id(task_id)" class="oe_inline" context="{'default_project_id':project_id}"/>
90 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}" class="oe_inline"/>
95 <page string="Description">
96 <field name="description" placeholder="Add an internal note..." groups="base.group_user"/>
98 <page string="Extra Info" groups="project.group_project_manager">
99 <group string="Statistics">
100 <field name="day_open"/>
101 <field name="day_close"/>
102 <field name="working_hours_open" widget="float_time"/>
103 <field name="working_hours_close" widget="float_time"/>
104 <field name="inactivity_days"/>
105 <field name="days_since_creation"/>
107 <group string="References">
109 <field name="active"/>
111 <group string="Status" groups="base.group_no_one">
112 <field name="state" string="Status"/>
117 <div class="oe_chatter">
118 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
119 <field name="message_ids" widget="mail_thread"/>
125 <record model="ir.ui.view" id="project_issue_tree_view">
126 <field name="name">Project Issue Tracker Tree</field>
127 <field name="model">project.issue</field>
128 <field name="arch" type="xml">
129 <tree string="Issue Tracker Tree" fonts="bold:message_unread==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
130 <field name="message_unread" invisible="1"/>
132 <field name="create_date" groups="base.group_no_one"/>
134 <field name="partner_id"/>
135 <field name="project_id"/>
136 <field name="priority" string="Priority" groups="base.group_user"/>
137 <field name="version_id" widget="selection"/>
138 <field name="user_id"/>
139 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
140 <field name="stage_id" widget="selection" readonly="1"/>
141 <field name="state" invisible="1"/>
142 <field name="categ_ids" invisible="1"/>
143 <field name="task_id" invisible="1"/>
148 <record id="view_project_issue_filter" model="ir.ui.view">
149 <field name="name">Project Issue Tracker Search</field>
150 <field name="model">project.issue</field>
151 <field name="arch" type="xml">
152 <search string="Issue Tracker Search">
153 <field name="name" string="Issue" filter_domain="['|', '|',('partner_id','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
155 <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
157 <filter string="New" icon="terp-document-new" domain="[('state','=','draft')]" help="New Issues"/>
158 <filter string="To Do" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
160 <filter string="Unassigned Issues" domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-" />
161 <field name="user_id"/>
162 <field name="project_id"/>
163 <field name="categ_ids"/>
164 <group expand="0" string="Group By..." >
165 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
166 <filter string="Contact" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
167 <filter string="Project" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
168 <filter string="Version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
169 <filter string="Priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
170 <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
171 <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
177 <record model="ir.ui.view" id="project_issue_calendar_view">
178 <field name="name">Project Issue Tracker Calendar</field>
179 <field name="model">project.issue</field>
180 <field name="priority" eval="2"/>
181 <field name="arch" type="xml">
182 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
184 <field name="partner_id"/>
190 <!-- Project Issue Karban View-->
192 <record model="ir.ui.view" id="project_issue_kanban_view">
193 <field name="name">Project Issue Kanban</field>
194 <field name="model">project.issue</field>
195 <field name="arch" type="xml">
196 <kanban default_group_by="stage_id">
197 <field name="stage_id"/>
198 <field name="color"/>
199 <field name="priority"/>
200 <field name="user_email"/>
201 <field name="user_id"/>
202 <field name="date_deadline"/>
203 <field name="kanban_state"/>
204 <field name="message_summary"/>
206 <t t-name="kanban-tooltip">
207 <ul class="oe_kanban_tooltip">
208 <li><b>Project:</b> <field name="project_id"/></li>
209 <li><b>Category:</b> <field name="categ_ids"/></li>
212 <t t-name="kanban-box">
213 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override">
214 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
215 <span class="oe_e">i</span>
216 <ul class="oe_dropdown_menu">
217 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
218 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
219 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
222 <div class="oe_kanban_content" tooltip="kanban-tooltip">
224 <b><field name="name"/></b> <br/>
225 <field name="partner_id"/> <br/>
226 <field name="version_id"/>
228 <div class="oe_kanban_footer_left">
229 <field name="categ_ids"/>
230 <div class="oe_right">
231 <span class="oe_kanban_highlight" groups="base.group_user">
232 <a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="In Progress" name="set_kanban_state_done" class="oe_kanban_status"> </a>
233 <a t-if="record.kanban_state.raw_value === 'done'" type="object" string="Ready for next stage" name="set_kanban_state_blocked" class="oe_kanban_status oe_kanban_status_green"> </a>
234 <a t-if="record.kanban_state.raw_value === 'blocked'" type="object" string="Blocked" name="set_kanban_state_normal" class="oe_kanban_status oe_kanban_status_red"> </a>
235 <t t-set="priority" t-value="record.priority.raw_value || 5"/>
236 <a type="object" name="set_priority" args="['3']" t-if="priority gt 3" title="Normal Priority">
237 <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
239 <a type="object" name="set_priority" args="['5']" t-if="priority lte 3" title="Normal Priority">
240 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
242 <a type="object" name="set_priority" args="['2']" title="High Priority">
243 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
245 <a type="object" name="set_priority" args="['1']" title="Highest Priority">
246 <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
249 <t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())">
250 <span t-attf-class="oe_kanban_status oe_kaban_status_red"> </span>
252 <img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
255 <div class="oe_kanban_footer_left">
256 <t t-raw="record.message_summary.raw_value"/>
259 <div class="oe_clear"></div>
268 <!-- Feature Requests -->
269 <record model="ir.ui.view" id="project_feature_tree_view">
270 <field name="name">Project Issue- Feature Tracker Tree</field>
271 <field name="model">project.issue</field>
272 <field name="arch" type="xml">
273 <tree string="Feature Tracker Tree" fonts="bold:message_unread==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
275 <field name="message_unread" invisible="1"/>
276 <field name="name" string="Feature description"/>
277 <field name="partner_id"/>
278 <field name="priority" string="Priority"/>
279 <field name="version_id"/>
280 <field name="user_id"/>
281 <field name="stage_id" widget="selection" readonly="1"/>
282 <field name="state" groups="base.group_no_one"/>
287 <record id="view_project_feature_filter" model="ir.ui.view">
288 <field name="name">Project Issue - Feature Tracker Search</field>
289 <field name="model">project.issue</field>
290 <field name="arch" type="xml">
291 <search string="Feature Tracker Search">
292 <field name="name" string="Feature description"/>
294 <field name="state" groups="base.group_no_one"/>
295 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
296 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
297 <field name="user_id"/>
298 <field name="project_id" string="Project"/>
303 <record id="act_project_project_2_project_issue_all" model="ir.actions.act_window">
304 <field name="res_model">project.issue</field>
305 <field name="view_type">form</field>
306 <field name="name">Issues</field>
307 <field name="view_mode">kanban,tree,form,calendar,graph</field>
308 <field name="context">{'search_default_project_id': [active_id], 'default_project_id': active_id}</field>
312 <record id="view_project_form_inherited" model="ir.ui.view">
313 <field name="name">project.project.form.inherited</field>
314 <field name="model">project.project</field>
315 <field name="inherit_id" ref="project.edit_project"/>
316 <field name="arch" type="xml">
317 <xpath expr='//div[@name="options_active"]' position='inside'>
318 <field name="use_issues" class="oe_inline"/>
319 <label for="use_issues"/>
321 <xpath expr='//div[@name="buttons"]' position='inside'>
322 <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
324 <field name="priority" position="before">
325 <field name="project_escalation_id"/>
327 <field name="alias_domain" position="after">
328 <label for="alias_model" class="oe_edit_only" string="creates"/><field name="alias_model" class="oe_edit_only oe_inline"/>
333 <record id="view_project_kanban_inherited" model="ir.ui.view">
334 <field name="name">project.project.kanban.inherited</field>
335 <field name="model">project.project</field>
336 <field name="inherit_id" ref="project.view_project_kanban"/>
337 <field name="arch" type="xml">
338 <field name="use_tasks" position="after">
339 <field name="use_issues"/>
340 <field name="issue_count" invisible="1"/>
342 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
343 <a t-if="record.use_issues.raw_value" style="margin-right: 10px"
344 name="%(act_project_project_2_project_issue_all)d" type="action">
345 <span t-if="record.issue_count.raw_value gt 1"><field name="issue_count"/> Issues</span>
346 <span t-if="record.issue_count.raw_value lt 2"><field name="issue_count"/> Issue</span>
352 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
353 <field name="name">account.analytic.account.issue.form.inherit</field>
354 <field name="model">account.analytic.account</field>
355 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
356 <field eval="18" name="priority"/>
357 <field name="arch" type="xml">
358 <xpath expr='//div[@name="project"]' position='inside'>
359 <field name="use_issues"/>
360 <label for="use_issues"/>