Merge pull request #2945 from expsa/you_dev_odex25_project

Imp Project Status Report
This commit is contained in:
kchyounes19 2025-05-01 11:45:59 +01:00 committed by GitHub
commit 1931fcd64a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -457,7 +457,8 @@
<t t-if="not is_html_empty(e.description)"> <t t-if="not is_html_empty(e.description)">
<div style="page-break-inside: avoid;"> <div style="page-break-inside: avoid;">
<h5>Project Details</h5> <h5>Project Details</h5>
<span t-field="e.description"/> <!-- <span t-field="e.description"/>-->
<t t-raw="e.description"/>
</div> </div>
</t> </t>
</div> </div>

View File

@ -46,7 +46,7 @@ class ReportProjectStatus(models.AbstractModel):
# '.otf', '.woff', '.woff2' # '.otf', '.woff', '.woff2'
fonts_dict = {} fonts_dict = {}
installed_modules = self.env['ir.module.module'].search([('state', '=', 'installed')]).mapped('name') installed_modules = self.env['ir.module.module'].sudo().search([('state', '=', 'installed')]).mapped('name')
installed_modules_set = set(installed_modules) installed_modules_set = set(installed_modules)
from odoo.tools import config from odoo.tools import config
@ -83,7 +83,7 @@ class ReportProjectStatus(models.AbstractModel):
fig = plt.figure(figsize=(5, 4)) fig = plt.figure(figsize=(5, 4))
fonts = self.get_all_fonts_paths() fonts = self.get_all_fonts_paths()
prop = None prop = None
company_font_name = self.env.company.font company_font_name = self.env.company.sudo().font
if company_font_name: if company_font_name:
font_path = None font_path = None