I have created a menu under Reporting menu same as Reporting/Point of sale/Sale Details but when clicking on print button it shows error "RML is not available at specified location or not enough data to print!
(None, None, None)"
My code
from openerp.osv import fields, osv
import time
class calldata_print_report_wiz(osv.osv_memory):
_name = "calldata.print.report.wiz"
_columns = {
'date_start': fields.date('Date Start', required=True),
'date_end': fields.date('Date End', required=True),
'Caller': fields.char('Caller'),
}
_defaults = {
'date_start': lambda *a: time.strftime('%Y-%m-%d'),
'date_end': lambda *a: time.strftime('%Y-%m-%d'),
}
def print_report(self, cr, uid, ids, context=None):
datas = {'ids': context.get('active_ids', [])}
res = self.read(cr, uid, ids, ['date_start', 'date_end', 'Caller'], context=context)
res = res and res[0] or {}
datas['form'] = res
print datas
return {
'type': 'ir.actions.report.xml',
'report_name': 'calldata_report',
'datas': datas,
}
calldata_print_report_wiz()
i have file calldata_report.rml inside calldetails/report directory. then why it shows the error? Please help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
8734
Lượt xem
Corrected error . i was given an incorrect path for rml..
Where is this path adjusted? I'm not a programmer but I have seen this error several times in test installs, and never found how to correct it?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 7 24
|
8368 | ||
|
0
thg 4 17
|
3087 | ||
|
1
thg 4 17
|
4482 | ||
|
1
thg 11 16
|
4405 | ||
|
2
thg 11 15
|
4855 |