mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-20 09:01:59 +02:00
19.0 vanilla
This commit is contained in:
parent
a2f74aefd8
commit
4a4d12c333
844 changed files with 212348 additions and 270090 deletions
|
|
@ -11,7 +11,6 @@
|
|||
<field name="description"/>
|
||||
<field name="status"/>
|
||||
<filter string="My Updates" name="my_updates" domain="[('user_id', '=', uid)]"/>
|
||||
<filter string="Followed Updates" name="followed_updates" domain="[('message_is_follower', '=', True)]"/>
|
||||
<separator/>
|
||||
<filter string="On Track" name="on_track" domain="[('status', '=', 'on_track')]"/>
|
||||
<filter string="At Risk" name="at_risk" domain="[('status', '=', 'at_risk')]"/>
|
||||
|
|
@ -27,7 +26,7 @@
|
|||
<field name="name">project.update.view.form</field>
|
||||
<field name="model">project.update</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Project Update" class="o_form_project_update" js_class="form_description_expander">
|
||||
<form string="Project Update" js_class="form_description_expander">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
|
|
@ -38,7 +37,7 @@
|
|||
<group>
|
||||
<field name="project_id" invisible="1"/>
|
||||
<field name="color" invisible="1"/>
|
||||
<field name="status" widget="status_with_color" options="{'color_field': 'color'}"/>
|
||||
<field name="status" widget="status_with_color"/>
|
||||
<field name="progress" widget="progressbar" options="{'editable': true}"/>
|
||||
</group>
|
||||
<group>
|
||||
|
|
@ -53,11 +52,7 @@
|
|||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids" options="{'post_refresh':True}" groups="base.group_user"/>
|
||||
<field name="activity_ids"/>
|
||||
<field name="message_ids"/>
|
||||
</div>
|
||||
<chatter class="d-print-none" reload_on_follower="True"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -66,34 +61,38 @@
|
|||
<field name="name">project.update.view.kanban</field>
|
||||
<field name="model">project.update</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_pupdate_kanban" sample="1" js_class="project_update_kanban">
|
||||
<kanban highlight_color="color" sample="0" js_class="project_update_kanban">
|
||||
<field name="color"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="{{!selection_mode ? 'oe_kanban_color_' + record.color.raw_value : ''}} oe_kanban_global_click o_pupdate_kanban_card">
|
||||
<!-- Project Update Kanban View is always ungrouped - see js_class -->
|
||||
<div class="o_kanban_detail_ungrouped row">
|
||||
<div class="col-sm-4 col-6 o_pupdate_name">
|
||||
<b><field name="name_cropped"/></b>
|
||||
<div>
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
<t t-esc="record.user_id.value"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2 text-sm-start col-6 align-end">
|
||||
<field name="color" invisible="1"/>
|
||||
<b><field name="status" widget="status_with_color" options="{'color_field': 'color'}"/></b>
|
||||
</div>
|
||||
<div class="col-sm-2 col-6 pb-0">
|
||||
<b><field name="progress_percentage" widget="percentage"/></b>
|
||||
<div>Progress</div>
|
||||
</div>
|
||||
<div class="col-sm-2 col-6 pb-0">
|
||||
<b><field name="date"/></b>
|
||||
<div>Date</div>
|
||||
</div>
|
||||
<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">
|
||||
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0">
|
||||
<field name="name_cropped" class="fw-bolder"/>
|
||||
<div class="d-flex gap-1">
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
<field name="user_id"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0">
|
||||
<span>Status</span>
|
||||
<field name="color" invisible="1"/>
|
||||
<field name="status" class="fw-bolder" readonly="1" widget="status_with_color"/>
|
||||
</div>
|
||||
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0">
|
||||
<span>Progress</span>
|
||||
<field name="progress_percentage" class="fw-bolder" widget="percentage"/>
|
||||
</div>
|
||||
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0">
|
||||
<div id="tasks_stats" class="fw-bolder">
|
||||
<span invisible="not task_count">
|
||||
<field name="closed_task_count"/> / <field name="task_count"/> <field name="label_tasks"/> (<field name="closed_task_percentage"/>%)
|
||||
</span>
|
||||
<span invisible="task_count">0 <field name="label_tasks"/></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 flex-shrink-0 w-50 w-md-auto px-2 px-md-0">
|
||||
<div>Date</div>
|
||||
<field name="date" class="fw-bolder"/>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
|
|
@ -101,25 +100,25 @@
|
|||
</record>
|
||||
|
||||
<record id="project_update_view_tree" model="ir.ui.view">
|
||||
<field name="name">project.update.view.tree</field>
|
||||
<field name="name">project.update.view.list</field>
|
||||
<field name="model">project.update</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree sample="1" js_class="project_update_list">
|
||||
<list sample="1" js_class="project_update_list">
|
||||
<field name="name"/>
|
||||
<field name="user_id" widget="many2one_avatar_user" class="fw-bold" optional="show"/>
|
||||
<field name="user_id" widget="many2one_avatar_user" class="fw-bolder" optional="show"/>
|
||||
<field name="date" optional="show"/>
|
||||
<field name="progress_percentage" string="Progress" widget="percentage" optional="show"/>
|
||||
<field name="color" invisible="1"/>
|
||||
<field name="status" widget="status_with_color" options="{'color_field': 'color'}"/>
|
||||
</tree>
|
||||
<field name="progress" string="Progress" widget="progressbar" optional="show"/>
|
||||
<field name="color" column_invisible="True"/>
|
||||
<field name="status" widget="status_with_color"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="project_update_all_action" model="ir.actions.act_window">
|
||||
<field name="name">Project Updates</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="name">Dashboard</field>
|
||||
<field name="res_model">project.update</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="path">project-dashboard</field>
|
||||
<field name="view_mode">kanban,list,form</field>
|
||||
<field name="domain">[('project_id', '=', active_id)]</field>
|
||||
<field name="search_view_id" ref="project_update_view_search"/>
|
||||
<field name="help" type="html">
|
||||
|
|
@ -130,5 +129,4 @@
|
|||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue