1

我继承了 purchase.order 中的状态 - 添加了修订,关闭。

修订状态是允许采购订单在批准后修改价格或添加项目。

但发生的情况是我无法在此添加状态下添加新项目行,它总是会提示以下错误消息。

Environment Information :
System : Windows-post2008Server-6.1.7600
OS Name : nt
Operating System Release : post2008Server
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.6.5
OpenERP-Client Version : 6.1.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 "osv\orm.pyo", line 2947, in read
  File "osv\orm.pyo", line 3070, in _read_flat
KeyError: 10340

经过研究,我发现只有在核心提供的状态之外添加新项目行时才会遇到此错误。

我尝试添加完成和批准状态,它允许我,但不是在我的修订或关闭状态。

4

0 回答 0