-- This is a follow-up of odoo/enterprise#72736 -- The project overview is a significant technical debt as it is a custom qweb view. It is quite limited: It is not possible to group the data, to filter on dates, SOs or Field Service projects. Improving this is very difficult and would require weeks of development that are not worth it. In any case, all the information provided by the project overview can be found elsewhere. The stat buttons of the report are basically duplicates of the ones from the project form view. Therefore, we are removing this report and its twin, the Project Costs and Revenues. In addition, analytic items lack context for the user to understand what generated a certain cost or revenue: there is no link to the source document; the entries are not categorized (e.g. it is not easy to understand if a cost comes from a timesheet cost, a purchase order or an expense); the billable type group by works fine for timesheets but then all the other entries are flagged as Undefined, which is not very helpful; there is no option to easily isolate costs from revenues. task-2637495 See odoo/enterprise#20740 closes odoo/odoo#77547 X-original-commit: 9bbfd3c8f948a3a947cbc0eb73ffc5d89c23d4ca Related: odoo/enterprise#21324 Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
75 lines
3.1 KiB
XML
75 lines
3.1 KiB
XML
<?xml version="1.0"?>
|
||
<odoo>
|
||
<template id="project.milestone_deadline">
|
||
<t t-if="milestone['deadline']">
|
||
(due <t t-esc="milestone['deadline']" t-options='{"widget": "date"}'/><t t-if="not milestone['is_reached'] or not milestone['reached_date']">)</t><t t-else=""> - reached on<t t-if="milestone['reached_date'] > milestone['deadline']">
|
||
<font t-att-style="'color: rgb(' + str(color_level) + ', 0, 0)'"><b><t t-esc="milestone['reached_date']" t-options='{"widget": "date"}'/></b></font>)</t><t t-else="">
|
||
<font t-att-style="'color: rgb(0, ' + str(color_level) + ', 0)'"><b><t t-esc="milestone['reached_date']" t-options='{"widget": "date"}'/></b></font>)</t></t>
|
||
</t>
|
||
</template>
|
||
|
||
<template id="project_update_default_description" name="Project Update Description">
|
||
<!--As this template is rendered in an html field, the spaces may be interpreted as nbsp while editing. -->
|
||
<div name="summary">
|
||
<br/><h1 style="font-weight: bolder;">Sprint Summary</h1>
|
||
<br/><p>How’s this project going?</p><br/><br/>
|
||
</div>
|
||
|
||
<div name="activities" t-if="show_activities">
|
||
<h1 style="font-weight: bolder;">Activities</h1>
|
||
</div>
|
||
|
||
<div name="milestone">
|
||
<t t-if="milestones['show_section']">
|
||
<br/>
|
||
<h3 style="font-weight: bolder"><u>Milestones</u></h3>
|
||
|
||
<ul class="o_checklist" t-if="milestones['list']">
|
||
<t t-foreach="milestones['list']" t-as="milestone" t-key="milestone['id']">
|
||
<li t-attf-class="{{milestone['is_reached'] and 'o_checked' or ''}}">
|
||
<t t-esc="milestone['name']"/>
|
||
<span t-if="milestone['is_deadline_future'] and not milestone['is_reached']"><font style="color: rgb(190, 190, 190);"><t t-set="color_level" t-value="64"/><t t-call="project.milestone_deadline"/></font></span>
|
||
<span t-else=""><t t-set="color_level" t-value="128"/><t t-call="project.milestone_deadline"/></span>
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
|
||
<t t-if="milestones['updated']">
|
||
<t t-if="milestones['last_update_date']">Since <t t-esc="milestones['last_update_date']" t-options='{"widget": "date"}'/> (last project update), </t>
|
||
<t t-if="len(milestones['updated']) > 1">the deadline of the following milestones has been updated:</t>
|
||
<t t-else="">the deadline of the following milestone has been updated:</t>
|
||
<ul>
|
||
<t t-foreach="milestones['updated']" t-as="milestone" t-key="milestone['id']">
|
||
<li>
|
||
<t t-esc="milestone['name']"/> (<t t-esc="milestone['old_value']" t-options='{"widget": "date"}'/> => <t t-esc="milestone['new_value']" t-options='{"widget": "date"}'/>)
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
</t>
|
||
|
||
<t t-if="milestones['created']">
|
||
<t t-if="len(milestones['created']) > 1">The following milestones have been added:</t>
|
||
<t t-else="">The following milestone has been added:</t>
|
||
<ul>
|
||
<t t-foreach="milestones['created']" t-as="milestone" t-key="milestone['id']">
|
||
<li>
|
||
<t t-esc="milestone['name']"/><span t-if="milestone['is_deadline_future'] and not milestone['is_reached']">
|
||
<font style="color: rgb(190, 190, 190);">
|
||
<t t-set="color_level" t-value="64"/>
|
||
<t t-call="project.milestone_deadline"/>
|
||
</font>
|
||
</span>
|
||
<span t-else="">
|
||
<t t-set="color_level" t-value="128"/>
|
||
<t t-call="project.milestone_deadline"/>
|
||
</span>
|
||
</li>
|
||
</t>
|
||
</ul>
|
||
</t>
|
||
</t>
|
||
</div>
|
||
</template>
|
||
|
||
</odoo>
|