73 2014-06-04 05:19:29,536 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [14]: OpenERP-Server Version : 7.0-20140525-231206
274 2014-06-04 05:19:29,536 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [15]: Report generation error!
275 2014-06-04 05:19:29,536 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [16]: Traceback (most recent call last):
276 2014-06-04 05:19:29,536 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [17]: File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 439, in create_aeroo_report
277 2014-06-04 05:19:29,536 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [18]: data = basic.generate(**oo_parser.localcontext).render().getvalue()
278 2014-06-04 05:19:29,536 6076 ERROR odoo 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
279 2014-06-04 05:19:29,538 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [20]: return self.serializer(self.events)
280 2014-06-04 05:19:29,538 6076 ERROR odoo 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", l ine 1203, in call
281 2014-06-04 05:19:29,538 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [22]: content = TContent(serialized_stream)
282 2014-06-04 05:19:29,538 6076 ERROR odoo 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", l ine 809, in init
283 2014-06-04 05:19:29,538 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [24]: self.tree = lxml.etree.parse(StringIO(content))
284 2014-06-04 05:19:29,538 6076 ERROR odoo openerp.loglevels.deprecated.report_aeroo: [25]: UnicodeEncodeError: 'ascii' codec can't encode characters in position 1930-1932: ordinal not in range(128)
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
yfjelley
-
利用aeroo 做报表时报错,求高手指点? 我报表采用的微软雅黑的字体? -
执行已安排的升级模块每次都提示我要升级模块aeroo_report?执行已安排的升级模块每次都提示我要升级模块aeroo_report,折腾了很久,原来是addons 下没有aeroo_report模块,添加aeroo_report 到addons,重新安装解决问题, 谢谢@南京-ccdos 和 @广州-步科 的热心帮助!
-
我想获得销售订单中,产品列表中 单个产品的id,写了一个方法,但是一直没法实现?求大神给出方法!修改: product = product_obj.browse(cr,uid,ids, product_id)[0].name
打印信息:
[1]
<openerp.sql_db.Cursor object at 0xb08e950c>
1
{'lang': 'zh_CN', 'tz': 'Asia/Shanghai', 'uid': 1}
<openerp.osv.orm.product.product object at 0xb39cf9cc>
服务
2014-05-22 06:47:37,748 9334 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 06:47:37] "POST /web/dataset/call_button HTTP/1.1" 200 -
2014-05-22 06:47:37,830 9334 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 06:47:37] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2014-05-22 06:47:37,838 9334 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 06:47:37] "POST /web/dataset/call_kw HTTP/1.1" 200 -
[2]
<openerp.sql_db.Cursor object at 0xb084d06c>
1
{'lang': 'zh_CN', 'tz': 'Asia/Shanghai', 'uid': 1}
<openerp.osv.orm.product.product object at 0xb39cf9cc>
iphone
但是打印信息第一个为什么是服务呢,应该是iphone呀 -
我想获得销售订单中,产品列表中 单个产品的id,写了一个方法,但是一直没法实现?求大神给出方法![browse_record(product.product, 2)] 这样得到的是一个函数browse_record(product.product, 2) 怎样得到这个函数的返回的值呢
-
我想获得销售订单中,产品列表中 单个产品的id,写了一个方法,但是一直没法实现?求大神给出方法!修改: product = product_obj.browse(cr, uid,ids, product_id)
打印信息:
[1]
<openerp.sql_db.Cursor object at 0xb1c4f6cc>
1
{'lang': 'zh_CN', 'tz': 'Asia/Shanghai', 'uid': 1}
<openerp.osv.orm.product.product object at 0xb32ccecc>
[browse_record(product.product, 1)]
2014-05-22 04:59:40,054 6318 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 04:59:40] "POST /web/dataset/call_button HTTP/1.1" 200 -
2014-05-22 04:59:40,160 6318 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 04:59:40] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2014-05-22 04:59:40,164 6318 INFO odoo werkzeug: 192.168.213.1 - - [22/May/2014 04:59:40] "POST /web/dataset/call_kw HTTP/1.1" 200 -
[2]
<openerp.sql_db.Cursor object at 0xb1b1f2cc>
1
{'lang': 'zh_CN', 'tz': 'Asia/Shanghai', 'uid': 1}
<openerp.osv.orm.product.product object at 0xb32ccecc>
[browse_record(product.product, 2)] -
我想获得销售订单中,产品列表中 单个产品的id,写了一个方法,但是一直没法实现?求大神给出方法!是一个按钮,
-
我想获得销售订单中,产品列表中 单个产品的id,写了一个方法,但是一直没法实现?求大神给出方法!方法:
def print_order(self, cr, uid, ids,product_id): | print_pct [sale_order]
872 product_obj = self.pool.get('product.product') | manual_invoice [sale_order
873 if not product_id: | action_view_invoice [sale_
874 raise osv.except_osv(_('The product is not Defined!'), _('The product is not Defined!')) | test_no_product [sale_orde
875 product = product_obj.browse(cr, uid, product_id) | action_invoice_create [sal
876 print "" | action_invoice_cancel [sal
877 print cr | action_invoice_end [sale_o
878 print uid | action_cancel [sale_order]
879 print product_id | action_button_confirm [sal
880 print product_obj | action_wait [sale_order]
881 print product | action_quotation_send [sal
882 print "" | action_done [sale_order]
883 return product
打印的信息:
<openerp.sql_db.Cursor object at 0xb574da2c>
1
{'lang': 'zh_CN', 'tz': 'Asia/Shanghai', 'uid': 1}
<openerp.osv.orm.product.product object at 0xb1271eac>
我想获得产品id 该怎么改呢?求大神给出方法?