IMP Project Status Report

This commit is contained in:
younes 2025-08-11 13:51:25 +01:00
parent 217298ca4f
commit 0f7839b899
4 changed files with 25 additions and 8 deletions

View File

@ -188,6 +188,10 @@
margin-top: 20px;
page-break-inside: avoid;
}
.custom-html img {
width: 200px !important;
height: 200px !important;
}
</style>
<div class="page">
<h5>
@ -458,7 +462,9 @@
<div style="page-break-inside: avoid;">
<h5>Project Details</h5>
<!-- <span t-field="e.description"/>-->
<t t-raw="e.description"/>
<div class="custom-html">
<t t-raw="e.description"/>
</div>
</div>
</t>
</div>

View File

@ -0,0 +1,5 @@
.custom-html-project img {
width: 200px !important;
height: 200px !important;
}

View File

@ -1,11 +1,16 @@
<odoo>
<template id="assets_backend" inherit_id="web.assets_backend"
name="Progress bar">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss"
href="/project_base/static/src/css/progress_bar_color.css"/>
<script type="text/javascript"
src="/project_base/static/src/js/progress_bar_color.js"/>
</xpath>
name="Progress bar">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss"
href="/project_base/static/src/css/progress_bar_color.css"/>
<script type="text/javascript"
src="/project_base/static/src/js/progress_bar_color.js"/>
</xpath>
<xpath expr="link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/project_base/static/src/scss/project_base.scss"/>
</xpath>
</template>
</odoo>

View File

@ -139,6 +139,7 @@
</xpath>
<xpath expr="//field[@name='description']" position="attributes">
<attribute name="attrs">{'readonly':[('state','not in',['draft','confirm'])]}</attribute>
<attribute name="class">custom-html-project</attribute>
</xpath>
<xpath expr="//field[@name='company_id']" position="attributes">
<attribute name="attrs">{'readonly':True}</attribute>