Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1434 Переглядів

I added this in employee print menu which print report of employee data

I need to make popup showen when i click on this submenu before printing report 
any help?

This is the code:

<report
id="report_payroll_excuse_absence"
model="hr.employee"
string="تبرير غياب"
name="gescoly_timeoff.report_employee_execuse_absence"
file="gescoly_timeoff.report_employee_execuse_absence"
report_type="qweb-pdf"
/>


<template id="report_employee_execuse_absence">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.external_layout">
<div class="page" style="direction: rtl;">
<h3 class="text-center">
تبرير غياب(الإدارة العامة)

</h3>
<br/>

<div class="bordered text-right table-******** "
style="border:1px solid black; padding:10px; font-size:20px; font-weight:bold;">
<div class=" row">
<div class=" text-right col-4 ">
الأخ/الأخت:
<span t-field="doc.name"/>
</div>
<div class=" text-left col-3">
الوظيفة:
<span t-field="doc.job_title"/>
</div>


Аватар
Відмінити

Hi, you should create action instead of report then action return report.

Найкраща відповідь

Hi Asmaa,

I am already doing this things in Odoo14 override Javascript function and change in part of Qweb-Pdf.


this above image is Odoo15 you need to override and change.

here my Odoo14 solution below image.

Thank you. 

Аватар
Відмінити

Thank you so much Nikhil i have face same issue but resolve.

Найкраща відповідь

Hi, you can follow following link for this:

https://youtu.be/oMnHpHH54QU

Thanks

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
серп. 25
2409
1
лип. 25
909
1
серп. 25
1151
0
трав. 25
1344
2
квіт. 25
3567