Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

RML is not available at specified location

By
Anuradha
on 8/6/13, 6:56 AM 3,221 views
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
0
Anuradha
On 8/7/13, 2:01 AM

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?

Erik Wellander
on 2/17/14, 1:21 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/6/13, 6:56 AM
Seen: 3221 times
Last updated: 3/16/15, 8:10 AM