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 <field name="stage_id" widget="statusbar" clickable="True"
52 options="{'fold_field': 'fold'}"/>
54 <sheet string="Issue">
55 <div class="oe_right">
56 <field name="kanban_state" class="oe_inline" widget="kanban_state_selection"/>
58 <label for="name" class="oe_edit_only"/>
60 <field name="name" class="oe_inline"/>
62 <label for="categ_ids" class="oe_edit_only"/>
63 <field name="categ_ids" widget="many2many_tags"/>
67 context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'project.group_project_user']}"/>
68 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
69 <field name="email_from"/>
70 <label for="project_id"/>
72 <field name="project_id" on_change="on_change_project(project_id)" class="oe_inline" context="{'default_use_issues':1}"/>
73 <button name="case_escalate" string="⇒ Escalate" type="object" class="oe_link"
74 groups="base.group_user"/>
79 <field name="version_id" groups="base.group_user"/>
80 <field name="priority" groups="base.group_user" widget="priority"/>
81 <label for="task_id" groups="base.group_user"/>
82 <div groups="base.group_user">
83 <field name="task_id" on_change="onchange_task_id(task_id)" class="oe_inline" context="{'default_project_id':project_id}"/>
84 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}" class="oe_inline"/>
89 <page string="Description">
90 <field name="description" placeholder="Add an internal note..." groups="base.group_user"/>
92 <page string="Extra Info" groups="project.group_project_manager,project.group_project_user">
93 <group string="Statistics">
94 <field name="day_open"/>
95 <field name="day_close"/>
96 <field name="working_hours_open" widget="float_time"/>
97 <field name="working_hours_close" widget="float_time"/>
98 <field name="inactivity_days"/>
99 <field name="days_since_creation"/>
101 <group string="Status" groups="base.group_no_one">
102 <field name="active"/>
107 <div class="oe_chatter">
108 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
109 <field name="message_ids" widget="mail_thread"/>
115 <record model="ir.ui.view" id="project_issue_tree_view">
116 <field name="name">Project Issue Tracker Tree</field>
117 <field name="model">project.issue</field>
118 <field name="arch" type="xml">
119 <tree string="Issue Tracker Tree" fonts="bold:message_unread==True">
120 <field name="message_unread" invisible="1"/>
123 <field name="partner_id"/>
124 <field name="project_id"/>
125 <field name="priority" string="Priority" groups="base.group_user"/>
126 <field name="create_date"/>
127 <field name="version_id" widget="selection"/>
128 <field name="user_id"/>
129 <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
130 <field name="stage_id" widget="selection" readonly="1"/>
131 <field name="categ_ids" invisible="1"/>
132 <field name="task_id" invisible="1"/>
137 <record id="view_project_issue_filter" model="ir.ui.view">
138 <field name="name">Project Issue Tracker Search</field>
139 <field name="model">project.issue</field>
140 <field name="arch" type="xml">
141 <search string="Issue Tracker Search">
142 <field name="name" string="Issue" filter_domain="['|', '|', '|', ('partner_id','child_of',self), ('description','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/>
144 <field name="partner_id" operator="child_of"/>
145 <filter string="Unassigned" name="unassigned" domain="[('user_id', '=', False)]"/>
146 <filter string="New" name="draft" domain="[('stage_id.sequence', '=', 1)]"/>
148 <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
150 <field name="user_id"/>
151 <field name="project_id"/>
152 <field name="categ_ids"/>
153 <field name="stage_id" domain="[]"/>
154 <group expand="0" string="Group By..." >
155 <filter string="Responsible" name="group_user_id" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
156 <filter string="Contact" name="group_partner_id" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
157 <filter string="Project" name="group_project_id" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
158 <filter string="Version" name="group_version" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'version_id'}"/>
159 <filter string="Priority" name="group_priority" icon="terp-rating-rated" domain="[]" context="{'group_by':'priority'}"/>
160 <filter string="Stage" name="group_stage_id" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
161 <filter string="Creation Month" name="group_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
162 <filter string="Last Post (weekly)" name="group_message_last_post" domain="[]" context="{'group_by':'message_last_post:week'}"/>
168 <record model="ir.ui.view" id="project_issue_calendar_view">
169 <field name="name">Project Issue Tracker Calendar</field>
170 <field name="model">project.issue</field>
171 <field name="priority" eval="2"/>
172 <field name="arch" type="xml">
173 <calendar string="Issues" date_start="date" color="user_id" date_delay="duration">
175 <field name="partner_id"/>
181 <!-- Project Issue Karban View-->
183 <record model="ir.ui.view" id="project_issue_kanban_view">
184 <field name="name">Project Issue Kanban</field>
185 <field name="model">project.issue</field>
186 <field name="arch" type="xml">
187 <kanban default_group_by="stage_id">
188 <field name="stage_id"/>
189 <field name="color"/>
190 <field name="priority"/>
191 <field name="user_email"/>
192 <field name="user_id"/>
193 <field name="date_deadline"/>
194 <field name="kanban_state"/>
195 <field name="message_summary"/>
197 <t t-name="kanban-tooltip">
198 <ul class="oe_kanban_tooltip">
199 <li><b>Project:</b> <field name="project_id"/></li>
200 <li><b>Category:</b> <field name="categ_ids"/></li>
203 <t t-name="kanban-box">
204 <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_semantic_html_override">
205 <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
206 <span class="oe_e">i</span>
207 <ul class="oe_dropdown_menu">
208 <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
209 <t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
210 <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
213 <div class="oe_kanban_content" tooltip="kanban-tooltip">
215 <b><field name="name"/></b> <br/>
216 <field name="partner_id"/> <br/>
217 <field name="version_id"/>
219 <div class="oe_kanban_bottom_right">
220 <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 pull-right"/>
221 <div class="pull-left" groups="base.group_user">
222 <field name="kanban_state" widget="kanban_state_selection"/>
223 <field name="priority" widget="priority"/>
226 <div class="oe_kanban_footer_left">
227 <field name="categ_ids"/>
228 <t t-raw="record.message_summary.raw_value"/>
231 <div class="oe_clear"></div>
240 <!-- Feature Requests -->
241 <record model="ir.ui.view" id="project_feature_tree_view">
242 <field name="name">Project Issue- Feature Tracker Tree</field>
243 <field name="model">project.issue</field>
244 <field name="arch" type="xml">
245 <tree string="Feature Tracker Tree" fonts="bold:message_unread==True">
247 <field name="message_unread" invisible="1"/>
248 <field name="name" string="Feature description"/>
249 <field name="partner_id"/>
250 <field name="priority" string="Priority"/>
251 <field name="version_id"/>
252 <field name="user_id"/>
253 <field name="stage_id" widget="selection" readonly="1"/>
258 <record id="act_project_project_2_project_issue_all" model="ir.actions.act_window">
259 <field name="res_model">project.issue</field>
260 <field name="view_type">form</field>
261 <field name="name">Issues</field>
262 <field name="view_mode">kanban,tree,form,calendar,graph</field>
263 <field name="context">{
264 'search_default_project_id': [active_id],
265 'default_project_id': active_id,
268 <field name="help" type="html">
270 The OpenERP issues tacker allows you to efficiantly manage things
271 like internal requests, software development bugs, customer
272 complaints, project troubles, material breakdowns, etc.
278 <record id="view_project_form_inherited" model="ir.ui.view">
279 <field name="name">project.project.form.inherited</field>
280 <field name="model">project.project</field>
281 <field name="inherit_id" ref="project.edit_project"/>
282 <field name="arch" type="xml">
283 <xpath expr='//div[@name="options_active"]' position='inside'>
284 <field name="use_issues" class="oe_inline"
285 on_change="on_change_use_tasks_or_issues(use_tasks, use_issues)"/>
286 <label for="use_issues"/>
288 <xpath expr='//div[@name="buttons"]' position='inside'>
289 <button class="oe_inline oe_stat_button" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"
290 name="%(act_project_project_2_project_issue_all)d" icon="fa-bug">
291 <field string="Issues" name="issue_count" widget="statinfo"/>
294 <xpath expr='//page[@name="project_stages"]' position="attributes">
295 <attribute name="attrs">{'invisible': [('use_tasks', '=', False),('use_issues','=',False)]}</attribute>
297 <xpath expr='//field[@name="use_tasks"]' position="attributes">
298 <attribute name="attrs">{'on_change': 'on_change_use_tasks_or_issues(use_tasks, use_issues)'}</attribute>
300 <field name="sequence" position="before">
301 <field name="project_escalation_id"/>
306 <record id="view_project_kanban_inherited" model="ir.ui.view">
307 <field name="name">project.project.kanban.inherited</field>
308 <field name="model">project.project</field>
309 <field name="inherit_id" ref="project.view_project_kanban"/>
310 <field name="arch" type="xml">
311 <field name="use_tasks" position="after">
312 <field name="use_issues"/>
313 <field name="issue_ids" invisible="1"/>
315 <xpath expr="//div[contains(@class, 'oe_kanban_project_list')]" position="inside">
316 <a t-if="record.use_issues.raw_value" style="margin-right: 10px"
317 name="%(act_project_project_2_project_issue_all)d" type="action">
318 <t t-raw="record.issue_ids.raw_value.length"/>
319 <span t-if="record.issue_ids.raw_value.length == 1">Issue</span>
320 <span t-if="record.issue_ids.raw_value.length > 1">Issues</span>
326 <record id="analytic_account_inherited_issue_form" model="ir.ui.view">
327 <field name="name">account.analytic.account.issue.form.inherit</field>
328 <field name="model">account.analytic.account</field>
329 <field name="inherit_id" ref="project.analytic_account_inherited_form"/>
330 <field eval="18" name="priority"/>
331 <field name="arch" type="xml">
332 <xpath expr='//div[@name="project"]' position='inside'>
333 <field name="use_issues"/>
334 <label for="use_issues"/>
339 <record id="action_view_issues" model="ir.actions.act_window">
340 <field name="res_model">project.issue</field>
341 <field name="view_type">form</field>
342 <field name="name">Issues</field>
343 <field name="view_mode">kanban,tree,form,calendar,graph</field>
344 <field name="help" type="html">
346 The OpenERP issues tacker allows you to efficiantly manage things
347 like internal requests, software development bugs, customer
348 complaints, project troubles, material breakdowns, etc.
354 <record model="ir.ui.view" id="res_partner_issues_button_view">
355 <field name="name">res.partner.issues.button.view</field>
356 <field name="model">res.partner</field>
357 <field name="inherit_id" ref="base.view_partner_form" />
358 <field name="priority" eval="50"/>
359 <field name="arch" type="xml">
360 <xpath expr="//div[@name='buttons']" position="inside">
361 <button class="oe_inline oe_stat_button" type="action" name="%(action_view_issues)d"
362 context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}"
363 attrs="{'invisible': [('customer', '=', False)]}"
364 icon="fa-bug" groups="project.group_project_user">
365 <field string="Issues" name="issue_count" widget="statinfo"/>