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="base.group_no_one">
99 <group col="4" colspan="4">
100 <separator string="Statistics" colspan="4" col="4"/>
101 <field name="day_open"/>
102 <field name="day_close"/>
103 <field name="working_hours_open" widget="float_time"/>
104 <field name="working_hours_close" widget="float_time"/>
105 <field name="inactivity_days"/>
106 <field name="days_since_creation"/>
108 <group colspan="4" col="4">
109 <separator string="References" colspan="4"/>
111 <field name="active"/>
113 <group colspan="4" col="4" invisible="1">
114 <separator string="Status" colspan="4"/>
115 <field name="state" groups="base.group_no_one" string="Status"/>
120 <div class="oe_chatter">
121 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
122 <field name="message_ids" widget="mail_thread"/>
128 <record model="ir.ui.view" id="project_issue_tree_view">
129 <field name="name">Project Issue Tracker Tree</field>
130 <field name="model">project.issue</field>
131 <field name="arch" type="xml">
132 <tree string="Issue Tracker Tree" fonts="bold:message_unread==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
133 <field name="message_unread" invisible="1"/>
135 <field name="create_date" groups="base.group_no_one"/>
137 <field name="partner_id"/>
138 <field name="project_id"/>
139 <field name="priority" string="Priority" groups="base.group_user"/>
140 <field name="version_id" widget="selection"/>
141 <field name="user_id"/>
142 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
143 <field name="stage_id" widget="selection" readonly="1"/>
144 <field name="state" invisible="1"/>
145 <field name="categ_ids" invisible="1"/>
146 <field name="task_id" invisible="1"/>
151 <record id="view_project_issue_filter" model="ir.ui.view">
152 <field name="name">Project Issue Tracker Search</field>
153 <field name="model">project.issue</field>
154 <field name="arch" type="xml">
155 <search string="Issue Tracker Search">
156 <field name="name" string="Issue" filter_domain="['|', '|',('partner_id','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
158 <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
160 <filter string="New" icon="terp-document-new" domain="[('state','=','draft')]" help="New Issues"/>
161 <filter string="To Do" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
163 <filter string="Unassigned Issues" domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-" />
164 <field name="user_id"/>
165 <field name="project_id"/>
166 <field name="categ_ids"/>
167 <group expand="0" string="Group By..." >
168 <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
169 <filter string="Contact" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
170 <filter string="Project" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
171 <filter string="Version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
172 <filter string="Priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
173 <filter string="Stage" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
174 <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
180 <record model="ir.ui.view" id="project_issue_calendar_view">
181 <field name="name">Project Issue Tracker Calendar</field>
182 <field name="model">project.issue</field>
183 <field name="priority" eval="2"/>
184 <field name="arch" type="xml">
185 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
187 <field name="partner_id"/>
193 <!-- Project Issue Karban View-->
195 <record model="ir.ui.view" id="project_issue_kanban_view">
196 <field name="name">Project Issue Kanban</field>
197 <field name="model">project.issue</field>
198 <field name="arch" type="xml">
199 <kanban default_group_by="stage_id">
200 <field name="stage_id"/>
201 <field name="color"/>
202 <field name="priority"/>
203 <field name="user_email"/>
204 <field name="user_id"/>
205 <field name="date_deadline"/>
207 <t t-name="kanban-tooltip">
208 <ul class="oe_kanban_tooltip">
209 <li><b>Project:</b> <field name="project_id"/></li>
210 <li><b>Category:</b> <field name="categ_ids"/></li>
213 <t t-name="kanban-box">
214 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override">
215 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
216 <span class="oe_e">i</span>
217 <ul class="oe_dropdown_menu">
218 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
219 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
220 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
223 <div class="oe_kanban_content" tooltip="kanban-tooltip">
225 <b><field name="name"/></b> <br/>
226 <field name="partner_id"/> <br/>
227 <field name="version_id"/>
229 <div class="oe_kanban_footer_left">
230 <field name="categ_ids"/>
231 <div class="oe_right">
232 <span class="oe_kanban_highlight" groups="base.group_user">
233 <t t-set="priority" t-value="record.priority.raw_value || 5"/>
234 <a type="object" name="set_priority" args="['3']" t-if="priority gt 3" title="Normal Priority">
235 <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
237 <a type="object" name="set_priority" args="['5']" t-if="priority lte 3" title="Normal Priority">
238 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
240 <a type="object" name="set_priority" args="['2']" title="High Priority">
241 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
243 <a type="object" name="set_priority" args="['1']" title="Highest Priority">
244 <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
247 <t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())">
248 <span t-attf-class="oe_kanban_status oe_kaban_status_red"> </span>
250 <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"/>
254 <div class="oe_clear"></div>
263 <!-- Feature Requests -->
264 <record model="ir.ui.view" id="project_feature_tree_view">
265 <field name="name">Project Issue- Feature Tracker Tree</field>
266 <field name="model">project.issue</field>
267 <field name="arch" type="xml">
268 <tree string="Feature Tracker Tree" fonts="bold:message_unread==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
270 <field name="message_unread" invisible="1"/>
271 <field name="name" string="Feature description"/>
272 <field name="partner_id"/>
273 <field name="priority" string="Priority"/>
274 <field name="version_id"/>
275 <field name="user_id"/>
276 <field name="stage_id" widget="selection" readonly="1"/>
277 <field name="state" groups="base.group_no_one"/>
282 <record id="view_project_feature_filter" model="ir.ui.view">
283 <field name="name">Project Issue - Feature Tracker Search</field>
284 <field name="model">project.issue</field>
285 <field name="arch" type="xml">
286 <search string="Feature Tracker Search">
287 <field name="name" string="Feature description"/>
289 <field name="state" groups="base.group_no_one"/>
290 <filter icon="terp-check" domain="[('state','in',('open','draft'))]" help="Current Features" name="current_feature"/>
291 <filter icon="terp-camera_test" domain="[('state','=','open')]" help="Open Features"/>
292 <field name="user_id"/>
293 <field name="project_id" string="Project"/>
298 <record id="act_project_project_2_project_issue_all" model="ir.actions.act_window">
299 <field name="res_model">project.issue</field>
300 <field name="view_type">form</field>
301 <field name="name">Issues</field>
302 <field name="view_mode">kanban,tree,form,calendar,graph</field>
303 <field name="context">{'search_default_project_id': [active_id], 'default_project_id': active_id}</field>
307 <record id="view_project_form_inherited" model="ir.ui.view">
308 <field name="name">project.project.form.inherited</field>
309 <field name="model">project.project</field>
310 <field name="inherit_id" ref="project.edit_project"/>
311 <field name="arch" type="xml">
312 <xpath expr='//div[@name="options_active"]' position='inside'>
313 <field name="use_issues" class="oe_inline"/>
314 <label for="use_issues"/>
316 <xpath expr='//div[@name="buttons"]' position='inside'>
317 <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
319 <field name="priority" position="before">
320 <field name="project_escalation_id"/>
322 <field name="alias_domain" position="after">
323 <label for="alias_model" class="oe_edit_only" string="creates"/><field name="alias_model" class="oe_edit_only oe_inline"/>
328 <record id="view_project_kanban_inherited" model="ir.ui.view">
329 <field name="name">project.project.kanban.inherited</field>
330 <field name="model">project.project</field>
331 <field name="inherit_id" ref="project.view_project_kanban"/>
332 <field name="arch" type="xml">
333 <field name="use_tasks" position="after">
334 <field name="use_issues"/>
335 <field name="issue_count" invisible="1"/>
337 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
338 <a t-if="record.use_issues.raw_value" style="margin-right: 10px"
339 name="%(act_project_project_2_project_issue_all)d" type="action">
340 <span t-if="record.issue_count.raw_value gt 1"><field name="issue_count"/> Issues</span>
341 <span t-if="record.issue_count.raw_value lt 2"><field name="issue_count"/> Issue</span>
347 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
348 <field name="name">account.analytic.account.issue.form.inherit</field>
349 <field name="model">account.analytic.account</field>
350 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
351 <field eval="18" name="priority"/>
352 <field name="arch" type="xml">
353 <xpath expr='//div[@name="project"]' position='inside'>
354 <field name="use_issues"/>
355 <label for="use_issues"/>