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"/>
72 <field name="name" class="oe_inline"/>
73 <field name="kanban_state" invisible='1'/>
74 <button name="set_kanban_state_done" help="In Progress" attrs="{'invisible': [('kanban_state', 'in', ['done','blocked'])]}" type="object" icon="gtk-normal" class="oe_link oe_right"/>
75 <button name="set_kanban_state_blocked" help="Ready for Next Stage" attrs="{'invisible': [('kanban_state', 'in', ['normal','blocked'])]}" type="object" icon="gtk-yes" class="oe_link oe_right"/>
76 <button name="set_kanban_state_normal" help="Blocked" attrs="{'invisible': [('kanban_state', 'in', ['done','normal'])]}" type="object" icon="gtk-no" class="oe_link oe_right"/>
79 <group groups="base.group_user">
80 <field name="user_id"/>
81 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
82 <field name="email_from"/>
83 <label for="project_id" groups="base.group_user"/>
84 <div groups="base.group_user">
85 <field name="project_id" on_change="on_change_project(project_id)" class="oe_inline" context="{'default_use_issues':1}"/>
86 <button name="case_escalate" string="⇒ Escalate" type="object" states="draft,open,pending" class="oe_link"/>
90 <field name="categ_ids" widget="many2many_tags"/>
91 <field name="version_id" groups="base.group_user"/>
92 <field name="priority" groups="base.group_user"/>
93 <label for="task_id" groups="base.group_user"/>
94 <div groups="base.group_user">
95 <field name="task_id" on_change="onchange_task_id(task_id)" class="oe_inline" context="{'default_project_id':project_id}"/>
96 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}" class="oe_inline"/>
101 <page string="Description">
102 <field name="description" placeholder="Add an internal note..." groups="base.group_user"/>
104 <page string="Extra Info" groups="project.group_project_manager">
105 <group string="Statistics">
106 <field name="day_open"/>
107 <field name="day_close"/>
108 <field name="working_hours_open" widget="float_time"/>
109 <field name="working_hours_close" widget="float_time"/>
110 <field name="inactivity_days"/>
111 <field name="days_since_creation"/>
113 <group string="References">
115 <field name="active"/>
117 <group string="Status" groups="base.group_no_one">
118 <field name="state" string="Status"/>
123 <div class="oe_chatter">
124 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
125 <field name="message_ids" widget="mail_thread"/>
131 <record model="ir.ui.view" id="project_issue_tree_view">
132 <field name="name">Project Issue Tracker Tree</field>
133 <field name="model">project.issue</field>
134 <field name="arch" type="xml">
135 <tree string="Issue Tracker Tree" fonts="bold:message_unread==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
136 <field name="message_unread" invisible="1"/>
139 <field name="partner_id"/>
140 <field name="project_id"/>
141 <field name="priority" string="Priority" groups="base.group_user"/>
142 <field name="create_date"/>
143 <field name="version_id" widget="selection"/>
144 <field name="user_id"/>
145 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
146 <field name="stage_id" widget="selection" readonly="1"/>
147 <field name="state" invisible="1"/>
148 <field name="categ_ids" invisible="1"/>
149 <field name="task_id" invisible="1"/>
154 <record id="view_project_issue_filter" model="ir.ui.view">
155 <field name="name">Project Issue Tracker Search</field>
156 <field name="model">project.issue</field>
157 <field name="arch" type="xml">
158 <search string="Issue Tracker Search">
159 <field name="name" string="Issue" filter_domain="['|', '|',('partner_id','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
161 <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
163 <filter string="New" icon="terp-document-new" domain="[('state','=','draft')]" help="New Issues"/>
164 <filter string="To Do" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
166 <filter string="Unassigned Issues" domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-"/>
167 <field name="user_id"/>
168 <field name="project_id"/>
169 <field name="categ_ids"/>
170 <group expand="0" string="Group By..." >
171 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
172 <filter string="Contact" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
173 <filter string="Project" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
174 <filter string="Version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
175 <filter string="Priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
176 <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
177 <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
183 <record model="ir.ui.view" id="project_issue_calendar_view">
184 <field name="name">Project Issue Tracker Calendar</field>
185 <field name="model">project.issue</field>
186 <field name="priority" eval="2"/>
187 <field name="arch" type="xml">
188 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
190 <field name="partner_id"/>
196 <!-- Project Issue Karban View-->
198 <record model="ir.ui.view" id="project_issue_kanban_view">
199 <field name="name">Project Issue Kanban</field>
200 <field name="model">project.issue</field>
201 <field name="arch" type="xml">
202 <kanban default_group_by="stage_id">
203 <field name="stage_id"/>
204 <field name="color"/>
205 <field name="priority"/>
206 <field name="user_email"/>
207 <field name="user_id"/>
208 <field name="date_deadline"/>
209 <field name="kanban_state"/>
211 <t t-name="kanban-tooltip">
212 <ul class="oe_kanban_tooltip">
213 <li><b>Project:</b> <field name="project_id"/></li>
214 <li><b>Category:</b> <field name="categ_ids"/></li>
217 <t t-name="kanban-box">
218 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override">
219 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
220 <span class="oe_e">i</span>
221 <ul class="oe_dropdown_menu">
222 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
223 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
224 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
227 <div class="oe_kanban_content" tooltip="kanban-tooltip">
229 <b><field name="name"/></b> <br/>
230 <field name="partner_id"/> <br/>
231 <field name="version_id"/>
233 <div class="oe_kanban_footer_left">
234 <field name="categ_ids"/>
235 <div class="oe_right">
236 <span class="oe_kanban_highlight" groups="base.group_user">
237 <a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="In Progress" name="set_kanban_state_done" class="oe_kanban_status"> </a>
238 <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>
239 <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>
240 <t t-set="priority" t-value="record.priority.raw_value || 5"/>
241 <a type="object" name="set_priority" args="['3']" t-if="priority gt 3" title="Normal Priority">
242 <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
244 <a type="object" name="set_priority" args="['5']" t-if="priority lte 3" title="Normal Priority">
245 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
247 <a type="object" name="set_priority" args="['2']" title="High Priority">
248 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
250 <a type="object" name="set_priority" args="['1']" title="Highest Priority">
251 <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
254 <t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())">
255 <span t-attf-class="oe_kanban_status oe_kaban_status_red"> </span>
257 <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"/>
261 <div class="oe_clear"></div>
270 <!-- Feature Requests -->
271 <record model="ir.ui.view" id="project_feature_tree_view">
272 <field name="name">Project Issue- Feature Tracker Tree</field>
273 <field name="model">project.issue</field>
274 <field name="arch" type="xml">
275 <tree string="Feature Tracker Tree" fonts="bold:message_unread==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
277 <field name="message_unread" invisible="1"/>
278 <field name="name" string="Feature description"/>
279 <field name="partner_id"/>
280 <field name="priority" string="Priority"/>
281 <field name="version_id"/>
282 <field name="user_id"/>
283 <field name="stage_id" widget="selection" readonly="1"/>
284 <field name="state" groups="base.group_no_one"/>
289 <record id="view_project_feature_filter" model="ir.ui.view">
290 <field name="name">Project Issue - Feature Tracker Search</field>
291 <field name="model">project.issue</field>
292 <field name="arch" type="xml">
293 <search string="Feature Tracker Search">
294 <field name="name" string="Feature description"/>
296 <field name="state" groups="base.group_no_one"/>
297 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
298 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
299 <field name="user_id"/>
300 <field name="project_id" string="Project"/>
305 <record id="act_project_project_2_project_issue_all" model="ir.actions.act_window">
306 <field name="res_model">project.issue</field>
307 <field name="view_type">form</field>
308 <field name="name">Issues</field>
309 <field name="view_mode">kanban,tree,form,calendar,graph</field>
310 <field name="context">{'search_default_project_id': [active_id], 'default_project_id': active_id}</field>
314 <record id="view_project_form_inherited" model="ir.ui.view">
315 <field name="name">project.project.form.inherited</field>
316 <field name="model">project.project</field>
317 <field name="inherit_id" ref="project.edit_project"/>
318 <field name="arch" type="xml">
319 <xpath expr='//div[@name="options_active"]' position='inside'>
320 <field name="use_issues" class="oe_inline"/>
321 <label for="use_issues"/>
323 <xpath expr='//div[@name="buttons"]' position='inside'>
324 <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
326 <field name="priority" position="before">
327 <field name="project_escalation_id"/>
329 <field name="alias_domain" position="after">
330 <label for="alias_model" class="oe_edit_only" string="creates"/><field name="alias_model" class="oe_edit_only oe_inline"/>
335 <record id="view_project_kanban_inherited" model="ir.ui.view">
336 <field name="name">project.project.kanban.inherited</field>
337 <field name="model">project.project</field>
338 <field name="inherit_id" ref="project.view_project_kanban"/>
339 <field name="arch" type="xml">
340 <field name="use_tasks" position="after">
341 <field name="use_issues"/>
342 <field name="issue_count" invisible="1"/>
344 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
345 <a t-if="record.use_issues.raw_value" style="margin-right: 10px"
346 name="%(act_project_project_2_project_issue_all)d" type="action">
347 <span t-if="record.issue_count.raw_value gt 1"><field name="issue_count"/> Issues</span>
348 <span t-if="record.issue_count.raw_value lt 2"><field name="issue_count"/> Issue</span>
354 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
355 <field name="name">account.analytic.account.issue.form.inherit</field>
356 <field name="model">account.analytic.account</field>
357 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
358 <field eval="18" name="priority"/>
359 <field name="arch" type="xml">
360 <xpath expr='//div[@name="project"]' position='inside'>
361 <field name="use_issues"/>
362 <label for="use_issues"/>