| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<!-- Base search view, contains the fields and filters common to project, project sharing and fsm --> |
| 4 |
<record id="view_task_search_form_base" model="ir.ui.view"> |
| 5 |
<field name="name">project.task.search.form</field> |
| 6 |
<field name="model">project.task</field> |
| 7 |
<field name="priority">999</field> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<search string="Tasks"> |
| 10 |
<field name="name" string="Tasks" filter_domain="[('name', 'ilike', self)]"/> |
| 11 |
<field name="tag_ids"/> |
| 12 |
<field name="stage_id"/> |
| 13 |
<field name="milestone_id" groups="project.group_project_milestone" invisible="not context.get('allow_milestones', True)"/> |
| 14 |
<field name="partner_id" operator="child_of" invisible="context.get('template_project')"/> |
| 15 |
<filter string="Unassigned" name="unassigned" domain="[('user_ids', '=', False)]"/> |
| 16 |
<separator invisible="context.get('default_project_id')"/> |
| 17 |
<filter string="Favorite Projects" name="favorite_projects" domain="[('project_id.is_favorite', '=', True)]" invisible="context.get('default_project_id')"/> |
| 18 |
<separator groups="project.group_project_task_dependencies" invisible="not context.get('allow_task_dependencies', True)"/> |
| 19 |
<filter string="Blocking" name="blocking" domain="[('is_closed', '=', False), ('dependent_ids', '!=', False)]" groups="project.group_project_task_dependencies" invisible="not context.get('allow_task_dependencies', True)"/> |
| 20 |
<separator/> |
| 21 |
<filter string="Creation Date" name="creation_date_filter" date="create_date"/> |
| 22 |
<separator/> |
| 23 |
<filter string="Open" name="open_tasks" domain="[('is_closed', '=', False)]"/> |
| 24 |
<filter string="Closed" name="closed_tasks" domain="[('is_closed', '=', True)]"/> |
| 25 |
<filter string="Closed On" name="closed_on" domain="[('is_closed', '=', True)]" date="date_last_stage_update" |
| 26 |
invisible="context.get('template_project')"> |
| 27 |
<filter name="create_date_last_30_days" string="Last 30 Days" domain="[('date_last_stage_update', '>=', 'today -30d +1d')]"/> |
| 28 |
<filter name="create_date_last_365_days" string="Last 365 Days" domain="[('date_last_stage_update', '>=', 'today -365d +1d')]"/> |
| 29 |
</filter> |
| 30 |
<separator/> |
| 31 |
<filter string="Templates" context="{'render_task_templates': True}" name="templates" domain="[('has_template_ancestor', '=', True)]"/> |
| 32 |
<group> |
| 33 |
<filter string="Stage" name="stage" context="{'group_by': 'stage_id'}"/> |
| 34 |
<filter string="Milestone" name="milestone" context="{'group_by': 'milestone_id'}" groups="project.group_project_milestone" invisible="not context.get('allow_milestones', True)"/> |
| 35 |
<filter string="Priority" name="groupby_priority" context="{'group_by': 'priority'}"/> |
| 36 |
<filter string="Tags" name="tags" context="{'group_by': 'tag_ids'}"/> |
| 37 |
<filter string="Customer" name="customer" context="{'group_by': 'partner_id'}" |
| 38 |
invisible="context.get('template_project')"/> |
| 39 |
<filter string="Company" name="company_id" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/> |
| 40 |
<filter string="Creation Date" name="create_date" context="{'group_by': 'create_date'}"/> |
| 41 |
</group> |
| 42 |
</search> |
| 43 |
</field> |
| 44 |
</record> |
| 45 |
|
| 46 |
<!-- Contains the fields and filters common to projet and fsm --> |
| 47 |
<record id="view_task_search_form_project_fsm_base" model="ir.ui.view"> |
| 48 |
<field name="name">project.task.search.form.project.base</field> |
| 49 |
<field name="model">project.task</field> |
| 50 |
<field name="inherit_id" ref="view_task_search_form_base"/> |
| 51 |
<field name="mode">primary</field> |
| 52 |
<field name="priority">999</field> |
| 53 |
<field name="arch" type="xml"> |
| 54 |
<field name="stage_id" position="before"> |
| 55 |
<field name="user_ids" filter_domain="[('user_ids.name', 'ilike', self), ('user_ids.active', 'in', [True, False])]"/> |
| 56 |
</field> |
| 57 |
<field name="stage_id" position="after"> |
| 58 |
<field name="project_id" string="Project"/> |
| 59 |
</field> |
| 60 |
<field name="partner_id" position="after"> |
| 61 |
<field name="company_id" groups="base.group_multi_company" placeholder="Visible to all"/> |
| 62 |
<filter string="My Tasks" name="my_tasks" domain="[('user_ids', 'in', uid)]"/> |
| 63 |
</field> |
| 64 |
<filter name="stage" position="before"> |
| 65 |
<filter string="Assignees" name="user" context="{'group_by': 'user_ids'}"/> |
| 66 |
</filter> |
| 67 |
<filter name="stage" position="after"> |
| 68 |
<filter string="Project" name="project" context="{'group_by': 'project_id'}"/> |
| 69 |
</filter> |
| 70 |
</field> |
| 71 |
</record> |
| 72 |
|
| 73 |
<!-- Base search view for project only --> |
| 74 |
<record id="view_task_search_form_project_base" model="ir.ui.view"> |
| 75 |
<field name="name">project.task.search.form.project.base</field> |
| 76 |
<field name="model">project.task</field> |
| 77 |
<field name="inherit_id" ref="view_task_search_form_project_fsm_base"/> |
| 78 |
<field name="mode">primary</field> |
| 79 |
<field name="priority">999</field> |
| 80 |
<field name="arch" type="xml"> |
| 81 |
<filter name="creation_date_filter" position="after"> |
| 82 |
<field name="activity_user_id" string="Activities of"/> |
| 83 |
<field name="activity_type_id" string="Activity type"/> |
| 84 |
<filter string="Deadline" name="date_deadline" date="date_deadline"> |
| 85 |
<filter name="deadline_future" string="Future" domain="[('date_deadline', '>=', 'today +1d')]"/> |
| 86 |
<filter name="deadline_this_week" string="This Week" domain="[ |
| 87 |
('date_deadline', '>=', '=week_start'), |
| 88 |
('date_deadline', '<', '=week_start +1w'), |
| 89 |
]"/> |
| 90 |
<filter name="deadline_today" string="Today" domain="[ |
| 91 |
('date_deadline', '>=', 'today'), |
| 92 |
('date_deadline', '<', 'today +1d'), |
| 93 |
]"/> |
| 94 |
<filter name="deadline_past_due" string="Overdue" domain="[('date_deadline', '<', 'today')]"/> |
| 95 |
</filter> |
| 96 |
</filter> |
| 97 |
<filter name="create_date" position="after"> |
| 98 |
<filter string="Deadline" name="deadline" context="{'group_by': 'date_deadline'}"/> |
| 99 |
<separator/> |
| 100 |
<filter string="Properties" name="group_by_properties" context="{'group_by': 'task_properties'}"/> |
| 101 |
</filter> |
| 102 |
</field> |
| 103 |
</record> |
| 104 |
|
| 105 |
<record id="view_task_search_form" model="ir.ui.view"> |
| 106 |
<field name="name">project.task.search.form</field> |
| 107 |
<field name="model">project.task</field> |
| 108 |
<field name="inherit_id" ref="view_task_search_form_project_base"></field> |
| 109 |
<field name="mode">primary</field> |
| 110 |
<field name="priority">10</field> |
| 111 |
<field name="arch" type="xml"> |
| 112 |
<filter name="my_tasks" position="before"> |
| 113 |
<field string="Properties" name="task_properties"/> |
| 114 |
</filter> |
| 115 |
<filter name="open_tasks" position="after"> |
| 116 |
<filter string="Rotting" name="filter_rotting" domain="[('is_rotting', '=', True)]"/> |
| 117 |
</filter> |
| 118 |
<filter name="closed_on" position="after"> |
| 119 |
<separator/> |
| 120 |
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction', '=', True)]" groups="mail.group_mail_notification_type_inbox"/> |
| 121 |
<separator invisible="1"/> |
| 122 |
<filter invisible="1" string="My Activities" name="filter_activities_my" |
| 123 |
domain="[('activity_user_id', '=', uid)]"/> |
| 124 |
<separator invisible="1"/> |
| 125 |
<filter invisible="1" string="Late Activities" name="activities_overdue" |
| 126 |
domain="[('my_activity_date_deadline', '<', 'today')]" |
| 127 |
help="Show all records whose next activity date is past"/> |
| 128 |
<filter invisible="1" string="Today Activities" name="activities_today" |
| 129 |
domain="[('my_activity_date_deadline', '=', 'today')]"/> |
| 130 |
<filter invisible="1" string="Future Activities" name="activities_upcoming_all" |
| 131 |
domain="[('my_activity_date_deadline', '>', 'today')]"/> |
| 132 |
</filter> |
| 133 |
<filter name="unassigned" position="after"> |
| 134 |
<filter string="Private Tasks" name="private_tasks" domain="[('project_id', '=', False)]" invisible="context.get('default_project_id')"/> |
| 135 |
</filter> |
| 136 |
</field> |
| 137 |
</record> |
| 138 |
|
| 139 |
<record id="view_project_task_graph" model="ir.ui.view"> |
| 140 |
<field name="name">project.task.graph</field> |
| 141 |
<field name="model">project.task</field> |
| 142 |
<field name="arch" type="xml"> |
| 143 |
<graph string="Tasks" sample="1" js_class="project_task_graph"> |
| 144 |
<field name="project_id" invisible="context.get('default_project_id', False)"/> |
| 145 |
<field name="stage_id"/> |
| 146 |
<field name="working_hours_open" widget="float_time"/> |
| 147 |
<field name="working_hours_close" widget="float_time"/> |
| 148 |
<field name="color" invisible="1"/> |
| 149 |
<field name="sequence" invisible="1"/> |
| 150 |
<field name="stage_id_color" invisible="1"/> |
| 151 |
<field name="rating_last_value" string="Rating (/5)"/> |
| 152 |
</graph> |
| 153 |
</field> |
| 154 |
</record> |
| 155 |
|
| 156 |
<!-- Task graph view when viewing records of a single project --> |
| 157 |
<record id="view_project_task_graph_inherit" model="ir.ui.view"> |
| 158 |
<field name="name">project.task.graph.inherit</field> |
| 159 |
<field name="model">project.task</field> |
| 160 |
<field name="mode">primary</field> |
| 161 |
<field name="inherit_id" ref="project.view_project_task_graph"/> |
| 162 |
<field name="arch" type="xml"> |
| 163 |
<xpath expr="//field[@name='project_id']" position="attributes"> |
| 164 |
<attribute name="invisible">True</attribute> |
| 165 |
</xpath> |
| 166 |
<xpath expr="//field[@name='stage_id']" position="after"> |
| 167 |
<field name="user_ids"/> |
| 168 |
</xpath> |
| 169 |
</field> |
| 170 |
</record> |
| 171 |
|
| 172 |
|
| 173 |
<record id="view_project_task_pivot" model="ir.ui.view"> |
| 174 |
<field name="name">project.task.pivot</field> |
| 175 |
<field name="model">project.task</field> |
| 176 |
<field name="arch" type="xml"> |
| 177 |
<pivot string="Tasks" sample="1" js_class="project_task_pivot"> |
| 178 |
<field name="project_id" type="row"/> |
| 179 |
<field name="color" invisible="1"/> |
| 180 |
<field name="sequence" invisible="1"/> |
| 181 |
<field name="stage_id_color" invisible="1"/> |
| 182 |
<field name="allocated_hours" widget="float_time"/> |
| 183 |
<field name="working_hours_close" widget="float_time"/> |
| 184 |
<field name="working_hours_open" widget="float_time"/> |
| 185 |
</pivot> |
| 186 |
</field> |
| 187 |
</record> |
| 188 |
|
| 189 |
<record id="view_project_task_pivot_inherit" model="ir.ui.view"> |
| 190 |
<field name="name">project.task.pivot.inherit</field> |
| 191 |
<field name="model">project.task</field> |
| 192 |
<field name="mode">primary</field> |
| 193 |
<field name="inherit_id" ref="project.view_project_task_pivot"/> |
| 194 |
<field name="arch" type="xml"> |
| 195 |
<xpath expr="/pivot" position="inside"> |
| 196 |
<field name="user_ids" type="row"/> |
| 197 |
</xpath> |
| 198 |
<xpath expr="//field[@name='project_id']" position="after"> |
| 199 |
<field name="stage_id" type="col"/> |
| 200 |
</xpath> |
| 201 |
<xpath expr="//field[@name='project_id']" position="attributes"> |
| 202 |
<attribute name="invisible">True</attribute> |
| 203 |
</xpath> |
| 204 |
</field> |
| 205 |
</record> |
| 206 |
|
| 207 |
<record id="act_project_project_2_project_task_all" model="ir.actions.act_window"> |
| 208 |
<field name="name">Tasks</field> |
| 209 |
<field name="path">tasks</field> |
| 210 |
<field name="res_model">project.task</field> |
| 211 |
<field name="view_mode">kanban,list,form,calendar,pivot,graph,activity</field> |
| 212 |
<field name="domain">[('project_id', '=', active_id), ('has_template_ancestor', '=', False)]</field> |
| 213 |
<field name="context">{ |
| 214 |
'default_project_id': active_id, |
| 215 |
'show_project_update': True, |
| 216 |
'search_default_open_tasks': 1, |
| 217 |
}</field> |
| 218 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 219 |
<field name="help" type="html"> |
| 220 |
<p class="o_view_nocontent_smiling_face"> |
| 221 |
No tasks found. Let's create one! |
| 222 |
</p> |
| 223 |
<p> |
| 224 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 225 |
Collaborate efficiently by chatting in real-time or via email. |
| 226 |
</p> |
| 227 |
</field> |
| 228 |
</record> |
| 229 |
|
| 230 |
<record id="project_embedded_action_project_updates" model="ir.embedded.actions"> |
| 231 |
<field name="parent_res_model">project.project</field> |
| 232 |
<field name="sequence">110</field> |
| 233 |
<field name="name">Dashboard</field> |
| 234 |
<field name="parent_action_id" ref="project.act_project_project_2_project_task_all"/> |
| 235 |
<field name="action_id" ref="project.project_update_all_action"/> |
| 236 |
</record> |
| 237 |
|
| 238 |
<record id="project_embedded_action_all_tasks_dashboard" model="ir.embedded.actions"> |
| 239 |
<field name="parent_res_model">project.project</field> |
| 240 |
<field name="sequence">20</field> |
| 241 |
<field name="name">Tasks</field> |
| 242 |
<field name="parent_action_id" ref="project.project_update_all_action"/> |
| 243 |
<field name="action_id" ref="project.act_project_project_2_project_task_all"/> |
| 244 |
</record> |
| 245 |
|
| 246 |
<!-- Set pivot view and arrange in order --> |
| 247 |
<record id="project_task_kanban_action_view" model="ir.actions.act_window.view"> |
| 248 |
<field name="sequence" eval="10"/> |
| 249 |
<field name="view_mode">kanban</field> |
| 250 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 251 |
</record> |
| 252 |
|
| 253 |
<record id="project_task_tree_action_view" model="ir.actions.act_window.view"> |
| 254 |
<field name="sequence" eval="20"/> |
| 255 |
<field name="view_mode">list</field> |
| 256 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 257 |
</record> |
| 258 |
|
| 259 |
<record id="project_task_form_action_view" model="ir.actions.act_window.view"> |
| 260 |
<field name="sequence" eval="30"/> |
| 261 |
<field name="view_mode">form</field> |
| 262 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 263 |
</record> |
| 264 |
|
| 265 |
<record id="project_all_task_calendar_action_view" model="ir.actions.act_window.view"> |
| 266 |
<field name="sequence" eval="40"/> |
| 267 |
<field name="view_mode">calendar</field> |
| 268 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 269 |
</record> |
| 270 |
|
| 271 |
<record id="project_all_task_pivot_action_view" model="ir.actions.act_window.view"> |
| 272 |
<field name="sequence" eval="70"/> |
| 273 |
<field name="view_mode">pivot</field> |
| 274 |
<field name="view_id" ref="view_project_task_pivot_inherit"/> |
| 275 |
<field name="act_window_id" ref="act_project_project_2_project_task_all"/> |
| 276 |
</record> |
| 277 |
|
| 278 |
<record id="project_all_task_graph_action_view" model="ir.actions.act_window.view"> |
| 279 |
<field name="sequence" eval="80"/> |
| 280 |
<field name="view_mode">graph</field> |
| 281 |
<field name="view_id" ref="view_project_task_graph_inherit"/> |
| 282 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 283 |
</record> |
| 284 |
|
| 285 |
<record id="project_all_task_activity_action_view" model="ir.actions.act_window.view"> |
| 286 |
<field name="sequence" eval="65"/> |
| 287 |
<field name="view_mode">activity</field> |
| 288 |
<field name="act_window_id" ref="project.act_project_project_2_project_task_all"/> |
| 289 |
</record> |
| 290 |
|
| 291 |
<record id="project_task_action_sub_task" model="ir.actions.act_window"> |
| 292 |
<field name="name">Sub-tasks</field> |
| 293 |
<field name="res_model">project.task</field> |
| 294 |
<field name="view_mode">list,kanban,form,calendar,pivot,graph,activity</field> |
| 295 |
<field name="search_view_id" ref="project.view_task_search_form"/> |
| 296 |
<field name="domain">[('id', 'child_of', active_id), ('id', '!=', active_id)]</field> |
| 297 |
<field name="context">{'show_project_update': False, 'default_parent_id': active_id}</field> |
| 298 |
<field name="help" type="html"> |
| 299 |
<p class="o_view_nocontent_smiling_face"> |
| 300 |
No tasks found. Let's create one! |
| 301 |
</p> |
| 302 |
<p> |
| 303 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 304 |
Collaborate efficiently by chatting in real-time or via email. |
| 305 |
</p> |
| 306 |
</field> |
| 307 |
</record> |
| 308 |
|
| 309 |
<record id="action_send_mail_project_task" model="ir.actions.act_window"> |
| 310 |
<field name="name">Send Email</field> |
| 311 |
<field name="res_model">mail.compose.message</field> |
| 312 |
<field name="view_mode">form</field> |
| 313 |
<field name="group_ids" eval="[(4,ref('project.group_project_manager'))]"/> |
| 314 |
<field name="target">new</field> |
| 315 |
<field name="context">{ |
| 316 |
'default_composition_mode': 'mass_mail', |
| 317 |
}</field> |
| 318 |
<field name="binding_model_id" ref="project.model_project_task"/> |
| 319 |
<field name="binding_view_types">list,kanban</field> |
| 320 |
</record> |
| 321 |
|
| 322 |
<record id="view_task_form2" model="ir.ui.view"> |
| 323 |
<field name="name">project.task.form</field> |
| 324 |
<field name="model">project.task</field> |
| 325 |
<field eval="2" name="priority"/> |
| 326 |
<field name="arch" type="xml"> |
| 327 |
<form string="Task" class="o_form_project_tasks" js_class="project_task_form"> |
| 328 |
<field name="recurrence_id" invisible="1" /> |
| 329 |
<field name="allow_task_dependencies" invisible="1" /> |
| 330 |
<field name="rating_last_value" invisible="1"/> |
| 331 |
<field name="rating_count" invisible="1"/> |
| 332 |
<field name="allow_milestones" invisible="1" /> |
| 333 |
<field name="parent_id" invisible="1"/> |
| 334 |
<field name="company_id" invisible="1"/> |
| 335 |
<field name="is_closed" invisible="1"/> |
| 336 |
<field name="depend_on_count" invisible="1"/> |
| 337 |
<field name="closed_depend_on_count" invisible="1"/> |
| 338 |
<field name="html_field_history_metadata" invisible="1"/> |
| 339 |
<field name="is_template" invisible="1"/> |
| 340 |
<field name="is_rotting" invisible="1"/> |
| 341 |
<field name="rotting_days" invisible="1"/> |
| 342 |
<header> |
| 343 |
<field name="stage_id" widget="rotting_statusbar_duration" options="{'clickable': '1', 'fold_field': 'fold'}" invisible="not project_id and not stage_id"/> |
| 344 |
<field name="state" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" invisible="1"/> |
| 345 |
<field name="personal_stage_type_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" invisible="project_id" domain="[('user_id', '=', uid)]" string="Personal Stage"/> |
| 346 |
</header> |
| 347 |
<!-- Used in inherited views to display the eventual warnings --> |
| 348 |
<t name="warning_section"/> |
| 349 |
<sheet string="Task"> |
| 350 |
<div class="oe_button_box" name="button_box" groups="base.group_user"> |
| 351 |
<!-- Dummy tag for organizing buttons, using position='replace' when inheriting --> |
| 352 |
<span id="button_products" invisible="1"/> |
| 353 |
<span id="button_worksheet" invisible="1"/> |
| 354 |
<!-- Dummy tag used to organize buttons, englobing the 3 buttons modifies the width of the button --> |
| 355 |
<span id="start_rating_buttons" invisible="1"/> |
| 356 |
<field name="rating_avg" invisible="1"/> |
| 357 |
<field name="rating_active" invisible="1"/> |
| 358 |
<button name="action_open_ratings" type="object" invisible="rating_count == 0 or not rating_active or has_template_ancestor or has_project_template" class="oe_stat_button"> |
| 359 |
<i class="fa fa-fw o_button_icon fa-smile-o text-success" invisible="rating_avg < 3.66" title="Happy"/> |
| 360 |
<i class="fa fa-fw o_button_icon fa-meh-o text-warning" invisible="rating_avg < 2.33 or rating_avg >= 3.66" title="Neutral"/> |
| 361 |
<i class="fa fa-fw o_button_icon fa-frown-o text-danger" invisible="rating_avg >= 2.33" title="Unhappy"/> |
| 362 |
<div class="o_field_widget o_stat_info"> |
| 363 |
<span class="o_stat_value"><field name="rating_avg_text" nolabel="1"/></span> |
| 364 |
<span class="o_stat_text">Last Rating</span> |
| 365 |
</div> |
| 366 |
</button> |
| 367 |
<!-- Dummy tag used to organize buttons --> |
| 368 |
<span id="end_rating_buttons" invisible="1"/> |
| 369 |
<button name="action_open_parent_task" type="object" class="oe_stat_button" icon="fa-check" invisible="not parent_id"> |
| 370 |
<div class="o_stat_info"> |
| 371 |
<span class="o_stat_text">Parent Task</span> |
| 372 |
</div> |
| 373 |
</button> |
| 374 |
<button name="action_recurring_tasks" type="object" invisible="not active or not recurrence_id or not allow_recurring_tasks" class="oe_stat_button" icon="fa-repeat" groups="project.group_project_recurring_tasks"> |
| 375 |
<field name="recurring_count" widget="statinfo" string="Recurring Tasks"/> |
| 376 |
</button> |
| 377 |
<button name="%(project_task_action_sub_task)d" type="action" class="oe_stat_button" icon="fa-check" |
| 378 |
invisible="not id or subtask_count == 0" |
| 379 |
context="{ |
| 380 |
'default_project_id': project_id, |
| 381 |
'default_user_ids': user_ids, |
| 382 |
'default_milestone_id': milestone_id, |
| 383 |
'subtask_action': True, |
| 384 |
'default_is_template': is_template, |
| 385 |
}" |
| 386 |
> |
| 387 |
<div class="o_field_widget o_stat_info"> |
| 388 |
<span class="o_stat_text">Sub-tasks</span> |
| 389 |
<span class="o_stat_value"> |
| 390 |
<field name="closed_subtask_count"/> / <field name="subtask_count"/> |
| 391 |
(<field name="subtask_completion_percentage" widget="percentage" options="{'digits': [1, 0]}"/>) |
| 392 |
</span> |
| 393 |
</div> |
| 394 |
</button> |
| 395 |
<button name="action_dependent_tasks" type="object" invisible="dependent_tasks_count == 0 or not allow_task_dependencies" class="oe_stat_button" icon="fa-check" groups="project.group_project_task_dependencies"> |
| 396 |
<field name="dependent_tasks_count" widget="statinfo" string="Blocked Tasks" /> |
| 397 |
</button> |
| 398 |
<!-- Dummy tag used to organize buttons --> |
| 399 |
<span id="end_button_box" invisible="1"/> |
| 400 |
</div> |
| 401 |
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active or is_template"/> |
| 402 |
<widget name="web_ribbon" title="Template" bg_color="text-bg-info" invisible="not is_template"/> |
| 403 |
<div class="d-flex justify-content-between align-items-center"> |
| 404 |
<h1 class="d-flex w-100"> |
| 405 |
<field name="name" options="{'line_breaks': False}" widget="text" class="o_task_name text-truncate w-md-75 w-100 pe-2" placeholder="Task Title..."/> |
| 406 |
</h1> |
| 407 |
<div class="d-flex justify-content-end align-items-center px-1" invisible="not active or is_template or has_project_template"> |
| 408 |
<field name="priority" class="h3 pe-2" widget="priority_switch"/> |
| 409 |
</div> |
| 410 |
<div class="d-flex justify-content-end o_state_container" invisible="not active or is_template or has_project_template"> |
| 411 |
<field name="state" widget="project_task_state_selection" class="o_task_state_widget" /> |
| 412 |
</div> |
| 413 |
<div class="d-flex justify-content-start align-items-center w-100 w-md-50 w-lg-25" invisible="active and not (is_template or has_project_template)"> |
| 414 |
<field name="priority" class="h3 pe-2" widget="priority_switch"/> |
| 415 |
<field name="state" widget="project_task_state_selection" class="o_task_state_widget" /> |
| 416 |
</div> |
| 417 |
</div> |
| 418 |
<group> |
| 419 |
<group> |
| 420 |
<field name="project_id" |
| 421 |
domain="[('active', '=', True), '|', ('company_id', '=', False), ('company_id', '=?', company_id)]" |
| 422 |
required="parent_id or child_ids or is_template" |
| 423 |
widget="project"/> |
| 424 |
<field name="milestone_id" |
| 425 |
placeholder="e.g. Product Launch" |
| 426 |
context="{'default_project_id': project_id}" |
| 427 |
invisible="not project_id or not allow_milestones"/> |
| 428 |
<field name="user_ids" |
| 429 |
class="o_task_user_field" |
| 430 |
options="{'no_open': True}" |
| 431 |
widget="many2many_avatar_user"/> |
| 432 |
<field name="role_ids" invisible="not has_project_template or is_template" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" placeholder="Assign at project creation"/> |
| 433 |
</group> |
| 434 |
<group> |
| 435 |
<field name="active" invisible="1"/> |
| 436 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" context="{'project_id': project_id}"/> |
| 437 |
<field name="partner_id" nolabel="0" widget="res_partner_many2one" class="o_task_customer_field" invisible="not project_id or has_template_ancestor or has_project_template"/> |
| 438 |
<label for="date_deadline"/> |
| 439 |
<div id="date_deadline_and_recurring_task" class="d-inline-flex w-100"> |
| 440 |
<field name="date_deadline" nolabel="1" decoration-danger="date_deadline and date_deadline < current_date and state not in ['1_done', '1_canceled']"/> |
| 441 |
<field name="recurring_task" nolabel="1" class="ms-0" style="width: fit-content;" |
| 442 |
widget="boolean_icon" options="{'icon': 'fa-repeat'}" |
| 443 |
invisible="not active or parent_id or not allow_recurring_tasks" |
| 444 |
groups="project.group_project_recurring_tasks"/> |
| 445 |
</div> |
| 446 |
<label for="repeat_interval" groups="project.group_project_recurring_tasks" invisible="not recurring_task or not allow_recurring_tasks"/> |
| 447 |
<div invisible="not recurring_task or not allow_recurring_tasks" class="d-flex" groups="project.group_project_recurring_tasks" name="repeat_intervals"> |
| 448 |
<field name="repeat_interval" required="recurring_task" |
| 449 |
class="me-2" style="max-width: 2rem !important;" /> |
| 450 |
<field name="repeat_unit" required="recurring_task" |
| 451 |
class="me-2" style="max-width: 4rem !important;" /> |
| 452 |
<field name="repeat_type" required="recurring_task" |
| 453 |
class="me-2" style="max-width: 15rem !important;" /> |
| 454 |
<field name="repeat_until" invisible="repeat_type != 'until'" required="repeat_type == 'until'" |
| 455 |
class="me-2" /> |
| 456 |
</div> |
| 457 |
<!-- Field needed to trigger its compute in project_enterprise, but will be replaced in an override defined in hr_timesheet module --> |
| 458 |
<field name="allocated_hours" invisible="1"/> |
| 459 |
</group> |
| 460 |
</group> |
| 461 |
<field name="task_properties" columns="2"/> |
| 462 |
<notebook> |
| 463 |
<page name="description_page" string="Description"> |
| 464 |
<field name="description" type="html" options="{'collaborative': true, 'resizable': false}" placeholder="Add details about this task..."/> |
| 465 |
</page> |
| 466 |
<page name="sub_tasks_page" string="Sub-tasks" invisible="not project_id"> |
| 467 |
<field name="child_ids" |
| 468 |
mode="list,kanban" |
| 469 |
context="{ |
| 470 |
'default_project_id': project_id, |
| 471 |
'default_user_ids': user_ids, |
| 472 |
'default_parent_id': id, |
| 473 |
'default_partner_id': partner_id, |
| 474 |
'default_milestone_id': allow_milestones and milestone_id, |
| 475 |
'kanban_view_ref': 'project.project_sub_task_view_kanban_mobile', |
| 476 |
'closed_X2M_count': closed_subtask_count, |
| 477 |
'default_is_template': is_template, |
| 478 |
'default_tag_ids': tag_ids, |
| 479 |
}" |
| 480 |
widget="subtasks_one2many"> |
| 481 |
<list editable="bottom" decoration-muted="state in ['1_done','1_canceled']" open_form_view="True"> |
| 482 |
<field name="active" column_invisible="True"/> |
| 483 |
<field name="is_template" column_invisible="True"/> |
| 484 |
<field name="allow_milestones" column_invisible="True"/> |
| 485 |
<field name="display_in_project" column_invisible="True" force_save="1"/> |
| 486 |
<field name="sequence" widget="handle"/> |
| 487 |
<field name="id" optional="hide" options="{'enable_formatting': False}"/> |
| 488 |
<field name="parent_id" column_invisible="True"/> |
| 489 |
<field name="state" widget="project_task_state_selection" nolabel="1" width="20px"/> |
| 490 |
<field name="name" widget="name_with_subtask_count"/> |
| 491 |
<field name="subtask_count" column_invisible="True"/> |
| 492 |
<field name="closed_subtask_count" column_invisible="True"/> |
| 493 |
<field name="project_id" string="Project" optional="hide" required="1" options="{'no_open': 1}" widget="project"/> |
| 494 |
<field name="milestone_id" |
| 495 |
optional="hide" |
| 496 |
context="{'default_project_id': project_id}" |
| 497 |
column_invisible="not parent.allow_milestones" |
| 498 |
invisible="not allow_milestones"/> |
| 499 |
<field name="partner_id" optional="hide" widget="res_partner_many2one" invisible="not project_id" column_invisible="parent.has_template_ancestor or parent.has_project_template"/> |
| 500 |
<field name="user_ids" widget="many2many_avatar_user" optional="show"/> |
| 501 |
<field name="company_id" groups="base.group_multi_company" optional="hide"/> |
| 502 |
<field name="company_id" column_invisible="True"/> |
| 503 |
<field name="date_deadline" invisible="state in ['1_done', '1_canceled']" optional="hide" decoration-danger="date_deadline and date_deadline < current_date"/> |
| 504 |
<field name="priority" widget="priority" optional="hide" width="70px"/> |
| 505 |
<field name="activity_ids" string="Next Activity" widget="list_activity" optional="hide"/> |
| 506 |
<field name="my_activity_date_deadline" string="My Deadline" widget="remaining_days" options="{'allow_order': '1'}" optional="hide"/> |
| 507 |
<field name="rating_last_text" string="Rating" decoration-danger="rating_last_text == 'ko'" |
| 508 |
decoration-warning="rating_last_text == 'ok'" decoration-success="rating_last_text == 'top'" |
| 509 |
class="fw-bold" widget="badge" optional="hide" invisible="rating_last_text == 'none'" column_invisible="True"/> |
| 510 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="hide"/> |
| 511 |
<field name="create_date" optional="hide"/> |
| 512 |
<field name="stage_id" optional="hide" context="{'default_project_id': project_id}"/> |
| 513 |
</list> |
| 514 |
</field> |
| 515 |
</page> |
| 516 |
<page name="task_dependencies" string="Blocked By" invisible="not allow_task_dependencies" groups="project.group_project_task_dependencies"> |
| 517 |
<field name="depend_on_ids" |
| 518 |
nolabel="1" |
| 519 |
mode="list,kanban" |
| 520 |
context="{ |
| 521 |
'default_project_id': project_id, |
| 522 |
'search_view_ref' : 'project.view_task_search_form', |
| 523 |
'search_default_project_id': project_id, |
| 524 |
'list_view_ref': 'project.open_view_all_tasks_list_view', |
| 525 |
'search_default_open_tasks': 1, |
| 526 |
'kanban_view_ref': 'project.project_sub_task_view_kanban_mobile', |
| 527 |
'closed_X2M_count': closed_depend_on_count, |
| 528 |
'default_is_template': is_template, |
| 529 |
}" |
| 530 |
widget="notebook_task_one2many"> |
| 531 |
<list editable="bottom" decoration-muted="state in ['1_done','1_canceled']" open_form_view="True"> |
| 532 |
<field name="allow_milestones" column_invisible="True"/> |
| 533 |
<field name="parent_id" column_invisible="True" /> |
| 534 |
<field name="subtask_count" column_invisible="True"/> |
| 535 |
<field name="closed_subtask_count" column_invisible="True"/> |
| 536 |
<field name="id" optional="hide" options="{'enable_formatting': False}"/> |
| 537 |
<field name="state" widget="project_task_state_selection" nolabel="1" width="20px"/> |
| 538 |
<field name="name" widget="name_with_subtask_count"/> |
| 539 |
<field name="project_id" optional="hide" options="{'no_open': 1}" /> |
| 540 |
<field name="milestone_id" |
| 541 |
optional="hide" |
| 542 |
context="{'default_project_id': project_id}" |
| 543 |
column_invisible="not parent.allow_milestones" |
| 544 |
invisible="not allow_milestones"/> |
| 545 |
<field name="partner_id" optional="hide" widget="res_partner_many2one" invisible="not project_id" column_invisible="parent.has_template_ancestor or parent.has_project_template"/> |
| 546 |
<field name="parent_id" optional="hide" groups="base.group_no_one"/> |
| 547 |
<field name="user_ids" widget="many2many_avatar_user" optional="show"/> |
| 548 |
<field name="company_id" optional="hide" groups="base.group_multi_company" /> |
| 549 |
<field name="company_id" column_invisible="True"/> |
| 550 |
<field name="date_deadline" invisible="state in ['1_done', '1_canceled']" optional="hide" decoration-danger="date_deadline and date_deadline < current_date"/> |
| 551 |
<field name="priority" widget="priority" optional="hide" width="70px"/> |
| 552 |
<field name="activity_ids" string="Next Activity" widget="list_activity" optional="hide"/> |
| 553 |
<field name="my_activity_date_deadline" string="My Deadline" widget="remaining_days" options="{'allow_order': '1'}" optional="hide"/> |
| 554 |
<field name="rating_last_text" string="Rating" decoration-danger="rating_last_text == 'ko'" |
| 555 |
decoration-warning="rating_last_text == 'ok'" decoration-success="rating_last_text == 'top'" |
| 556 |
class="fw-bold" widget="badge" optional="hide" invisible="rating_last_text == 'none'" column_invisible="True"/> |
| 557 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="hide"/> |
| 558 |
<field name="create_date" optional="hide"/> |
| 559 |
<field name="stage_id" optional="hide"/> |
| 560 |
</list> |
| 561 |
</field> |
| 562 |
</page> |
| 563 |
<page name="extra_info" string="Extra Info" groups="base.group_no_one"> |
| 564 |
<group> |
| 565 |
<group> |
| 566 |
<field name="parent_id" invisible="not project_id" groups="base.group_no_one" context="{'search_view_ref' : 'project.view_task_search_form', 'search_default_project_id': project_id, 'default_project_id': project_id}"/> |
| 567 |
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" placeholder="Visible to all"/> |
| 568 |
<field name="sequence" groups="base.group_no_one"/> |
| 569 |
<field name="email_cc" groups="base.group_no_one" invisible="is_template or has_project_template"/> |
| 570 |
</group> |
| 571 |
<group invisible="is_template or has_project_template"> |
| 572 |
<field name="date_assign" groups="base.group_no_one"/> |
| 573 |
<field name="date_last_stage_update" groups="base.group_no_one"/> |
| 574 |
</group> |
| 575 |
<group string="Working Time to Assign" invisible="working_hours_open == 0.0"> |
| 576 |
<field name="working_hours_open" widget="float_time" string="Hours"/> |
| 577 |
<field name="working_days_open" string="Days"/> |
| 578 |
</group> |
| 579 |
<group string="Working Time to Close" invisible="working_hours_close == 0.0"> |
| 580 |
<field name="working_hours_close" widget="float_time" string="Hours"/> |
| 581 |
<field name="working_days_close" string="Days"/> |
| 582 |
</group> |
| 583 |
</group> |
| 584 |
</page> |
| 585 |
</notebook> |
| 586 |
</sheet> |
| 587 |
<chatter reload_on_follower="True"/> |
| 588 |
</form> |
| 589 |
</field> |
| 590 |
</record> |
| 591 |
|
| 592 |
<record id="portal_share_action" model="ir.actions.act_window"> |
| 593 |
<field name="name">Share Task</field> |
| 594 |
<field name="res_model">task.share.wizard</field> |
| 595 |
<field name="view_mode">form</field> |
| 596 |
<field name="context">{'dialog_size': 'medium'}</field> |
| 597 |
<field name="target">new</field> |
| 598 |
<field name="binding_model_id" ref="model_project_task"/> |
| 599 |
<field name="binding_view_types">form</field> |
| 600 |
</record> |
| 601 |
|
| 602 |
<record id="quick_create_task_form" model="ir.ui.view"> |
| 603 |
<field name="name">project.task.form.quick_create</field> |
| 604 |
<field name="model">project.task</field> |
| 605 |
<field name="priority">1000</field> |
| 606 |
<field name="arch" type="xml"> |
| 607 |
<form class="o_form_project_tasks"> |
| 608 |
<group> |
| 609 |
<field name="display_name" string= "Task Title" placeholder="e.g. Send Invitations" required="1"/> |
| 610 |
<field name="project_id" |
| 611 |
widget="project" |
| 612 |
invisible="context.get('default_project_id', False)" |
| 613 |
placeholder="Private" |
| 614 |
class="o_project_task_project_field" |
| 615 |
domain="[('type_ids', 'in', context.get('default_stage_id'))] if context.get('default_stage_id') else []" |
| 616 |
required="is_template" |
| 617 |
/> |
| 618 |
<field name="user_ids" options="{'no_open': True}" |
| 619 |
widget="many2many_avatar_user"/> |
| 620 |
<field name="company_id" invisible="1"/> |
| 621 |
<field name="parent_id" invisible="1" groups="base.group_no_one"/> |
| 622 |
<field name="description" invisible="1"/> |
| 623 |
</group> |
| 624 |
</form> |
| 625 |
</field> |
| 626 |
</record> |
| 627 |
|
| 628 |
<record id="project_task_convert_to_subtask_view_form" model="ir.ui.view"> |
| 629 |
<field name="name">project.task.convert.to.subtask.form</field> |
| 630 |
<field name="model">project.task</field> |
| 631 |
<field name="arch" type="xml"> |
| 632 |
<form> |
| 633 |
<div class="text-muted o_row mb-3"> |
| 634 |
To transform a task into a sub-task, select a parent task. Alternatively, leave the parent task field blank to convert a sub-task into a standalone task. |
| 635 |
</div> |
| 636 |
<group> |
| 637 |
<field name="project_id" invisible="1" /> |
| 638 |
<field name="company_id" invisible="1" /> |
| 639 |
<field name="parent_id" domain="[('id', '!=', id), '!', ('id', 'child_of', id)]" context="{'search_default_project_id': project_id, 'search_default_open_tasks': 1, 'default_is_template': is_template}"/> |
| 640 |
</group> |
| 641 |
<footer> |
| 642 |
<button string="Convert Task" class="btn-primary" special="save" data-hotkey="q"/> |
| 643 |
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" /> |
| 644 |
</footer> |
| 645 |
</form> |
| 646 |
</field> |
| 647 |
</record> |
| 648 |
|
| 649 |
<record model="ir.ui.view" id="view_task_kanban"> |
| 650 |
<field name="name">project.task.kanban</field> |
| 651 |
<field name="model">project.task</field> |
| 652 |
<field name="arch" type="xml"> |
| 653 |
<kanban |
| 654 |
highlight_color="color" |
| 655 |
default_group_by="stage_id" |
| 656 |
class="o_kanban_small_column o_kanban_project_tasks" |
| 657 |
on_create="quick_create" |
| 658 |
quick_create_view="project.quick_create_task_form" |
| 659 |
examples="project" |
| 660 |
js_class="project_task_kanban" sample="1" |
| 661 |
default_order="priority desc, sequence, state, date_deadline asc, id desc" |
| 662 |
> |
| 663 |
<field name="stage_id"/> |
| 664 |
<field name="rating_count"/> |
| 665 |
<field name="rating_avg"/> |
| 666 |
<field name="rating_active"/> |
| 667 |
<field name="has_late_and_unreached_milestone" /> |
| 668 |
<field name="allow_milestones" /> |
| 669 |
<field name="state" /> |
| 670 |
<field name="subtask_count"/> |
| 671 |
<field name="is_template"/> |
| 672 |
<field name="has_project_template"/> |
| 673 |
<progressbar field="state" colors='{"1_done": "success-done", "1_canceled": "danger", "03_approved": "success", "02_changes_requested": "warning", "04_waiting_normal": "info", "01_in_progress": "200" }'/> |
| 674 |
<templates> |
| 675 |
<t t-name="menu" t-if="!selection_mode" groups="base.group_user"> |
| 676 |
<a t-if="widget.editable" role="menuitem" type="set_cover" class="dropdown-item" data-field="displayed_image_id">Set Cover Image</a> |
| 677 |
<a name="%(project.portal_share_action)d" role="menuitem" type="action" class="dropdown-item">Share Task</a> |
| 678 |
<a class="dropdown-item" role="menuitem" type="object" name="copy">Duplicate</a> |
| 679 |
<div role="separator" class="dropdown-divider"></div> |
| 680 |
<field name="color" widget="kanban_color_picker"/> |
| 681 |
</t> |
| 682 |
<t t-name="card"> |
| 683 |
<main t-att-class="['1_done', '1_canceled'].includes(record.state.raw_value) ? 'opacity-50' : ''"> |
| 684 |
<field name="name" class="fw-bold fs-5"/> |
| 685 |
<div class="text-muted d-flex flex-column"> |
| 686 |
<field t-if="record.parent_id.raw_value" invisible="context.get('default_parent_id', False)" name="parent_id"/> |
| 687 |
<field invisible="context.get('default_project_id', False)" name="project_id" options="{'no_open': True}"/> |
| 688 |
<field name="partner_id" invisible="context.get('template_project')"/> |
| 689 |
<field t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-att-class="record.has_late_and_unreached_milestone.raw_value and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''" name="milestone_id" options="{'no_open': True}"/> |
| 690 |
</div> |
| 691 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/> |
| 692 |
<field t-if="record.date_deadline.raw_value" invisible="state in ['1_done', '1_canceled']" name="date_deadline" widget="remaining_days"/> |
| 693 |
<field name="task_properties" widget="properties"/> |
| 694 |
<field name="displayed_image_id" widget="attachment_image"/> |
| 695 |
<footer t-if="!selection_mode" class="pt-1"> |
| 696 |
<div class="d-flex align-items-center gap-1"> |
| 697 |
<field name="activity_ids" widget="kanban_activity" style="margin-right: 2px"/> |
| 698 |
<b t-if="record.rating_active.raw_value and record.rating_count.raw_value > 0"> |
| 699 |
<span class="fa fa-fw fa-smile-o text-success rating_face" t-if="record.rating_avg.raw_value >= 3.66" title="Average Rating: Happy" role="img" aria-label="Happy face"/> |
| 700 |
<span class="fa fa-fw fa-meh-o text-warning rating_face" t-elif="record.rating_avg.raw_value >= 2.33" title="Average Rating: Neutral" role="img" aria-label="Neutral face"/> |
| 701 |
<span class="fa fa-fw fa-frown-o text-danger rating_face" t-else="" title="Average Rating: Unhappy" role="img" aria-label="Unhappy face"/> |
| 702 |
</b> |
| 703 |
<a t-if="!record.project_id.raw_value" class="text-muted" style="font-size: 17px; margin-left: 1.5px"> |
| 704 |
<i title="Private Task" class="fa fa-lock"/> |
| 705 |
</a> |
| 706 |
<t t-if="record.project_id.raw_value and record.subtask_count.raw_value"> |
| 707 |
<widget name="subtask_counter" class="me-1"/> |
| 708 |
</t> |
| 709 |
<field name="priority" class="pt-1" widget="priority"/> |
| 710 |
<field name="is_rotting" invisible="1"/> |
| 711 |
<field name="rotting_days" widget="rotting" class="ms-1 d-flex"/> |
| 712 |
</div> |
| 713 |
<div class="d-flex ms-auto"> |
| 714 |
<field name="user_ids" widget="many2many_avatar_user"/> |
| 715 |
<field name="state" class="ms-1" widget="project_task_state_selection" options="{'is_toggle_mode': false}"/> |
| 716 |
</div> |
| 717 |
</footer> |
| 718 |
</main> |
| 719 |
<widget name="subtask_kanban_list"/> |
| 720 |
</t> |
| 721 |
</templates> |
| 722 |
</kanban> |
| 723 |
</field> |
| 724 |
</record> |
| 725 |
|
| 726 |
<!-- View used in the Sub-tasks, Blocked by notebook page in the task form view in mobile --> |
| 727 |
<record id="project_sub_task_view_kanban_mobile" model="ir.ui.view"> |
| 728 |
<field name="name">project.task.kanban</field> |
| 729 |
<field name="model">project.task</field> |
| 730 |
<field name="inherit_id" ref="project.view_task_kanban"/> |
| 731 |
<field name="mode">primary</field> |
| 732 |
<field name="arch" type="xml"> |
| 733 |
<xpath expr="//field[@name='parent_id']" position="after"> |
| 734 |
<field invisible="project_id == context.get('active_id', False)" class="mt-1" name="project_id" options="{'no_open': True}"/> |
| 735 |
</xpath> |
| 736 |
<xpath expr="//field[@name='parent_id']" position="replace"/> |
| 737 |
</field> |
| 738 |
</record> |
| 739 |
|
| 740 |
<!-- The main base of the project.task list view --> |
| 741 |
<record id="project_task_view_tree_main_base" model="ir.ui.view"> |
| 742 |
<field name="name">project.task.view.list.main.base</field> |
| 743 |
<field name="model">project.task</field> |
| 744 |
<field name="arch" type="xml"> |
| 745 |
<list string="Tasks" sample="1" default_order="priority desc, sequence, state, date_deadline asc, id desc"> |
| 746 |
<field name="sequence" readonly="1" column_invisible="True"/> |
| 747 |
<field name="allow_milestones" column_invisible="True"/> |
| 748 |
<field name="subtask_count" column_invisible="True"/> |
| 749 |
<field name="closed_subtask_count" column_invisible="True"/> |
| 750 |
<field name="id" optional="hide" options="{'enable_formatting': False}"/> |
| 751 |
<field name="name" string="Title" widget="name_with_subtask_count"/> |
| 752 |
<field name="project_id" widget="project" optional="show" options="{'no_open': 1}" readonly="1" column_invisible="context.get('default_project_id')"/> |
| 753 |
<field name="milestone_id" invisible="not allow_milestones" context="{'default_project_id': project_id}" groups="project.group_project_milestone" optional="hide" column_invisible="not context.get('allow_milestones', True)"/> |
| 754 |
<field name="partner_id" optional="hide" widget="res_partner_many2one" invisible="not project_id" options="{'no_open': True}" column_invisible="context.get('template_project')"/> |
| 755 |
<field name="user_ids" optional="show" widget="many2many_avatar_user"/> |
| 756 |
<field name="company_id" groups="base.group_multi_company" optional="hide" column_invisible="context.get('default_project_id')" options="{'no_create': True}"/> |
| 757 |
<field name="company_id" column_invisible="True"/> |
| 758 |
<field name="date_deadline" optional="hide" widget="remaining_days" invisible="state in ['1_done', '1_canceled']"/> |
| 759 |
<field name="priority" widget="priority" optional="show" width="70px"/> |
| 760 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="show" context="{'project_id': project_id}"/> |
| 761 |
<field name="create_date" optional="hide"/> |
| 762 |
<field name="date_last_stage_update" optional="hide" column_invisible="context.get('template_project')"/> |
| 763 |
<field name="state" widget="project_task_state_selection" nolabel="1" width="20px" options="{'is_toggle_mode': false}"/> |
| 764 |
<field name="stage_id_color" column_invisible="1"/> |
| 765 |
<field name="is_rotting" column_invisible="True"/> |
| 766 |
<field name="rotting_days" column_invisible="True"/> |
| 767 |
<field name="stage_id" column_invisible="context.get('set_visible', False)" optional="show" widget="badge_rotting" options="{'no_open': True}"/> |
| 768 |
</list> |
| 769 |
</field> |
| 770 |
</record> |
| 771 |
|
| 772 |
<!-- common base of the list view in project app --> |
| 773 |
<record id="project_task_view_tree_base" model="ir.ui.view"> |
| 774 |
<field name="name">project.task.view.list.base</field> |
| 775 |
<field name="model">project.task</field> |
| 776 |
<field name="inherit_id" ref="project_task_view_tree_main_base"/> |
| 777 |
<field name="mode">primary</field> |
| 778 |
<field name="arch" type="xml"> |
| 779 |
<list position="attributes"> |
| 780 |
<attribute name="multi_edit">1</attribute> |
| 781 |
<attribute name="js_class">project_task_list</attribute> |
| 782 |
</list> |
| 783 |
<field name="priority" position="after"> |
| 784 |
<field name="activity_ids" string="Next Activity" widget="list_activity" optional="show"/> |
| 785 |
<field name="my_activity_date_deadline" string="My Deadline" widget="remaining_days" optional="hide"/> |
| 786 |
<field name="rating_active" column_invisible="True"/> |
| 787 |
<field name="rating_last_text" string="Rating" decoration-danger="rating_last_text == 'ko'" |
| 788 |
decoration-warning="rating_last_text == 'ok'" decoration-success="rating_last_text == 'top'" |
| 789 |
invisible="not rating_active or rating_last_text == 'none'" |
| 790 |
class="fw-bold" widget="badge" optional="hide" |
| 791 |
column_invisible="context.get('template_project')"/> |
| 792 |
</field> |
| 793 |
<list position="inside"> |
| 794 |
<field name="task_properties"/> |
| 795 |
<field name="recurrence_id" column_invisible="True" /> |
| 796 |
</list> |
| 797 |
<xpath expr="//field[@name='partner_id']" position="after"> |
| 798 |
<field name="parent_id" optional="hide" invisible="not project_id" context="{'search_view_ref': 'project.view_task_search_form', 'search_default_project_id': project_id, 'default_project_id': project_id}" groups="base.group_no_one"/> |
| 799 |
</xpath> |
| 800 |
<xpath expr="//field[@name='stage_id']" position="after"> |
| 801 |
<field name="personal_stage_type_id" string="Personal Stage" optional="hide" |
| 802 |
column_invisible="context.get('template_project')"/> |
| 803 |
</xpath> |
| 804 |
</field> |
| 805 |
</record> |
| 806 |
|
| 807 |
<!-- main list view --> |
| 808 |
<record id="view_task_tree2" model="ir.ui.view"> |
| 809 |
<field name="name">project.task.list</field> |
| 810 |
<field name="model">project.task</field> |
| 811 |
<field name="inherit_id" ref="project_task_view_tree_base"/> |
| 812 |
<field name="mode">primary</field> |
| 813 |
<field name="priority">2</field> |
| 814 |
<field name="arch" type="xml"> |
| 815 |
<list position="attributes"> |
| 816 |
<attribute name="default_group_by">stage_id</attribute> |
| 817 |
</list> |
| 818 |
</field> |
| 819 |
</record> |
| 820 |
|
| 821 |
<record id="view_task_calendar" model="ir.ui.view"> |
| 822 |
<field name="name">project.task.calendar</field> |
| 823 |
<field name="model">project.task</field> |
| 824 |
<field eval="2" name="priority"/> |
| 825 |
<field name="arch" type="xml"> |
| 826 |
<calendar date_start="date_deadline" string="Tasks" mode="month" |
| 827 |
color="stage_id_color" event_limit="5" hide_time="true" |
| 828 |
event_open_popup="true" quick_create="0" show_unusual_days="True" |
| 829 |
js_class="project_task_calendar" |
| 830 |
scales="day,week,month,year"> |
| 831 |
<field name="allow_milestones" invisible="1" /> |
| 832 |
<field name="project_id" widget="project" invisible="context.get('default_project_id', False)"/> |
| 833 |
<field name="display_in_project" invisible="1"/> |
| 834 |
<field name="subtask_count" invisible="1"/> |
| 835 |
<field name="milestone_id" invisible="not allow_milestones or not milestone_id"/> |
| 836 |
<field name="user_ids" widget="many2many_avatar_user" invisible="not user_ids"/> |
| 837 |
<field name="partner_id" invisible="not partner_id"/> |
| 838 |
<field name="priority" widget="priority" readonly="1"/> |
| 839 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" invisible="not tag_ids"/> |
| 840 |
<field name="stage_id_color" invisible="1"/> |
| 841 |
<field name="stage_id" invisible="not project_id or not stage_id" widget="task_stage_with_state_selection" filters="1"/> |
| 842 |
<field name="personal_stage_id" string="Personal Stage" options="{'no_open': True}" invisible="project_id or not personal_stage_id"/> |
| 843 |
<field name="task_properties" invisible="not task_properties"/> |
| 844 |
</calendar> |
| 845 |
</field> |
| 846 |
</record> |
| 847 |
|
| 848 |
<record id="view_task_all_calendar" model="ir.ui.view"> |
| 849 |
<field name="name">project.task.all.calendar</field> |
| 850 |
<field name="model">project.task</field> |
| 851 |
<field name="inherit_id" ref="view_task_calendar"/> |
| 852 |
<field name="mode">primary</field> |
| 853 |
<field name="arch" type="xml"> |
| 854 |
<xpath expr="//calendar" position="attributes"> |
| 855 |
<attribute name="color">project_id</attribute> |
| 856 |
</xpath> |
| 857 |
<xpath expr="//field[@name='project_id']" position="attributes"> |
| 858 |
<attribute name="filters">1</attribute> |
| 859 |
</xpath> |
| 860 |
<xpath expr="//field[@name='stage_id']" position="replace"> |
| 861 |
<field name="stage_id" invisible="not project_id or not stage_id" widget="task_stage_with_state_selection"/> |
| 862 |
</xpath> |
| 863 |
</field> |
| 864 |
</record> |
| 865 |
|
| 866 |
|
| 867 |
<record id="project_task_view_activity" model="ir.ui.view"> |
| 868 |
<field name="name">project.task.activity</field> |
| 869 |
<field name="model">project.task</field> |
| 870 |
<field name="arch" type="xml"> |
| 871 |
<activity string="Project Tasks" js_class="project_task_activity"> |
| 872 |
<field name="user_ids"/> |
| 873 |
<field name="project_id"/> |
| 874 |
<templates> |
| 875 |
<div t-name="activity-box" class="justify-content-between gap-2"> |
| 876 |
<div class="flex-shrink-1"> |
| 877 |
<field name="name" display="full" class="o_text_block"/> |
| 878 |
<div t-att-title="record.project_id.value" invisible="context.get('default_project_id', False)"> |
| 879 |
<field t-if="record.project_id.value" name="project_id" muted="1" class="o_text_block"/> |
| 880 |
<div t-else="" class="fst-italic text-muted"><i class="fa fa-lock"/> Private</div> |
| 881 |
</div> |
| 882 |
</div> |
| 883 |
<div class="d-flex justify-content-end gap-2 flex-grow-1"> |
| 884 |
<field name="user_ids" widget="many2many_avatar_user" class="o_many2many_avatar_user_no_wrap"/> |
| 885 |
</div> |
| 886 |
</div> |
| 887 |
</templates> |
| 888 |
</activity> |
| 889 |
</field> |
| 890 |
</record> |
| 891 |
|
| 892 |
<record id="action_view_task" model="ir.actions.act_window"> |
| 893 |
<field name="name">Tasks</field> |
| 894 |
<field name="res_model">project.task</field> |
| 895 |
<field name="view_mode">kanban,list,form,calendar,pivot,graph,activity</field> |
| 896 |
<field name="context">{'search_default_my_tasks': 1}</field> |
| 897 |
<field name="domain">[('project_id', '!=', False), ('has_template_ancestor', '=', False)]</field> |
| 898 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 899 |
<field name="help" type="html"> |
| 900 |
<p class="o_view_nocontent_smiling_face"> |
| 901 |
No tasks found. Let's create one! |
| 902 |
</p> |
| 903 |
<p> |
| 904 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 905 |
Collaborate efficiently by chatting in real-time or via email. |
| 906 |
</p> |
| 907 |
</field> |
| 908 |
</record> |
| 909 |
|
| 910 |
<record id="view_task_kanban_inherit_my_task" model="ir.ui.view"> |
| 911 |
<field name="name">project.task.kanban.inherit.my.task</field> |
| 912 |
<field name="model">project.task</field> |
| 913 |
<field name="inherit_id" ref="view_task_kanban"/> |
| 914 |
<field name="mode">primary</field> |
| 915 |
<field name="arch" type="xml"> |
| 916 |
<xpath expr="//kanban" position="attributes"> |
| 917 |
<attribute name="default_group_by">personal_stage_type_id</attribute> |
| 918 |
<attribute name="examples"/> |
| 919 |
</xpath> |
| 920 |
</field> |
| 921 |
</record> |
| 922 |
|
| 923 |
<record id="view_task_kanban_inherit_all_task" model="ir.ui.view"> |
| 924 |
<field name="name">project.task.kanban.inherit.all.task</field> |
| 925 |
<field name="model">project.task</field> |
| 926 |
<field name="inherit_id" ref="view_task_kanban"/> |
| 927 |
<field name="mode">primary</field> |
| 928 |
<field name="arch" type="xml"> |
| 929 |
<xpath expr="//kanban" position="attributes"> |
| 930 |
<attribute name="default_group_by">project_id</attribute> |
| 931 |
</xpath> |
| 932 |
</field> |
| 933 |
</record> |
| 934 |
|
| 935 |
<record id="open_view_my_tasks_list_view" model="ir.ui.view"> |
| 936 |
<field name="name">open.view.my.tasks.list.view</field> |
| 937 |
<field name="model">project.task</field> |
| 938 |
<field name="inherit_id" ref="view_task_tree2"/> |
| 939 |
<field name="mode">primary</field> |
| 940 |
<field name="arch" type="xml"> |
| 941 |
<list position="attributes"> |
| 942 |
<attribute name="default_group_by">personal_stage_type_id</attribute> |
| 943 |
</list> |
| 944 |
</field> |
| 945 |
</record> |
| 946 |
|
| 947 |
<record id="open_view_all_tasks_list_view" model="ir.ui.view"> |
| 948 |
<field name="name">open.view.all.tasks.list.view</field> |
| 949 |
<field name="model">project.task</field> |
| 950 |
<field name="inherit_id" ref="view_task_tree2"/> |
| 951 |
<field name="mode">primary</field> |
| 952 |
<field name="arch" type="xml"> |
| 953 |
<list position="attributes"> |
| 954 |
<attribute name="default_group_by"/> |
| 955 |
</list> |
| 956 |
<field name="project_id" position="attributes"> |
| 957 |
<attribute name="column_invisible">0</attribute> |
| 958 |
</field> |
| 959 |
</field> |
| 960 |
</record> |
| 961 |
|
| 962 |
<record id="view_task_kanban_inherit_view_default_project" model="ir.ui.view" > |
| 963 |
<field name="name">project.task.kanban</field> |
| 964 |
<field name="model">project.task</field> |
| 965 |
<field name="inherit_id" ref="view_task_kanban"/> |
| 966 |
<field name="mode">primary</field> |
| 967 |
<field name="arch" type="xml"> |
| 968 |
<kanban position="attributes"> |
| 969 |
<attribute name="quick_create_view">project.quick_create_task_form_inherit_view_default_project</attribute> |
| 970 |
</kanban> |
| 971 |
</field> |
| 972 |
</record> |
| 973 |
|
| 974 |
<record id="quick_create_task_form_inherit_view_default_project" model="ir.ui.view"> |
| 975 |
<field name="name">project.task.form.quick.create</field> |
| 976 |
<field name="model">project.task</field> |
| 977 |
<field name="inherit_id" ref="quick_create_task_form"/> |
| 978 |
<field name="mode">primary</field> |
| 979 |
<field name="arch" type="xml"> |
| 980 |
<field name="project_id" position="attributes"> |
| 981 |
<attribute name="invisible">0</attribute> |
| 982 |
</field> |
| 983 |
</field> |
| 984 |
</record> |
| 985 |
|
| 986 |
<record id="project_task_kanban_view_project_milestone" model="ir.ui.view"> |
| 987 |
<field name="name">project.task.kanban.inherit.project.milestone</field> |
| 988 |
<field name="model">project.task</field> |
| 989 |
<field name="inherit_id" ref="view_task_kanban"/> |
| 990 |
<field name="mode">primary</field> |
| 991 |
<field name="arch" type="xml"> |
| 992 |
<xpath expr="//kanban" position="attributes"> |
| 993 |
<attribute name="default_group_by">milestone_id</attribute> |
| 994 |
</xpath> |
| 995 |
</field> |
| 996 |
</record> |
| 997 |
|
| 998 |
<record id="project_task_tree_view_project_milestone" model="ir.ui.view"> |
| 999 |
<field name="name">project.task.view.tree.project.milestone</field> |
| 1000 |
<field name="model">project.task</field> |
| 1001 |
<field name="inherit_id" ref="project_task_view_tree_base"/> |
| 1002 |
<field name="mode">primary</field> |
| 1003 |
<field name="arch" type="xml"> |
| 1004 |
<xpath expr="//list" position="attributes"> |
| 1005 |
<attribute name="default_group_by">milestone_id</attribute> |
| 1006 |
</xpath> |
| 1007 |
<xpath expr="//field[@name='milestone_id']" position="attributes"> |
| 1008 |
<attribute name="optional">show</attribute> |
| 1009 |
</xpath> |
| 1010 |
</field> |
| 1011 |
</record> |
| 1012 |
|
| 1013 |
<record id="project_task_pivot_view_project_milestone" model="ir.ui.view"> |
| 1014 |
<field name="name">project.task.view.pivot.project.milestone</field> |
| 1015 |
<field name="model">project.task</field> |
| 1016 |
<field name="inherit_id" ref="view_project_task_pivot"/> |
| 1017 |
<field name="mode">primary</field> |
| 1018 |
<field name="arch" type="xml"> |
| 1019 |
<xpath expr="//field[@name='project_id']" position="replace"> |
| 1020 |
<field name="milestone_id" type="row"/> |
| 1021 |
<field name="stage_id" type="col"/> |
| 1022 |
</xpath> |
| 1023 |
</field> |
| 1024 |
</record> |
| 1025 |
|
| 1026 |
<record id="project_task_graph_view_project_milestone" model="ir.ui.view"> |
| 1027 |
<field name="name">project.task.view.graph.project.milestone</field> |
| 1028 |
<field name="model">project.task</field> |
| 1029 |
<field name="inherit_id" ref="view_project_task_graph"/> |
| 1030 |
<field name="mode">primary</field> |
| 1031 |
<field name="arch" type="xml"> |
| 1032 |
<xpath expr="//field[@name='project_id']" position="replace"> |
| 1033 |
<field name="milestone_id"/> |
| 1034 |
</xpath> |
| 1035 |
</field> |
| 1036 |
</record> |
| 1037 |
|
| 1038 |
<record id="action_view_my_task" model="ir.actions.act_window"> |
| 1039 |
<field name="name">My Tasks</field> |
| 1040 |
<field name="res_model">project.task</field> |
| 1041 |
<field name="path">my-tasks</field> |
| 1042 |
<field name="view_mode">kanban,list,form,calendar,activity,pivot,graph</field> |
| 1043 |
<field name="context">{ |
| 1044 |
'search_default_open_tasks': 1, |
| 1045 |
'my_tasks': 1, |
| 1046 |
'default_user_ids': [(4, uid)], |
| 1047 |
}</field> |
| 1048 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 1049 |
<field name="domain">[('user_ids', 'in', uid), ('has_template_ancestor', '=', False)]</field> |
| 1050 |
<field name="help" type="html"> |
| 1051 |
<p class="o_view_nocontent_smiling_face"> |
| 1052 |
No tasks found. Let's create one! |
| 1053 |
</p> |
| 1054 |
<p> |
| 1055 |
Organize your tasks by dispatching them across the pipeline.<br/> |
| 1056 |
Collaborate efficiently by chatting in real-time or via email. |
| 1057 |
</p> |
| 1058 |
</field> |
| 1059 |
</record> |
| 1060 |
|
| 1061 |
<record id="open_view_task_list_kanban" model="ir.actions.act_window.view"> |
| 1062 |
<field name="sequence" eval="0"/> |
| 1063 |
<field name="view_mode">kanban</field> |
| 1064 |
<field name="act_window_id" ref="action_view_task"/> |
| 1065 |
</record> |
| 1066 |
|
| 1067 |
<record id="open_view_task_list_tree" model="ir.actions.act_window.view"> |
| 1068 |
<field name="sequence" eval="1"/> |
| 1069 |
<field name="view_mode">list</field> |
| 1070 |
<field name="act_window_id" ref="action_view_task"/> |
| 1071 |
</record> |
| 1072 |
|
| 1073 |
<record id="open_view_my_task_list_kanban" model="ir.actions.act_window.view"> |
| 1074 |
<field name="sequence" eval="10"/> |
| 1075 |
<field name="view_mode">kanban</field> |
| 1076 |
<field name="view_id" ref="view_task_kanban_inherit_my_task"/> |
| 1077 |
<field name="act_window_id" ref="action_view_my_task"/> |
| 1078 |
</record> |
| 1079 |
|
| 1080 |
<record id="open_view_my_task_list_tree" model="ir.actions.act_window.view"> |
| 1081 |
<field name="sequence" eval="20"/> |
| 1082 |
<field name="view_mode">list</field> |
| 1083 |
<field name="view_id" ref="open_view_my_tasks_list_view"/> |
| 1084 |
<field name="act_window_id" ref="action_view_my_task"/> |
| 1085 |
</record> |
| 1086 |
|
| 1087 |
<record id="open_view_my_task_list_calendar" model="ir.actions.act_window.view"> |
| 1088 |
<field name="sequence" eval="40"/> |
| 1089 |
<field name="view_mode">calendar</field> |
| 1090 |
<field name="act_window_id" ref="action_view_my_task"/> |
| 1091 |
<field name="view_id" ref="view_task_all_calendar"/> |
| 1092 |
</record> |
| 1093 |
|
| 1094 |
<record id="action_view_all_task" model="ir.actions.act_window"> |
| 1095 |
<field name="name">All Tasks</field> |
| 1096 |
<field name="res_model">project.task</field> |
| 1097 |
<field name="path">all-tasks</field> |
| 1098 |
<field name="view_mode">list,kanban,form,calendar,activity,pivot,graph</field> |
| 1099 |
<field name="domain">[('has_template_ancestor', '=', False)]</field> |
| 1100 |
<field name="context">{'search_default_open_tasks': 1, 'default_user_ids': [(4, uid)]}</field> |
| 1101 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 1102 |
<field name="help" type="html"> |
| 1103 |
<p class="o_view_nocontent_smiling_face"> |
| 1104 |
No tasks found. Let's create one! |
| 1105 |
</p> |
| 1106 |
<p> |
| 1107 |
Organize your tasks by dispatching them across the pipeline.<br/> |
| 1108 |
Collaborate efficiently by chatting in real-time or via email. |
| 1109 |
</p> |
| 1110 |
</field> |
| 1111 |
</record> |
| 1112 |
|
| 1113 |
<record id="open_view_all_task_list_tree" model="ir.actions.act_window.view"> |
| 1114 |
<field name="sequence" eval="10"/> |
| 1115 |
<field name="view_mode">list</field> |
| 1116 |
<field name="act_window_id" ref="action_view_all_task"/> |
| 1117 |
<field name="view_id" ref="open_view_all_tasks_list_view"/> |
| 1118 |
</record> |
| 1119 |
|
| 1120 |
<record id="open_view_all_task_list_kanban" model="ir.actions.act_window.view"> |
| 1121 |
<field name="sequence" eval="20"/> |
| 1122 |
<field name="view_mode">kanban</field> |
| 1123 |
<field name="view_id" ref="view_task_kanban_inherit_all_task"/> |
| 1124 |
<field name="act_window_id" ref="action_view_all_task"/> |
| 1125 |
</record> |
| 1126 |
|
| 1127 |
<record id="open_view_all_task_list_calendar" model="ir.actions.act_window.view"> |
| 1128 |
<field name="sequence" eval="40"/> |
| 1129 |
<field name="view_mode">calendar</field> |
| 1130 |
<field name="act_window_id" ref="action_view_all_task"/> |
| 1131 |
<field name="view_id" ref="view_task_all_calendar"/> |
| 1132 |
</record> |
| 1133 |
|
| 1134 |
<record id="action_server_convert_to_subtask" model="ir.actions.server"> |
| 1135 |
<field name="name">Convert to Task/Sub-Task</field> |
| 1136 |
<field name="model_id" ref="project.model_project_task"/> |
| 1137 |
<field name="binding_model_id" ref="project.model_project_task"/> |
| 1138 |
<field name="binding_view_types">form</field> |
| 1139 |
<field name="state">code</field> |
| 1140 |
<field name="code"> |
| 1141 |
action = record.action_convert_to_subtask() |
| 1142 |
</field> |
| 1143 |
</record> |
| 1144 |
|
| 1145 |
<record id="action_server_convert_to_template" model="ir.actions.server"> |
| 1146 |
<field name="name">Convert to Template</field> |
| 1147 |
<field name="model_id" ref="project.model_project_task"/> |
| 1148 |
<field name="binding_model_id" ref="project.model_project_task"/> |
| 1149 |
<field name="binding_view_types">form</field> |
| 1150 |
<field name="group_ids" eval="[Command.link(ref('project.group_project_manager'))]"/> |
| 1151 |
<field name="state">code</field> |
| 1152 |
<field name="code"> |
| 1153 |
action = record.action_convert_to_template() |
| 1154 |
</field> |
| 1155 |
</record> |
| 1156 |
|
| 1157 |
<!-- Views for 'Tasks' stat button via Contact form --> |
| 1158 |
<record id="view_task_form_res_partner" model="ir.ui.view"> |
| 1159 |
<field name="name">project.task.form.res.partner</field> |
| 1160 |
<field name="model">project.task</field> |
| 1161 |
<field name="inherit_id" ref="view_task_form2"/> |
| 1162 |
<field name="mode">primary</field> |
| 1163 |
<field name="arch" type="xml"> |
| 1164 |
<xpath expr="//group//field[@name='project_id']" position="attributes"> |
| 1165 |
<attribute name="required">1</attribute> |
| 1166 |
</xpath> |
| 1167 |
</field> |
| 1168 |
</record> |
| 1169 |
|
| 1170 |
<record id="quick_create_task_form_res_partner" model="ir.ui.view"> |
| 1171 |
<field name="name">project.task.form.quick_create.res.partner</field> |
| 1172 |
<field name="model">project.task</field> |
| 1173 |
<field name="inherit_id" ref="quick_create_task_form"/> |
| 1174 |
<field name="mode">primary</field> |
| 1175 |
<field name="arch" type="xml"> |
| 1176 |
<xpath expr="//group//field[@name='project_id']" position="attributes"> |
| 1177 |
<attribute name="required">1</attribute> |
| 1178 |
<attribute name="placeholder"></attribute> |
| 1179 |
</xpath> |
| 1180 |
</field> |
| 1181 |
</record> |
| 1182 |
|
| 1183 |
<record id="view_task_kanban_res_partner" model="ir.ui.view"> |
| 1184 |
<field name="name">project.task.kanban.res.partner</field> |
| 1185 |
<field name="model">project.task</field> |
| 1186 |
<field name="inherit_id" ref="view_task_kanban_inherit_all_task"/> |
| 1187 |
<field name="mode">primary</field> |
| 1188 |
<field name="arch" type="xml"> |
| 1189 |
<xpath expr="//kanban" position="attributes"> |
| 1190 |
<attribute name="quick_create_view">project.quick_create_task_form_res_partner</attribute> |
| 1191 |
</xpath> |
| 1192 |
</field> |
| 1193 |
</record> |
| 1194 |
|
| 1195 |
<record id="project_task_action_from_partner" model="ir.actions.act_window"> |
| 1196 |
<field name="name">Partner's Tasks</field> |
| 1197 |
<field name="res_model">project.task</field> |
| 1198 |
<field name="view_mode">list,kanban,form,calendar,pivot,graph,activity</field> |
| 1199 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 1200 |
<field name="domain">[('has_template_ancestor', '=', False)]</field> |
| 1201 |
<field name="help" type="html"> |
| 1202 |
<p class="o_view_nocontent_smiling_face"> |
| 1203 |
No tasks found. Let's create one! |
| 1204 |
</p> |
| 1205 |
<p> |
| 1206 |
Organize your tasks by dispatching them across the pipeline.<br/> |
| 1207 |
Collaborate efficiently by chatting in real-time or via email. |
| 1208 |
</p> |
| 1209 |
</field> |
| 1210 |
</record> |
| 1211 |
|
| 1212 |
<record id="project_task_action_from_partner_tree_view" model="ir.actions.act_window.view"> |
| 1213 |
<field name="view_mode">list</field> |
| 1214 |
<field name="act_window_id" ref="project_task_action_from_partner"/> |
| 1215 |
<field name="view_id" ref="open_view_all_tasks_list_view"/> |
| 1216 |
</record> |
| 1217 |
|
| 1218 |
<record id="project_task_action_from_partner_kanban_view" model="ir.actions.act_window.view"> |
| 1219 |
<field name="view_mode">kanban</field> |
| 1220 |
<field name="act_window_id" ref="project_task_action_from_partner"/> |
| 1221 |
<field name="view_id" ref="view_task_kanban_res_partner"/> |
| 1222 |
</record> |
| 1223 |
|
| 1224 |
<record id="project_task_action_from_partner_form_view" model="ir.actions.act_window.view"> |
| 1225 |
<field name="view_mode">form</field> |
| 1226 |
<field name="act_window_id" ref="project_task_action_from_partner"/> |
| 1227 |
<field name="view_id" ref="view_task_form_res_partner"/> |
| 1228 |
</record> |
| 1229 |
|
| 1230 |
<record id="project_task_action_from_partner_calendar_view" model="ir.actions.act_window.view"> |
| 1231 |
<field name="view_mode">calendar</field> |
| 1232 |
<field name="act_window_id" ref="project_task_action_from_partner"/> |
| 1233 |
<field name="view_id" ref="view_task_all_calendar"/> |
| 1234 |
</record> |
| 1235 |
|
| 1236 |
<record id="action_view_task_overpassed_draft" model="ir.actions.act_window"> |
| 1237 |
<field name="name">Overpassed Tasks</field> |
| 1238 |
<field name="res_model">project.task</field> |
| 1239 |
<field name="view_mode">list,form,calendar,graph,kanban</field> |
| 1240 |
<field name="domain">[('is_closed', '=', False), ('date_deadline', '<', 'today'), ('project_id', '!=', False), ('has_template_ancestor', '=', False)]</field> |
| 1241 |
<field name="filter" eval="True"/> |
| 1242 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 1243 |
</record> |
| 1244 |
|
| 1245 |
<!-- Opening task when double clicking on project --> |
| 1246 |
<record id="dblc_proj" model="ir.actions.act_window"> |
| 1247 |
<field name="res_model">project.task</field> |
| 1248 |
<field name="name">Project's tasks</field> |
| 1249 |
<field name="view_mode">list,form,calendar,graph,kanban</field> |
| 1250 |
<field name="domain">[('project_id', '=', active_id), ('has_template_ancestor', '=', False)]</field> |
| 1251 |
<field name="context">{'project_id':active_id}</field> |
| 1252 |
</record> |
| 1253 |
|
| 1254 |
<record id="action_view_task_from_milestone" model="ir.actions.act_window"> |
| 1255 |
<field name="name">Tasks</field> |
| 1256 |
<field name="res_model">project.task</field> |
| 1257 |
<field name="view_mode">kanban,list,calendar,pivot,graph,activity,form</field> |
| 1258 |
<field name="context">{'default_milestone_id': active_id}</field> |
| 1259 |
<field name="domain">[('milestone_id', '=', active_id)]</field> |
| 1260 |
<field name="search_view_id" ref="view_task_search_form"/> |
| 1261 |
<field name="help" type="html"> |
| 1262 |
<p class="o_view_nocontent_smiling_face"> |
| 1263 |
No tasks found. Let's create one! |
| 1264 |
</p> |
| 1265 |
<p> |
| 1266 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 1267 |
Collaborate efficiently by chatting in real-time or via email. |
| 1268 |
</p> |
| 1269 |
</field> |
| 1270 |
</record> |
| 1271 |
|
| 1272 |
<record id="mail_followers_edit_action_from_task" model="ir.actions.act_window"> |
| 1273 |
<field name="name">Add/Remove Followers</field> |
| 1274 |
<field name="res_model">mail.followers.edit</field> |
| 1275 |
<field name="view_mode">form</field> |
| 1276 |
<field name="target">new</field> |
| 1277 |
<field name="context">{'default_res_model': 'project.task', 'default_res_ids': active_ids}</field> |
| 1278 |
<field name="binding_model_id" ref="project.model_project_task"/> |
| 1279 |
<field name="binding_view_types">list,kanban</field> |
| 1280 |
</record> |
| 1281 |
|
| 1282 |
<record id="project_milestone_action_view_tasks" model="ir.actions.act_window"> |
| 1283 |
<field name="name">Tasks.test</field> |
| 1284 |
<field name="res_model">project.task</field> |
| 1285 |
<field name="view_mode">kanban,list,form,calendar,pivot,graph,activity</field> |
| 1286 |
<field name="domain">[('has_template_ancestor', '=', False)]</field> |
| 1287 |
<field name="context">{'default_project_id': active_id}</field> |
| 1288 |
</record> |
| 1289 |
|
| 1290 |
<record id="project_milestone_action_view_tasks_kanban" model="ir.actions.act_window.view"> |
| 1291 |
<field name="act_window_id" ref="project_milestone_action_view_tasks"/> |
| 1292 |
<field name="sequence" eval="10"/> |
| 1293 |
<field name="view_mode">kanban</field> |
| 1294 |
<field name="view_id" ref="project.project_task_kanban_view_project_milestone"/> |
| 1295 |
</record> |
| 1296 |
|
| 1297 |
<record id="project_milestone_action_view_tasks_list" model="ir.actions.act_window.view"> |
| 1298 |
<field name="act_window_id" ref="project_milestone_action_view_tasks"/> |
| 1299 |
<field name="sequence" eval="20"/> |
| 1300 |
<field name="view_mode">list</field> |
| 1301 |
<field name="view_id" ref="project_task_tree_view_project_milestone"/> |
| 1302 |
</record> |
| 1303 |
|
| 1304 |
<record id="project_milestone_action_view_tasks_calendar" model="ir.actions.act_window.view"> |
| 1305 |
<field name="act_window_id" ref="project_milestone_action_view_tasks"/> |
| 1306 |
<field name="sequence" eval="30"/> |
| 1307 |
<field name="view_mode">calendar</field> |
| 1308 |
<field name="view_id" ref="project.view_task_calendar"/> |
| 1309 |
</record> |
| 1310 |
|
| 1311 |
<record id="project_milestone_action_view_pivot" model="ir.actions.act_window.view"> |
| 1312 |
<field name="act_window_id" ref="project_milestone_action_view_tasks"/> |
| 1313 |
<field name="sequence" eval="60"/> |
| 1314 |
<field name="view_mode">pivot</field> |
| 1315 |
<field name="view_id" ref="project_task_pivot_view_project_milestone"/> |
| 1316 |
</record> |
| 1317 |
|
| 1318 |
<record id="project_milestone_action_view_graph" model="ir.actions.act_window.view"> |
| 1319 |
<field name="act_window_id" ref="project_milestone_action_view_tasks"/> |
| 1320 |
<field name="sequence" eval="70"/> |
| 1321 |
<field name="view_mode">graph</field> |
| 1322 |
<field name="view_id" ref="project_task_graph_view_project_milestone"/> |
| 1323 |
</record> |
| 1324 |
|
| 1325 |
<record id="project_task_templates_list" model="ir.ui.view"> |
| 1326 |
<field name="name">project.task.templates.list</field> |
| 1327 |
<field name="model">project.task</field> |
| 1328 |
<field name="inherit_id" ref="project_task_view_tree_base"/> |
| 1329 |
<field name="mode">primary</field> |
| 1330 |
<field name="arch" type="xml"> |
| 1331 |
<field name="project_id" position="attributes"> |
| 1332 |
<attribute name="readonly">False</attribute> |
| 1333 |
<attribute name="required">is_template</attribute> |
| 1334 |
</field> |
| 1335 |
<field name="partner_id" position="replace"/> |
| 1336 |
<field name="user_ids" position="after"> |
| 1337 |
<field name="role_ids" optional="hide" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" invisible="not has_project_template or is_template"/> |
| 1338 |
</field> |
| 1339 |
</field> |
| 1340 |
</record> |
| 1341 |
|
| 1342 |
<record id="project_task_templates_kanban" model="ir.ui.view"> |
| 1343 |
<field name="name">project.task.templates.list</field> |
| 1344 |
<field name="model">project.task</field> |
| 1345 |
<field name="inherit_id" ref="view_task_kanban"/> |
| 1346 |
<field name="mode">primary</field> |
| 1347 |
<field name="arch" type="xml"> |
| 1348 |
<kanban position="attributes"> |
| 1349 |
<attribute name="default_group_by">project_id</attribute> |
| 1350 |
</kanban> |
| 1351 |
<xpath expr="//templates//field[@name='partner_id']" position="replace"/> |
| 1352 |
</field> |
| 1353 |
</record> |
| 1354 |
|
| 1355 |
<record id="view_task_template_search_form" model="ir.ui.view"> |
| 1356 |
<field name="name">project.task.search.form</field> |
| 1357 |
<field name="model">project.task</field> |
| 1358 |
<field name="inherit_id" ref="view_task_search_form"></field> |
| 1359 |
<field name="mode">primary</field> |
| 1360 |
<field name="arch" type="xml"> |
| 1361 |
<filter name="private_tasks" position="replace"/> |
| 1362 |
<filter name="closed_on" position="replace"/> |
| 1363 |
<filter name="customer" position="replace"/> |
| 1364 |
<filter name="unassigned" position="after"> |
| 1365 |
<filter name="task_templates" string="Task Templates" domain="[('has_project_template', '=', False)]" invisible="1"/> |
| 1366 |
</filter> |
| 1367 |
<field name="user_ids" position="after"> |
| 1368 |
<field name="role_ids"/> |
| 1369 |
</field> |
| 1370 |
</field> |
| 1371 |
</record> |
| 1372 |
|
| 1373 |
</odoo> |