| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="project_sharing_quick_create_task_form" model="ir.ui.view"> |
| 4 |
<field name="name">project.task.form.quick_create</field> |
| 5 |
<field name="model">project.task</field> |
| 6 |
<field name="priority">999</field> |
| 7 |
<field name="group_ids" eval="[(4, ref('base.group_portal')), (4, ref('base.group_user'))]"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<form> |
| 10 |
<group> |
| 11 |
<field name="name" string="Task Title" placeholder="e.g. Send Invitations"/> |
| 12 |
</group> |
| 13 |
</form> |
| 14 |
</field> |
| 15 |
</record> |
| 16 |
|
| 17 |
<record id="project_sharing_project_task_view_kanban" model="ir.ui.view"> |
| 18 |
<field name="name">project.sharing.project.task.view.kanban</field> |
| 19 |
<field name="model">project.task</field> |
| 20 |
<field name="priority">999</field> |
| 21 |
<field name="group_ids" eval="[(4, ref('base.group_portal')), (4, ref('base.group_user'))]"/> |
| 22 |
<field name="arch" type="xml"> |
| 23 |
<kanban |
| 24 |
highlight_color="color" |
| 25 |
class="o_kanban_small_column o_kanban_project_tasks" |
| 26 |
default_group_by="stage_id" |
| 27 |
on_create="quick_create" |
| 28 |
quick_create_view="project.project_sharing_quick_create_task_form" |
| 29 |
archivable="0" |
| 30 |
import="0" |
| 31 |
groups_draggable="0" |
| 32 |
group_edit="0" |
| 33 |
default_order="priority desc, sequence, state, date_deadline asc, id desc" |
| 34 |
> |
| 35 |
<field name="state"/> |
| 36 |
<field name="allow_milestones" /> |
| 37 |
<field name="has_late_and_unreached_milestone"/> |
| 38 |
<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"}'/> |
| 39 |
<templates> |
| 40 |
<t t-name="menu" t-if="!selection_mode"> |
| 41 |
<div role="separator" class="dropdown-divider"></div> |
| 42 |
<field name="color" widget="kanban_color_picker"/> |
| 43 |
</t> |
| 44 |
<t t-name="card"> |
| 45 |
<div t-att-class="{'opacity-50': ['1_done', '1_canceled'].includes(record.state.raw_value)}"> |
| 46 |
<field name="name" class="fw-bolder fs-5" widget="name_with_subtask_count"/> |
| 47 |
<field name="project_id" invisible="context.get('default_project_id', False)" required="1" class="text-muted"/> |
| 48 |
<span t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-attf-class="{{record.has_late_and_unreached_milestone.raw_value and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''}}"> |
| 49 |
<field name="milestone_id" class="text-muted"/> |
| 50 |
</span> |
| 51 |
<field t-if="record.partner_id.value" name="partner_id" class="text-truncate text-muted d-block"/> |
| 52 |
</div> |
| 53 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" context="{'project_id': project_id}"/> |
| 54 |
<field t-if="record.date_deadline.raw_value" name="date_deadline" invisible="state in ['1_done', '1_canceled']" widget="remaining_days"/> |
| 55 |
<field t-if="record.displayed_image_id.value" groups="base.group_user" name="displayed_image_id" widget="attachment_image"/> |
| 56 |
<footer t-if="!selection_mode"> |
| 57 |
<field name="priority" class="pt-1" widget="priority"/> |
| 58 |
<div class="d-flex ms-auto text-truncate"> |
| 59 |
<span t-if="record.portal_user_names.raw_value.length > 0" class="pe-2 text-truncate" t-att-title="record.portal_user_names.raw_value"> |
| 60 |
<t t-set="user_count" t-value="record.portal_user_names.raw_value.split(',').length"/> |
| 61 |
<t t-if="user_count > 1"><t t-out="user_count"/> assignees</t> |
| 62 |
<field t-else="" name="portal_user_names"/> |
| 63 |
</span> |
| 64 |
<field name="state" widget="project_task_state_selection" options="{'is_toggle_mode': false}"/> |
| 65 |
</div> |
| 66 |
</footer> |
| 67 |
</t> |
| 68 |
</templates> |
| 69 |
</kanban> |
| 70 |
</field> |
| 71 |
</record> |
| 72 |
|
| 73 |
<record id="project_sharing_project_task_view_tree" model="ir.ui.view"> |
| 74 |
<field name="name">project.sharing.project.task.list</field> |
| 75 |
<field name="model">project.task</field> |
| 76 |
<field name="inherit_id" ref="project_task_view_tree_main_base"/> |
| 77 |
<field name="mode">primary</field> |
| 78 |
<field name="priority">999</field> |
| 79 |
<field name="arch" type="xml"> |
| 80 |
<list position="attributes"> |
| 81 |
<attribute name="delete">0</attribute> |
| 82 |
<attribute name="import">0</attribute> |
| 83 |
<attribute name="group_create">0</attribute> |
| 84 |
<attribute name="default_group_by">stage_id</attribute> |
| 85 |
</list> |
| 86 |
<xpath expr="//field[@widget='res_partner_many2one']" position="attributes"> |
| 87 |
<attribute name="widget">many2one</attribute> |
| 88 |
</xpath> |
| 89 |
<field name="user_ids" position="replace"> |
| 90 |
<field name="portal_user_names" string="Assignees"/> |
| 91 |
</field> |
| 92 |
<xpath expr="//field[@name='milestone_id']" position="attributes"> |
| 93 |
<attribute name="column_invisible">not context.get('allow_milestones', True)</attribute> |
| 94 |
</xpath> |
| 95 |
<field name="partner_id" position="attributes"> |
| 96 |
<attribute name="column_invisible">0</attribute> |
| 97 |
</field> |
| 98 |
<field name="is_rotting" position="replace"/> |
| 99 |
<field name="rotting_days" position="replace"/> |
| 100 |
<field name="stage_id" position="attributes"> |
| 101 |
<attribute name="widget">selection_badge</attribute> |
| 102 |
</field> |
| 103 |
</field> |
| 104 |
</record> |
| 105 |
|
| 106 |
<record id="project_sharing_project_task_view_form" model="ir.ui.view"> |
| 107 |
<field name="name">project.sharing.project.task.view.form</field> |
| 108 |
<field name="model">project.task</field> |
| 109 |
<field name="priority">999</field> |
| 110 |
<field name="group_ids" eval="[(4, ref('base.group_portal')), (4, ref('base.group_user'))]"/> |
| 111 |
<field name="arch" type="xml"> |
| 112 |
<form string="Project Sharing: Task" class="o_form_project_tasks"> |
| 113 |
<header> |
| 114 |
<field name="stage_id" widget="statusbar_duration" options="{'clickable': '1', 'fold_field': 'fold'}" invisible="not project_id and not stage_id" /> |
| 115 |
</header> |
| 116 |
<div groups="base.group_user" role="status" class="alert alert-info alert-dismissible rounded-0 fade show d-print-none css_editable_mode_hidden"> |
| 117 |
<div class="text-center">This is a preview of how the project will look when it's shared with customers and they have editing access. |
| 118 |
<a name="action_redirect_to_project_task_form" type="object"><i class="oi oi-arrow-right me-1"/>Back to edit mode</a> |
| 119 |
</div> |
| 120 |
</div> |
| 121 |
<sheet string="Task"> |
| 122 |
<div class="oe_button_box" name="button_box"> |
| 123 |
<field name="display_parent_task_button" invisible="1"/> |
| 124 |
<field name="recurrence_id" invisible="1" /> |
| 125 |
<button name="action_project_sharing_view_parent_task" type="object" class="oe_stat_button" icon="fa-tasks" invisible="not display_parent_task_button"> |
| 126 |
<div class="o_stat_info"> |
| 127 |
<span class="o_stat_text">Parent Task</span> |
| 128 |
</div> |
| 129 |
</button> |
| 130 |
<button name="action_project_sharing_recurring_tasks" type="object" invisible="not active or not recurrence_id or not allow_recurring_tasks" |
| 131 |
class="oe_stat_button" icon="fa-repeat" context="{'default_user_ids': [(6, 0, [uid])]}"> |
| 132 |
<field name="recurring_count" widget="statinfo" string="Recurring Tasks"/> |
| 133 |
</button> |
| 134 |
<button name="action_project_sharing_open_subtasks" type="object" class="oe_stat_button" icon="fa-check" |
| 135 |
invisible="not id or subtask_count == 0" context="{ |
| 136 |
'default_user_ids': [(6, 0, [uid])], |
| 137 |
'default_project_id': project_id, |
| 138 |
}" |
| 139 |
> |
| 140 |
<field name="subtask_count" widget="statinfo" string="Sub-tasks"/> |
| 141 |
<field name="display_in_project" invisible="True"/> |
| 142 |
</button> |
| 143 |
<button name="action_project_sharing_open_blocking" type="object" invisible="not dependent_tasks_count or not allow_task_dependencies" class="oe_stat_button" icon="fa-tasks"> |
| 144 |
<div class="o_field_widget o_stat_info"> |
| 145 |
<span class="o_stat_text">Blocked Tasks</span> |
| 146 |
<span class="o_stat_value "> |
| 147 |
<field name="dependent_tasks_count" widget="statinfo" nolabel="1" /> |
| 148 |
</span> |
| 149 |
</div> |
| 150 |
</button> |
| 151 |
</div> |
| 152 |
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/> |
| 153 |
<div class="d-flex justify-content-between align-items-center"> |
| 154 |
<h1 class="d-flex w-100"> |
| 155 |
<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..."/> |
| 156 |
</h1> |
| 157 |
<div class="d-flex justify-content-end align-items-center px-1" invisible="not active or is_template"> |
| 158 |
<field name="priority" class="h3 pe-2" widget="priority"/> |
| 159 |
<field name="state" widget="project_task_state_selection" class="o_task_state_widget" /> |
| 160 |
</div> |
| 161 |
<div class="d-flex justify-content-start align-items-center w-100 w-md-50 w-lg-25" invisible="active and not is_template"> |
| 162 |
<field name="priority" class="h3 pe-2" widget="priority"/> |
| 163 |
<field name="state" widget="project_task_state_selection" class="o_task_state_widget" /> |
| 164 |
</div> |
| 165 |
</div> |
| 166 |
<group> |
| 167 |
<group> |
| 168 |
<field name="project_id" invisible="1"/> |
| 169 |
<field name="allow_milestones" invisible="1"/> |
| 170 |
<field name="milestone_id" |
| 171 |
placeholder="e.g. Product Launch" |
| 172 |
invisible="not allow_milestones" |
| 173 |
readonly="1" |
| 174 |
options="{'no_open': True}"/> |
| 175 |
<field name="user_ids" invisible="1" /> |
| 176 |
<field name="portal_user_names" |
| 177 |
string="Assignees" |
| 178 |
class="o_task_user_field"/> |
| 179 |
</group> |
| 180 |
<group> |
| 181 |
<field name="active" invisible="1"/> |
| 182 |
<field name="parent_id" invisible="1" /> |
| 183 |
<field name="company_id" invisible="1" /> |
| 184 |
<field name="state" invisible="1" /> |
| 185 |
<field name="depend_on_count" invisible="1" /> |
| 186 |
<field name="allow_task_dependencies" invisible="1" /> |
| 187 |
<field name="current_user_same_company_partner" invisible="1"/> |
| 188 |
<field name="tag_ids" context="{'project_id': project_id}" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True, 'no_edit': True, 'no_edit_color': True}"/> |
| 189 |
<field name="partner_id" readonly="not current_user_same_company_partner" options="{'no_open': True, 'no_create': True, 'no_edit': True}" invisible="not project_id"/> |
| 190 |
<field name="date_deadline" decoration-danger="date_deadline < current_date and state not in ['1_done', '1_canceled']"/> |
| 191 |
<field name="recurring_task" invisible="not allow_recurring_tasks or not active or parent_id" groups="project.group_project_recurring_tasks"/> |
| 192 |
<label for="repeat_interval" invisible="not recurring_task or not allow_recurring_tasks" groups="project.group_project_recurring_tasks"/> |
| 193 |
<div invisible="not recurring_task or not allow_recurring_tasks" class="d-flex" groups="project.group_project_recurring_tasks" name="repeat_intervals"> |
| 194 |
<field name="repeat_interval" required="recurring_task" |
| 195 |
class="me-2" style="max-width: 2rem !important;" /> |
| 196 |
<field name="repeat_unit" required="recurring_task" |
| 197 |
class="me-2" style="max-width: 4rem !important;" /> |
| 198 |
<field name="repeat_type" required="recurring_task" |
| 199 |
class="me-2" style="max-width: 15rem !important;" /> |
| 200 |
<field name="repeat_until" invisible="not repeat_type == 'until'" required="repeat_type == 'until'" |
| 201 |
class="me-2" /> |
| 202 |
</div> |
| 203 |
</group> |
| 204 |
</group> |
| 205 |
<notebook> |
| 206 |
<page name="description_page" string="Description"> |
| 207 |
<field name="description" type="html" placeholder="Add details about this task..." |
| 208 |
options="{'collaborative': true, 'allowAttachmentCreation': false, 'allowVideo': false}"/> |
| 209 |
</page> |
| 210 |
<page name="sub_tasks_page" string="Sub-tasks"> |
| 211 |
<field name="child_ids" context="{ |
| 212 |
'default_project_id': project_id, 'default_parent_id': id, |
| 213 |
'default_milestone_id': allow_milestones and milestone_id, 'default_partner_id': partner_id, |
| 214 |
'form_view_ref' : 'project.project_sharing_project_task_view_form', |
| 215 |
}"> |
| 216 |
<list editable="bottom" decoration-muted="state in ['1_done','1_canceled']"> |
| 217 |
<field name="project_id" column_invisible="True"/> |
| 218 |
<field name="display_in_project" column_invisible="True"/> |
| 219 |
<field name="state" column_invisible="True"/> |
| 220 |
<field name="sequence" widget="handle"/> |
| 221 |
<field name="state" widget="project_task_state_selection" nolabel="1" width="20px"/> |
| 222 |
<field name="subtask_count" column_invisible="1"/> |
| 223 |
<field name="closed_subtask_count" column_invisible="1"/> |
| 224 |
<field name="name" widget="name_with_subtask_count"/> |
| 225 |
<field name="allow_milestones" column_invisible="True"/> |
| 226 |
<field name="milestone_id" |
| 227 |
optional="hide" |
| 228 |
options="{'no_open': True}" |
| 229 |
readonly="1" |
| 230 |
column_invisible="not parent.allow_milestones" |
| 231 |
invisible="not allow_milestones"/> |
| 232 |
<field name="company_id" column_invisible="True"/> |
| 233 |
<field name="partner_id" options="{'no_open': True, 'no_create': True, 'no_edit': True}" optional="hide"/> |
| 234 |
<field name="user_ids" column_invisible="True" /> |
| 235 |
<field name="portal_user_names" string="Assignees" optional="show"/> |
| 236 |
<field name="date_deadline" decoration-danger="date_deadline < current_date and state not in ['1_done', '1_canceled']" optional="show"/> |
| 237 |
<field name="priority" widget="priority" optional="show" nolabel="1" width="20px"/> |
| 238 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="hide"/> |
| 239 |
<field name="stage_id" domain="[('user_id', '=', False), ('project_ids', 'in', [project_id])]"/> |
| 240 |
<button name="action_open_task" type="object" title="View Task" string="View Task" class="btn btn-link float-end" |
| 241 |
context="{'form_view_ref': 'project.project_sharing_project_task_view_form', 'search_view_ref': 'project.project_sharing_project_task_view_search'}" |
| 242 |
invisible="project_id != context.get('active_id')"/> |
| 243 |
</list> |
| 244 |
</field> |
| 245 |
</page> |
| 246 |
<page name="task_dependencies" string="Blocked By" invisible="not allow_task_dependencies"> |
| 247 |
<field name="depend_on_ids" widget="depend_on_ids_one2many" nolabel="1" options="{'link': false}" readonly="1" |
| 248 |
context="{ |
| 249 |
'depend_on_count': depend_on_count, |
| 250 |
'list_view_ref': 'project.open_view_blocked_by_list_view', |
| 251 |
'search_view_ref': 'project.project_sharing_project_task_view_search', |
| 252 |
'search_default_project_id': project_id, |
| 253 |
}"> |
| 254 |
<list editable="bottom" decoration-muted="state in ['1_done','1_canceled']"> |
| 255 |
<field name="project_id" column_invisible="True"/> |
| 256 |
<field name="sequence" widget="handle"/> |
| 257 |
<field name="state" widget="project_task_state_selection" nolabel="1" width="20px" readonly="1"/> |
| 258 |
<field name="subtask_count" column_invisible="1"/> |
| 259 |
<field name="closed_subtask_count" column_invisible="1"/> |
| 260 |
<field name="name" widget="name_with_subtask_count"/> |
| 261 |
<field name="allow_milestones" column_invisible="True"/> |
| 262 |
<field name="milestone_id" |
| 263 |
optional="hide" |
| 264 |
context="{'default_project_id': project_id}" |
| 265 |
invisible="not allow_milestones" |
| 266 |
column_invisible="not parent.allow_milestones" |
| 267 |
/> |
| 268 |
<field name="company_id" column_invisible="True"/> |
| 269 |
<field name="partner_id" options="{'no_open': True, 'no_create': True, 'no_edit': True}" optional="hide" invisible="not project_id"/> |
| 270 |
<field name="portal_user_names" string="Assignees" optional="show"/> |
| 271 |
<field name="date_deadline" decoration-danger="date_deadline < current_date and state not in ['1_done', '1_canceled']" optional="show"/> |
| 272 |
<field name="priority" widget="priority" optional="show" nolabel="1" width="20px" readonly="1"/> |
| 273 |
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" optional="hide"/> |
| 274 |
<field name="stage_id" optional="show"/> |
| 275 |
<button name="action_open_task" type="object" title="View Task" string="View Task" class="btn btn-link float-end" |
| 276 |
context="{'form_view_ref': 'project.project_sharing_project_task_view_form'}" |
| 277 |
invisible="project_id != context.get('active_id')"/> |
| 278 |
</list> |
| 279 |
</field> |
| 280 |
</page> |
| 281 |
</notebook> |
| 282 |
</sheet> |
| 283 |
<!-- field used inside the chatter to know if the portal user is follower or not --> |
| 284 |
<field name="message_is_follower" invisible="1"/> |
| 285 |
<field name="display_follow_button" invisible="1"/> |
| 286 |
<chatter/> |
| 287 |
</form> |
| 288 |
</field> |
| 289 |
</record> |
| 290 |
|
| 291 |
<record id="project_sharing_project_task_view_search" model="ir.ui.view"> |
| 292 |
<field name="name">project.task.search.form</field> |
| 293 |
<field name="model">project.task</field> |
| 294 |
<field name="inherit_id" ref="project.view_task_search_form_base"/> |
| 295 |
<field name="mode">primary</field> |
| 296 |
<field name="priority">999</field> |
| 297 |
<field name="arch" type="xml"> |
| 298 |
<filter name="creation_date_filter" position="after"> |
| 299 |
<filter string="Deadline" name="date_deadline" date="date_deadline"> |
| 300 |
<filter name="deadline_future" string="Future" domain="[('date_deadline', '>=', 'today +1d')]"/> |
| 301 |
<filter name="deadline_this_week" string="This Week" domain="[ |
| 302 |
('date_deadline', '>=', '=week_start'), |
| 303 |
('date_deadline', '<', '=week_start +1w'), |
| 304 |
]"/> |
| 305 |
<filter name="deadline_today" string="Today" domain="[ |
| 306 |
('date_deadline', '>=', 'today'), |
| 307 |
('date_deadline', '<', 'today +1d'), |
| 308 |
]"/> |
| 309 |
<filter name="deadline_past_due" string="Overdue" domain="[('date_deadline', '<', 'today')]"/> |
| 310 |
</filter> |
| 311 |
</filter> |
| 312 |
<filter name="create_date" position="after"> |
| 313 |
<filter string="Deadline" name="deadline" context="{'group_by': 'date_deadline'}"/> |
| 314 |
</filter> |
| 315 |
</field> |
| 316 |
</record> |
| 317 |
|
| 318 |
<record id="open_view_blocked_by_list_view" model="ir.ui.view"> |
| 319 |
<field name="name">open.view.blocked.by.list.view</field> |
| 320 |
<field name="model">project.task</field> |
| 321 |
<field name="inherit_id" ref="project.open_view_all_tasks_list_view"/> |
| 322 |
<field name="mode">primary</field> |
| 323 |
<field name="arch" type="xml"> |
| 324 |
<list position="attributes"> |
| 325 |
<attribute name="default_group_by"/> |
| 326 |
</list> |
| 327 |
<field name="user_ids" position="attributes"> |
| 328 |
<attribute name="invisible">1</attribute> |
| 329 |
</field> |
| 330 |
<field name="user_ids" position="after"> |
| 331 |
<field name="portal_user_names" string="Assignees" optional="show"/> |
| 332 |
</field> |
| 333 |
</field> |
| 334 |
</record> |
| 335 |
|
| 336 |
<record id="project_sharing_project_task_action" model="ir.actions.act_window"> |
| 337 |
<field name="name">Project Sharing</field> |
| 338 |
<field name="res_model">project.task</field> |
| 339 |
<field name="path">project_sharing</field> |
| 340 |
<field name="view_mode">kanban,list,form</field> |
| 341 |
<field name="search_view_id" ref="project.project_sharing_project_task_view_search"/> |
| 342 |
<field name="domain">[('project_id', '=', active_id), ('has_template_ancestor', '=', False)]</field> |
| 343 |
<field name="context">{ |
| 344 |
'default_project_id': active_id, |
| 345 |
'active_id_chatter': active_id, |
| 346 |
'delete': false, |
| 347 |
}</field> |
| 348 |
<field name="help" type="html"> |
| 349 |
<p class="o_view_nocontent_smiling_face"> |
| 350 |
No tasks found. Let's create one! |
| 351 |
</p> |
| 352 |
<p> |
| 353 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 354 |
Collaborate efficiently by chatting in real-time or via email. |
| 355 |
</p> |
| 356 |
</field> |
| 357 |
</record> |
| 358 |
|
| 359 |
<record id="project_sharing_kanban_action_view" model="ir.actions.act_window.view"> |
| 360 |
<field name="sequence" eval="10"/> |
| 361 |
<field name="view_mode">kanban</field> |
| 362 |
<field name="act_window_id" ref="project.project_sharing_project_task_action"/> |
| 363 |
<field name="view_id" ref="project.project_sharing_project_task_view_kanban"/> |
| 364 |
</record> |
| 365 |
|
| 366 |
<record id="project_sharing_tree_action_view" model="ir.actions.act_window.view"> |
| 367 |
<field name="sequence" eval="20"/> |
| 368 |
<field name="view_mode">list</field> |
| 369 |
<field name="act_window_id" ref="project.project_sharing_project_task_action"/> |
| 370 |
<field name="view_id" ref="project.project_sharing_project_task_view_tree"/> |
| 371 |
</record> |
| 372 |
|
| 373 |
<record id="project_sharing_form_action_view" model="ir.actions.act_window.view"> |
| 374 |
<field name="view_mode">form</field> |
| 375 |
<field name="act_window_id" ref="project.project_sharing_project_task_action"/> |
| 376 |
<field name="view_id" ref="project.project_sharing_project_task_view_form"/> |
| 377 |
</record> |
| 378 |
|
| 379 |
<record id="project_sharing_project_task_action_blocking_tasks" model="ir.actions.act_window"> |
| 380 |
<field name="name">Blocking</field> |
| 381 |
<field name="res_model">project.task</field> |
| 382 |
<field name="view_mode">list,kanban,form</field> |
| 383 |
<field name="search_view_id" ref="project.project_sharing_project_task_view_search"/> |
| 384 |
<field name="domain">[('depend_on_ids', '=', active_id), ('id', '!=', active_id)]</field> |
| 385 |
<field name="context">{'default_dependent_ids': active_id}</field> |
| 386 |
<field name="help" type="html"> |
| 387 |
<p class="o_view_nocontent_smiling_face"> |
| 388 |
No tasks found. Let's create one! |
| 389 |
</p><p> |
| 390 |
To get things done, use activities and status on tasks.<br/> |
| 391 |
Chat in real time or by email to collaborate efficiently. |
| 392 |
</p> |
| 393 |
</field> |
| 394 |
</record> |
| 395 |
|
| 396 |
<record id="project_sharing_blocking_tree_action_view" model="ir.actions.act_window.view"> |
| 397 |
<field name="view_mode">list</field> |
| 398 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_blocking_tasks"/> |
| 399 |
<field name="view_id" ref="project.project_sharing_project_task_view_tree"/> |
| 400 |
</record> |
| 401 |
|
| 402 |
<record id="project_sharing_blocking_kanban_action_view" model="ir.actions.act_window.view"> |
| 403 |
<field name="view_mode">kanban</field> |
| 404 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_blocking_tasks"/> |
| 405 |
<field name="view_id" ref="project.project_sharing_project_task_view_kanban"/> |
| 406 |
</record> |
| 407 |
|
| 408 |
<record id="project_sharing_blocking_form_action_view" model="ir.actions.act_window.view"> |
| 409 |
<field name="view_mode">form</field> |
| 410 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_blocking_tasks"/> |
| 411 |
<field name="view_id" ref="project.project_sharing_project_task_view_form"/> |
| 412 |
</record> |
| 413 |
|
| 414 |
<record id="project_sharing_project_task_action_sub_task" model="ir.actions.act_window"> |
| 415 |
<field name="name">Sub-tasks</field> |
| 416 |
<field name="res_model">project.task</field> |
| 417 |
<field name="view_mode">list,kanban,form</field> |
| 418 |
<field name="search_view_id" ref="project.project_sharing_project_task_view_search"/> |
| 419 |
<field name="domain">[('id', 'child_of', active_id), ('id', '!=', active_id)]</field> |
| 420 |
<field name="context">{'default_parent_id': active_id}</field> |
| 421 |
<field name="help" type="html"> |
| 422 |
<p class="o_view_nocontent_smiling_face"> |
| 423 |
No tasks found. Let's create one! |
| 424 |
</p><p> |
| 425 |
To get things done, use activities and status on tasks.<br/> |
| 426 |
Chat in real time or by email to collaborate efficiently. |
| 427 |
</p> |
| 428 |
</field> |
| 429 |
</record> |
| 430 |
|
| 431 |
<record id="project_sharing_subtasks_tree_action_view" model="ir.actions.act_window.view"> |
| 432 |
<field name="view_mode">list</field> |
| 433 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_sub_task"/> |
| 434 |
<field name="view_id" ref="project.project_sharing_project_task_view_tree"/> |
| 435 |
</record> |
| 436 |
|
| 437 |
<record id="project_sharing_subtasks_kanban_action_view" model="ir.actions.act_window.view"> |
| 438 |
<field name="view_mode">kanban</field> |
| 439 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_sub_task"/> |
| 440 |
<field name="view_id" ref="project.project_sharing_project_task_view_kanban"/> |
| 441 |
</record> |
| 442 |
|
| 443 |
<record id="project_sharing_subtasks_form_action_view" model="ir.actions.act_window.view"> |
| 444 |
<field name="view_mode">form</field> |
| 445 |
<field name="act_window_id" ref="project.project_sharing_project_task_action_sub_task"/> |
| 446 |
<field name="view_id" ref="project.project_sharing_project_task_view_form"/> |
| 447 |
</record> |
| 448 |
|
| 449 |
<record id="project_sharing_project_task_recurring_tasks_action" model="ir.actions.act_window"> |
| 450 |
<field name="name">Project Sharing Recurrence</field> |
| 451 |
<field name="res_model">project.task</field> |
| 452 |
<field name="view_mode">list,kanban,form</field> |
| 453 |
<field name="search_view_id" ref="project.project_sharing_project_task_view_search"/> |
| 454 |
<field name="help" type="html"> |
| 455 |
<p class="o_view_nocontent_smiling_face"> |
| 456 |
No tasks found. Let's create one! |
| 457 |
</p> |
| 458 |
<p> |
| 459 |
Keep track of the progress of your tasks from creation to completion.<br/> |
| 460 |
Collaborate efficiently by chatting in real-time or via email. |
| 461 |
</p> |
| 462 |
</field> |
| 463 |
</record> |
| 464 |
|
| 465 |
<record id="project_sharing_recurring_tasks_tree_action_view" model="ir.actions.act_window.view"> |
| 466 |
<field name="view_mode">list</field> |
| 467 |
<field name="act_window_id" ref="project.project_sharing_project_task_recurring_tasks_action"/> |
| 468 |
<field name="view_id" ref="project.project_sharing_project_task_view_tree"/> |
| 469 |
</record> |
| 470 |
|
| 471 |
<record id="project_sharing_recurring_tasks_kanban_action_view" model="ir.actions.act_window.view"> |
| 472 |
<field name="view_mode">kanban</field> |
| 473 |
<field name="act_window_id" ref="project.project_sharing_project_task_recurring_tasks_action"/> |
| 474 |
<field name="view_id" ref="project.project_sharing_project_task_view_kanban"/> |
| 475 |
</record> |
| 476 |
|
| 477 |
<record id="project_sharing_recurring_tasks_form_action_view" model="ir.actions.act_window.view"> |
| 478 |
<field name="view_mode">form</field> |
| 479 |
<field name="act_window_id" ref="project.project_sharing_project_task_recurring_tasks_action"/> |
| 480 |
<field name="view_id" ref="project.project_sharing_project_task_view_form"/> |
| 481 |
</record> |
| 482 |
</odoo> |