Openerp 6.0.1有人用过吗,新增产品功能中有个初始库存按钮不能正常使用
-
Environment Information :
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : zh_CN.cp936
Python Version : 2.5.2
OpenERP-Client Version : 6.0.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "netsvc.pyo", line 489, in dispatch
File "service\web_services.pyo", line 599, in dispatch
File "osv\osv.pyo", line 122, in wrapper
File "osv\osv.pyo", line 176, in execute
File "osv\osv.pyo", line 167, in execute_cr
File "C:\Program Files\OpenERP 6.0\Server\addons\stock\wizard\stock_change_product_qty.py", line 87, in change_product_qty
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) -
web端 频繁出现这个错误
Traceback (most recent call last):
File "netsvc.pyo", line 489, in dispatch
File "service\web_services.pyo", line 599, in dispatch
File "osv\osv.pyo", line 122, in wrapper
File "osv\osv.pyo", line 176, in execute
File "osv\osv.pyo", line 167, in execute_cr
File "C:\Program Files\OpenERP 6.0\Server\addons\hr\hr_department.py", line 94, in read
File "osv\orm.pyo", line 2921, in read
File "osv\orm.pyo", line 3041, in _read_flat
File "osv\fields.pyo", line 793, in get
File "C:\Program Files\OpenERP 6.0\Server\addons\base\ir\ir_actions.py", line 193, in _search_view
File "osv\orm.pyo", line 2908, in fields_get
File "osv\orm.pyo", line 1103, in fields_get
File "tools\misc.pyo", line 823, in cached_result
File "C:\Program Files\OpenERP 6.0\Server\addons\base\ir\ir_translation.py", line 174, in _get_source
File "sql_db.pyo", line 78, in wrapper
File "sql_db.pyo", line 131, in execute
InternalError: current transaction is aborted, commands ignored until end of transaction block -
@[email protected] 关于 6.0.1 更新当前库存的 wizard . 问题就出在 stock_change_product_qty.py 的第 87 行.
只需要把那行换成<br /><br /> inventory_id = inventry_obj.create(cr , uid, {'name': _('INV: ') + res_original.name}, context=context)<br /><br />
即可.