mirror of
https://gitlab.com/flectra-community/mis-builder.git
synced 2024-11-16 19:22:04 +00:00
✨ Import / Export of MIS Builder Templates and Styles
This commit is contained in:
parent
6b5e37f1ce
commit
953c359168
@ -68,14 +68,14 @@ class MisBuilderImportWizard(models.TransientModel):
|
|||||||
report_values = copy.deepcopy(report_entry)
|
report_values = copy.deepcopy(report_entry)
|
||||||
|
|
||||||
del report_values['extid']
|
del report_values['extid']
|
||||||
for kpi in report_values.get('kpi_ids', []):
|
for kpi in report_values['kpi_ids']:
|
||||||
del kpi['extid']
|
del kpi['extid']
|
||||||
for expr in kpi.get('expression_ids', []):
|
for expr in kpi['expression_ids']:
|
||||||
del expr['extid']
|
del expr['extid']
|
||||||
|
|
||||||
for kpi in report_values.get('subkpi_ids', []):
|
for kpi in report_values['subkpi_ids']:
|
||||||
del kpi['extid']
|
del kpi['extid']
|
||||||
for expr in kpi.get('expression_ids', []):
|
for expr in kpi['expression_ids']:
|
||||||
del expr['extid']
|
del expr['extid']
|
||||||
report_values['move_lines_source'] = self.env['ir.model'].search([('model', '=', report_values['move_lines_source'])]).id
|
report_values['move_lines_source'] = self.env['ir.model'].search([('model', '=', report_values['move_lines_source'])]).id
|
||||||
return report_values
|
return report_values
|
||||||
|
Loading…
Reference in New Issue
Block a user