Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3314 Представления

I have created a metabase report and want to show in the odoo reports
I have generated a dynamic url based on the role of the USER using a api model and want to display the metabase web page from the menu.
 I tried to pass the URL value to HTML field. But when i tried to view it, It only shows after i save the record. How can i load the page without saving it.

my code 

class rsReportView(models.Model):
_name = "rs.report.view"
_description = "RS Reports"
manager_iframe = fields.Html("RT & TAT", sanitize=False, compute='_compute_manager_iframe')
def _compute_manager_iframe(self):



    manager_iframe = f'
src="https://reports.fsmbeta.unknwon.com/public
?manager={user_name}&teamlead={user_name}#hide_parameters=manager,teamlead"    frameborder="0"    width="100%"    height="600"    >'


View



RS Metabase viewfield>
rs.report.viewfield>






div>
group>
form>
field>
record>


How to solve it    




Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
нояб. 24
1722
1
сент. 21
9523
1
янв. 24
17094
0
мар. 15
3373
1
мар. 15
10021