修改: 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呀