Hello every body ,
Please I want to generate report when I click on button from wizared form using webkite but I do not know how to make this technice ,
this report for Chart of account
Thank you for all
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello every body ,
Please I want to generate report when I click on button from wizared form using webkite but I do not know how to make this technice ,
this report for Chart of account
Thank you for all
##################1st create report like this :#########################
<report
auto="False"
id="report_test_report"
model="report.model"
name="report_testing_model"
file="report_testing/report/report_webkit.mako"
string="Webkit report"
report_type="webkit"
webkit_header=""/>
######################create a mako file like this...####################
<html>
<head>
</head>
<body>
<br><br>
<table border="1.0" width="100%" >
<tr>
<th>Name</th>
<th>Experience</th>
<th>Salary</th>
</tr>
%for obj in objects:
<tr>
<td>${obj.name}</td>
<td>${obj.exp}</td>
<td>${obj.sal}</td>
</tr>
%endfor
</table>
</body>
</html>
##################atlast make your print button to do this###############
return {
'type':'ir.actions.report.xml',
'report_name':'report_testing_model',
'datas':datas,
'context':context
}
this is sample...
u can get some more details here
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
3
ก.ย. 18
|
5543 | ||
|
0
ก.พ. 16
|
3653 | ||
|
0
ส.ค. 15
|
5505 | ||
|
1
มี.ค. 15
|
460 | ||
Currency by defaults
แก้ไขแล้ว
|
|
3
มี.ค. 15
|
440 |