【问题标题】:Aeroo Report Function not Call in OpenERP在 OpenERP 中没有调用 Aeroo 报告功能
【发布时间】:2013-11-22 07:56:27
【问题描述】:

我在 OpenERP 中使用 Aeroo 报告。我定义了一个名为 fill_stars(self, amount): 的函数,它接受金额并转换为文本格式。

当我要打印报告时,它给出了以下错误

Exception: (u'Aeroo Reports: Error while generating the report "Invoice Report".', UndefinedError('"fill_stars" not defined',))

我检查了track-back,结果是“函数没有被调用”。

【问题讨论】:

    标签: python xml openerp reportlab rml


    【解决方案1】:

    经过很长时间,我找到了解决方案。希望对大家有所帮助。

    如果您的 Libreoffice 服务器和 telnet 服务器未启动,则您的函数将不会调用。

    在服务器上启动的步骤。

    cd /usr/lib/libreoffice/program/ #to move to the libreoffice:
    
    ./soffice -nologo -nofirststartwizard -headless -norestore -invisible "-accept=socket,host=localhost,port=8100,tcpNoDelay=1;urp;" #Open Libreoffice server
    
    telnet localhost 8100 #Open another terminal and Test Localhost
    

    然后转到设置/模块/更新模块列表:搜索“ooo”,您会找到“report_aeroo_ooo”。安装模块。

    最后,从 Setting/Technical/Configure OpenOffice.org co.. 配置 OpenOffice.org 连接,然后按连接。

    完成后,我的功能和报告运行良好。

    【讨论】:

      猜你喜欢
      • 2012-09-01
      • 1970-01-01
      • 2015-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多