| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="project_update_view_search" model="ir.ui.view"> |
| 4 |
<field name="name">project.update.view.search</field> |
| 5 |
<field name="model">project.update</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<search string="Search Update"> |
| 8 |
<field name="name"/> |
| 9 |
<field name="project_id" invisible="1"/> |
| 10 |
<field name="user_id"/> |
| 11 |
<field name="description"/> |
| 12 |
<field name="status"/> |
| 13 |
<filter string="My Updates" name="my_updates" domain="[('user_id', '=', uid)]"/> |
| 14 |
<separator/> |
| 15 |
<filter string="On Track" name="on_track" domain="[('status', '=', 'on_track')]"/> |
| 16 |
<filter string="At Risk" name="at_risk" domain="[('status', '=', 'at_risk')]"/> |
| 17 |
<filter string="Off Track" name="off_track" domain="[('status', '=', 'off_track')]"/> |
| 18 |
<filter string="On Hold" name="on_hold" domain="[('status', '=', 'on_hold')]"/> |
| 19 |
<separator/> |
| 20 |
<filter name="date" string="Date" date="date"/> |
| 21 |
</search> |
| 22 |
</field> |
| 23 |
</record> |
| 24 |
|
| 25 |
<record id="project_update_view_form" model="ir.ui.view"> |
| 26 |
<field name="name">project.update.view.form</field> |
| 27 |
<field name="model">project.update</field> |
| 28 |
<field name="arch" type="xml"> |
| 29 |
<form string="Project Update" js_class="form_description_expander"> |
| 30 |
<sheet> |
| 31 |
<div class="oe_title"> |
| 32 |
<h1> |
| 33 |
<field name="name" class="o_text_overflow" placeholder="e.g. Monthly review"/> |
| 34 |
</h1> |
| 35 |
</div> |
| 36 |
<group> |
| 37 |
<group> |
| 38 |
<field name="project_id" invisible="1"/> |
| 39 |
<field name="color" invisible="1"/> |
| 40 |
<field name="status" widget="status_with_color"/> |
| 41 |
<field name="progress" widget="progressbar" options="{'editable': true}"/> |
| 42 |
</group> |
| 43 |
<group> |
| 44 |
<field name="user_id" widget="many2one_avatar_user" readonly="1"/> |
| 45 |
<field name="date"/> |
| 46 |
</group> |
| 47 |
</group> |
| 48 |
<separator/> |
| 49 |
<notebook> |
| 50 |
<page string="Description" name="description"> |
| 51 |
<field name="description" nolabel="1" class="o_project_update_description" options="{'resizable': false, 'collaborative': true}"/> |
| 52 |
</page> |
| 53 |
</notebook> |
| 54 |
</sheet> |
| 55 |
<chatter class="d-print-none" reload_on_follower="True"/> |
| 56 |
</form> |
| 57 |
</field> |
| 58 |
</record> |
| 59 |
|
| 60 |
<record id="project_update_view_kanban" model="ir.ui.view"> |
| 61 |
<field name="name">project.update.view.kanban</field> |
| 62 |
<field name="model">project.update</field> |
| 63 |
<field name="arch" type="xml"> |
| 64 |
<kanban highlight_color="color" sample="0" js_class="project_update_kanban"> |
| 65 |
<field name="color"/> |
| 66 |
<templates> |
| 67 |
<t t-name="card" class="o_project_update_card column-gap-0 column-gap-md-3 row-gap-2 flex-row flex-wrap align-items-center px-3"> |
| 68 |
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0"> |
| 69 |
<field name="name_cropped" class="fw-bolder"/> |
| 70 |
<div class="d-flex gap-1"> |
| 71 |
<field name="user_id" widget="many2one_avatar_user"/> |
| 72 |
<field name="user_id"/> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0"> |
| 76 |
<span>Status</span> |
| 77 |
<field name="color" invisible="1"/> |
| 78 |
<field name="status" class="fw-bolder" readonly="1" widget="status_with_color"/> |
| 79 |
</div> |
| 80 |
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0"> |
| 81 |
<span>Progress</span> |
| 82 |
<field name="progress_percentage" class="fw-bolder" widget="percentage"/> |
| 83 |
</div> |
| 84 |
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0"> |
| 85 |
<div id="tasks_stats" class="fw-bolder"> |
| 86 |
<span invisible="not task_count"> |
| 87 |
<field name="closed_task_count"/> / <field name="task_count"/> <field name="label_tasks"/> (<field name="closed_task_percentage"/>%) |
| 88 |
</span> |
| 89 |
<span invisible="task_count">0 <field name="label_tasks"/></span> |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0"> |
| 93 |
<div>Date</div> |
| 94 |
<field name="date" class="fw-bolder"/> |
| 95 |
</div> |
| 96 |
</t> |
| 97 |
</templates> |
| 98 |
</kanban> |
| 99 |
</field> |
| 100 |
</record> |
| 101 |
|
| 102 |
<record id="project_update_view_tree" model="ir.ui.view"> |
| 103 |
<field name="name">project.update.view.list</field> |
| 104 |
<field name="model">project.update</field> |
| 105 |
<field name="arch" type="xml"> |
| 106 |
<list sample="1" js_class="project_update_list"> |
| 107 |
<field name="name"/> |
| 108 |
<field name="user_id" widget="many2one_avatar_user" class="fw-bolder" optional="show"/> |
| 109 |
<field name="date" optional="show"/> |
| 110 |
<field name="progress" string="Progress" widget="progressbar" optional="show"/> |
| 111 |
<field name="color" column_invisible="True"/> |
| 112 |
<field name="status" widget="status_with_color"/> |
| 113 |
</list> |
| 114 |
</field> |
| 115 |
</record> |
| 116 |
|
| 117 |
<record id="project_update_all_action" model="ir.actions.act_window"> |
| 118 |
<field name="name">Dashboard</field> |
| 119 |
<field name="res_model">project.update</field> |
| 120 |
<field name="path">project-dashboard</field> |
| 121 |
<field name="view_mode">kanban,list,form</field> |
| 122 |
<field name="domain">[('project_id', '=', active_id)]</field> |
| 123 |
<field name="search_view_id" ref="project_update_view_search"/> |
| 124 |
<field name="help" type="html"> |
| 125 |
<p class="o_view_nocontent_smiling_face"> |
| 126 |
No updates found. Let's create one! |
| 127 |
</p><p> |
| 128 |
Get a snapshot of the status of your project and share its progress with key stakeholders. |
| 129 |
</p> |
| 130 |
</field> |
| 131 |
</record> |
| 132 |
</odoo> |