你应该找到这个po文件,将'\n'改成'\n', 然后update这个模块。然后再尝试导出。:)
1348647581qq.com
-
导出官方的中文翻译为PO文件时出错 -
Windows下安装UNO,配置AEROO_REPORT (Openoffice4已经升级为Python2.7.5版)请教楼主:按楼主的步骤过了一遍,当然我的是openoffice4的,步骤有一些变通。安装report_aeroo和reprot_aeroo_sample两个模块皆无问题。但是安装reprot_aeroo_direct_print和openoffice Help Addons时报错:[b]Warning! Unmet python dependencies!No module named cups[/b];
谢谢 -
Openerp 7.0设置产品退货操作权限不错
-
OpenERP的权限设置说的很清楚,谢谢!!
-
安装aeroo report时的问题@winson97,
windows下可以用ms office 做模板吗?
请问哪里有好的文档? -
安装aeroo report时的问题我想测试一下aeroo report,看看是不是更好用,但是过程中碰到一些问题:
一,第一个报错,具体什么忘了,(记起来的时候一定不上,不好意思)记得好像要修改一下文件:report_aeroo_direct_print/openerp.py:就是添加一行:“installer.xml”
[quote]'update_xml': ["data/report_aeroo_direct_data.xml",
"installer.xml",#就是添加这一行。
"report_aeroo_direct_print_view.xml",
"installer.xml",
"security/security_rules.xml",
"security/ir.model.access.csv"],[/quote]
二,第二个报错:点击“print screen”时,报错信息如下:
[quote]Aeroo Reports: Error while generating the report "name of the report"
13-04-20 10:15:36,721 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [01]:
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [02]: Environment Information :
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [03]: System : Linux-3.5.0-27-generic-i686-with-Ubuntu-12.10-quantal
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [04]: OS Name : posix
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [05]: Distributor ID: Ubuntu
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [06]: Description: Ubuntu 12.10
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [07]: Release: 12.10
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [08]: Codename: quantal
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [09]: Operating System Release : 3.5.0-27-generic
2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [10]: Operating System Version : #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [11]: Operating System Architecture : 32bit
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [12]: Operating System Locale : it_IT.UTF-8
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [13]: Python Version : 2.7.3
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [14]: OpenERP-Server Version : 7.0
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [15]: Report generation error!
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [16]: Traceback (most recent call last):
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [17]: File "/home/openerp/addons/report_aeroo/report_aeroo.py", line 439, in create_aeroo_report
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [18]: data = basic.generate(**oo_parser.localcontext).render().getvalue()
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [19]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/base.py", line 51, in render
2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [20]: return self.serializer(self.events)
2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [21]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 1202, in call
2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [22]: content = TContent(serialized_stream)
2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [23]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 808, in init
2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [24]: self.tree = lxml.etree.parse(StringIO(content))
2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [25]: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 13593: ordinal not in range(128)
2013-04-20 10:15:36,725 5868 ERROR gmc openerp.service.web_services: Exception: (u'Aeroo Reports: Error while generating the report "Sample Report".', UnicodeEncodeError('ascii', u'<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="ur
...
cut
...
tt\xf5s .</text:p></text:section><text:section text:style-name="Sect2" text:name="Section2"><text:p text:style-name="P9"/></text:section></office:text></office:body></office:document-content>', 13593, 13594, 'ordinal not in range(128)'))[/quote]
解决方案是:genshi的版本问题:只能是0.6.x版本,不能太高也不能太低。查看方法:
import genshi
print genshi.version
附件附上genshi 0.6.1版本
希望对大家有用,谢谢。 -
说说OpenERP的领料单>>"如果该产品是MTO(Make To Order),表示该产品没有库存,需要购买,系统提取该产品的供应商信息,自动生成采购订单。"
对于MTO的产品,如果没有库存,我的理解是应该生成生产订单啊。请楼主指正! -
增大form表单的合适宽度@jeff 谢谢指正,已更正。
-
增大form表单的合适宽度我发现,在form视图中的one2many字段(这里用A表示)的显示,如果A的字段很多,宽度超出form的宽度,form不会自适应宽度,效果很难看。于是我找到web模块下的base.css 文件,找到对应的css class:改为:
.openerp .oe_form_sheet_width{<br /> min-width:650px;<br /> max-width:3095px;<br /> margin:0 15px 15px;<br /> }
这里想分享一下,觉得应该有那么一点价值吧。嘿嘿 -
Windows下安装UNO,配置AEROO_REPORT (Openoffice4已经升级为Python2.7.5版)谢谢楼主哦。
-
Openerp tree view 中的分页问题很不错呀
-
Openerp压力测试:OpenERP Web Client 无缓存1000并发测试OpenERP Server 性能看到好贴,岂有不回之理?!
-
[分享]关于如何确认哪些模块继承修改过某对象的方法mark一下,这是我一直都想找的。谢了
-
Openerp中的小数精度问题我需要变单价的精度。我到product.product表中偷看标价的定义:
'list_price': fields.float('Sale Price', digits_compute=dp.get_precision('Product Price'), help="Base price to compute the customer price. Sometimes called the catalog price."),
对get_Precision的参数:Product Price莫名其妙。于是在开发群中得到joshua,shelly,ccdos,冰之星辰,东莞周等前辈的建议,发现oe单独开了一个模块来控制小数的精度:decimal_precision模块。在该模块中的py文件中,我找到了函数get_precision的定义:<br /> def precision_get(self, cr, uid, application):<br /> cr.execute('select digits from decimal_precision where name=%s', (application,))<br /> res = cr.fetchone()<br /> return res[0] if res else 2<br /><br />def get_precision(application):<br /> def change_digit(cr):<br /> res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, SUPERUSER_ID, application)<br /> return (16, res)<br /> return change_digit
也明白了为什么默认精度是2位:(有源码就是幸福)_defaults = {<br /> 'digits': 2,<br /> }
另外:用户界面的操作是:设置-数据库-小数精度
ps.每一个在群里得到自己问题答案的人,都有义务发相关帖,以帮助更多人。 -
如何在请假条审批后,生成工资扣款! -
OpenERP中国财务模块(l10n_cn)改进计划支持!期待!
-
OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错不止楼主解决问题了吗?我也碰到一样的问题。