コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4890 ビュー

I have created a cron job to update account.resource object every day using 'write' :

  1. search for the resource
  2. update the resource

exist = self.pool.get('account.resource').search(cr, uid, [('resource_ID', '=', some_id)], context=context) 
print exist
if len(exist) != 0:
          print 'resource found'
          res = self.pool.get('account.resource').write(cr, uid,exist,{'status': 'done', })                        
          print res

In my console I got

[7]
resource found
none

OpenERP finds the resource but doesn't update it any idea?

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 20
6267
1
3月 15
10764
2
9月 23
7509
2
3月 23
46547
2
12月 23
57496