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"/>
45 <record model="ir.ui.view" id="project_issue_form_view">
46 <field name="name">Project Issue Tracker Form</field>
47 <field name="model">project.issue</field>
48 <field name="arch" type="xml">
49 <form string="Issue" version="7.0">
51 <button name="case_close" string="Done" type="object"
52 states="open" groups="base.group_user"/>
53 <button name="case_close" string="Done" type="object"
54 states="draft,pending" groups="base.group_user"/>
55 <button name="case_cancel" string="Cancel Issue" type="object"
56 states="draft,open,pending" groups="base.group_user"/>
57 <field name="stage_id" widget="statusbar" clickable="True"/>
59 <sheet string="Issue">
60 <label for="name" class="oe_edit_only"/>
62 <field name="name" class="oe_inline"/>
63 <field name="kanban_state" invisible='1'/>
64 <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"/>
65 <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"/>
66 <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"/>
68 <label for="categ_ids" class="oe_edit_only"/>
69 <field name="categ_ids" widget="many2many_tags"/>
73 context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'project.group_project_user']}"/>
74 <field name="partner_id" on_change="onchange_partner_id(partner_id, email_from)"/>
75 <field name="email_from"/>
76 <label for="project_id"/>
78 <field name="project_id" on_change="on_change_project(project_id)" class="oe_inline" context="{'default_use_issues':1}"/>
79 <button name="case_escalate" string="⇒ Escalate" type="object" states="draft,open,pending" class="oe_link"
80 groups="base.group_user"/>
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,project.group_project_user">
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="Status" groups="base.group_no_one">
108 <field name="active"/>
109 <field name="state" string="Status"/>
114 <div class="oe_chatter">
115 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
116 <field name="message_ids" widget="mail_thread"/>
122 <record model="ir.ui.view" id="project_issue_tree_view">
123 <field name="name">Project Issue Tracker Tree</field>
124 <field name="model">project.issue</field>
125 <field name="arch" type="xml">
126 <tree string="Issue Tracker Tree" fonts="bold:message_unread==True" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
127 <field name="message_unread" invisible="1"/>
130 <field name="partner_id"/>
131 <field name="project_id"/>
132 <field name="priority" string="Priority" groups="base.group_user"/>
133 <field name="create_date"/>
134 <field name="version_id" widget="selection"/>
135 <field name="user_id"/>
136 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
137 <field name="stage_id" widget="selection" readonly="1"/>
138 <field name="state" invisible="1"/>
139 <field name="categ_ids" invisible="1"/>
140 <field name="task_id" invisible="1"/>
145 <record id="view_project_issue_filter" model="ir.ui.view">
146 <field name="name">Project Issue Tracker Search</field>
147 <field name="model">project.issue</field>
148 <field name="arch" type="xml">
149 <search string="Issue Tracker Search">
150 <field name="name" string="Issue" filter_domain="['|', '|', '|', ('partner_id','child_of',self), ('description','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
152 <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
154 <filter name="filter_new" string="New" icon="terp-document-new" domain="[('state','=','draft')]" help="New Issues"/>
155 <filter name="filter_open" string="To Do" domain="[('state','=','open')]" help="To Do Issues" icon="terp-check"/>
157 <filter string="Unassigned Issues" domain="[('user_id','=',False)]" help="Unassigned Issues" icon="terp-personal-"/>
159 <field name="user_id"/>
160 <field name="project_id"/>
161 <field name="categ_ids"/>
162 <field name="partner_id" filter_domain="[('partner_id', 'child_of', self)]"/>
163 <group expand="0" string="Group By..." >
164 <filter string="Responsible" name="group_user_id" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
165 <filter string="Contact" name="group_partner_id" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
166 <filter string="Project" name="group_project_id" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
167 <filter string="Version" name="group_version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
168 <filter string="Priority" name="group_priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
169 <filter string="Stage" name="group_stage_id" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
170 <filter string="Month" name="group_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" help="Creation Month"/>
176 <record model="ir.ui.view" id="project_issue_calendar_view">
177 <field name="name">Project Issue Tracker Calendar</field>
178 <field name="model">project.issue</field>
179 <field name="priority" eval="2"/>
180 <field name="arch" type="xml">
181 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
183 <field name="partner_id"/>
189 <!-- Project Issue Karban View-->
191 <record model="ir.ui.view" id="project_issue_kanban_view">
192 <field name="name">Project Issue Kanban</field>
193 <field name="model">project.issue</field>
194 <field name="arch" type="xml">
195 <kanban default_group_by="stage_id">
196 <field name="stage_id"/>
197 <field name="color"/>
198 <field name="priority"/>
199 <field name="user_email"/>
200 <field name="user_id"/>
201 <field name="date_deadline"/>
202 <field name="kanban_state"/>
203 <field name="message_summary"/>
205 <t t-name="kanban-tooltip">
206 <ul class="oe_kanban_tooltip">
207 <li><b>Project:</b> <field name="project_id"/></li>
208 <li><b>Category:</b> <field name="categ_ids"/></li>
211 <t t-name="kanban-box">
212 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override">
213 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
214 <span class="oe_e">i</span>
215 <ul class="oe_dropdown_menu">
216 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
217 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
218 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
221 <div class="oe_kanban_content" tooltip="kanban-tooltip">
223 <b><field name="name"/></b> <br/>
224 <field name="partner_id"/> <br/>
225 <field name="version_id"/>
227 <div class="oe_kanban_footer_left">
228 <field name="categ_ids"/>
229 <div class="oe_right">
230 <span class="oe_kanban_highlight" groups="base.group_user">
231 <a t-if="record.kanban_state.raw_value === 'normal'" type="object" string="In Progress" name="set_kanban_state_done" class="oe_kanban_status"> </a>
232 <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>
233 <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>
234 <t t-set="priority" t-value="record.priority.raw_value || 5"/>
235 <a type="object" name="set_priority" args="['3']" t-if="priority gt 3" title="Normal Priority">
236 <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
238 <a type="object" name="set_priority" args="['5']" t-if="priority lte 3" title="Normal Priority">
239 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
241 <a type="object" name="set_priority" args="['2']" title="High Priority">
242 <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
244 <a type="object" name="set_priority" args="['1']" title="Highest Priority">
245 <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
248 <t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())">
249 <span t-attf-class="oe_kanban_status oe_kaban_status_red"> </span>
251 <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_kanban_footer_left">
255 <t t-raw="record.message_summary.raw_value"/>
258 <div class="oe_clear"></div>
267 <!-- Feature Requests -->
268 <record model="ir.ui.view" id="project_feature_tree_view">
269 <field name="name">Project Issue- Feature Tracker Tree</field>
270 <field name="model">project.issue</field>
271 <field name="arch" type="xml">
272 <tree string="Feature Tracker Tree" fonts="bold:message_unread==True" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
274 <field name="message_unread" invisible="1"/>
275 <field name="name" string="Feature description"/>
276 <field name="partner_id"/>
277 <field name="priority" string="Priority"/>
278 <field name="version_id"/>
279 <field name="user_id"/>
280 <field name="stage_id" widget="selection" readonly="1"/>
281 <field name="state" groups="base.group_no_one"/>
286 <record id="act_project_project_2_project_issue_all" model="ir.actions.act_window">
287 <field name="res_model">project.issue</field>
288 <field name="view_type">form</field>
289 <field name="name">Issues</field>
290 <field name="view_mode">kanban,tree,form,calendar,graph</field>
291 <field name="context">{
292 'search_default_project_id': [active_id],
293 'default_project_id': active_id,
296 <field name="help" type="html">
298 The OpenERP issues tacker allows you to efficiantly manage things
299 like internal requests, software development bugs, customer
300 complaints, project troubles, material breakdowns, etc.
306 <record id="view_project_form_inherited" model="ir.ui.view">
307 <field name="name">project.project.form.inherited</field>
308 <field name="model">project.project</field>
309 <field name="inherit_id" ref="project.edit_project"/>
310 <field name="arch" type="xml">
311 <xpath expr='//div[@name="options_active"]' position='inside'>
312 <field name="use_issues" class="oe_inline"/>
313 <label for="use_issues"/>
315 <xpath expr='//div[@name="buttons"]' position='inside'>
316 <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
318 <xpath expr='//page[@name="project_stages"]' position="attributes">
319 <attribute name="attrs">{'invisible': [('use_tasks', '=', False),('use_issues','=',False)]}</attribute>
321 <field name="priority" position="before">
322 <field name="project_escalation_id"/>
324 <xpath expr='//span[@name="edit_alias"]' position='replace'>
325 <span class="oe_edit_only" name="edit_alias">
326 <field name="alias_name" class="oe_inline" attrs="{'required': [('alias_id', '!=', False)]}"/>
328 <field class="oe_inline" name="alias_domain"/>
329 <span class="oe_inline"
330 attrs="{'invisible': ['|', ('use_issues', '!=', True), ('use_tasks', '!=', True)]}">
331 <label for="alias_model" string="creates"/>
332 <field name="alias_model" class="oe_inline"/>
339 <record id="view_project_kanban_inherited" model="ir.ui.view">
340 <field name="name">project.project.kanban.inherited</field>
341 <field name="model">project.project</field>
342 <field name="inherit_id" ref="project.view_project_kanban"/>
343 <field name="arch" type="xml">
344 <field name="use_tasks" position="after">
345 <field name="use_issues"/>
346 <field name="issue_count" invisible="1"/>
348 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
349 <a t-if="record.use_issues.raw_value" style="margin-right: 10px"
350 name="%(act_project_project_2_project_issue_all)d" type="action">
351 <span t-if="record.issue_count.raw_value gt 1"><field name="issue_count"/> Issues</span>
352 <span t-if="record.issue_count.raw_value lt 2"><field name="issue_count"/> Issue</span>
358 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
359 <field name="name">account.analytic.account.issue.form.inherit</field>
360 <field name="model">account.analytic.account</field>
361 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
362 <field eval="18" name="priority"/>
363 <field name="arch" type="xml">
364 <xpath expr='//div[@name="project"]' position='inside'>
365 <field name="use_issues"/>
366 <label for="use_issues"/>
371 <record id="action_view_issues" model="ir.actions.act_window">
372 <field name="res_model">project.issue</field>
373 <field name="view_type">form</field>
374 <field name="name">Issues</field>
375 <field name="view_mode">kanban,tree,form,calendar,graph</field>
376 <field name="help" type="html">
378 The OpenERP issues tacker allows you to efficiantly manage things
379 like internal requests, software development bugs, customer
380 complaints, project troubles, material breakdowns, etc.
386 <record model="ir.ui.view" id="res_partner_issues_button_view">
387 <field name="name">res.partner.issues.button.view</field>
388 <field name="model">res.partner</field>
389 <field name="inherit_id" ref="base.view_partner_form" />
390 <field name="priority" eval="50"/>
391 <field name="arch" type="xml">
392 <xpath expr="//div[@name='buttons']" position="inside">
393 <button class="oe_inline" type="action" string="Issues"
394 attrs="{'invisible': [('customer', '=', False)]}"
395 name="%(action_view_issues)d"
396 context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}"
397 groups="project.group_project_user"/>