“Aeroo报告功能在OpenERP中无法调用”

2024-05-26 11:54:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我在用OpenERP的Aero报告工作。我定义了一个函数,名为fill\u stars(self,amount):它接受金额并转换为文本格式。在

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

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

我检查了跟踪,结果是“函数未被调用”。在


Tags: 函数文本格式self定义报告错误exceptionfill
1条回答
网友
1楼 · 发布于 2024-05-26 11:54:07

过了很长时间,我找到了解决办法。希望这对大家都有帮助。在

如果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”。安装模块。在

最后,配置OpenOffice.org网站来自设置/技术/配置的连接OpenOffice.org网站co…然后按“连接”。在

这样做之后,我的职能和报告工作都很好。在

相关问题 更多 >