Imp Project Status Report
This commit is contained in:
parent
444db62304
commit
f3691dd3fc
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue