Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4872 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 20
6258
1
มี.ค. 15
10748
2
ก.ย. 23
7503
2
มี.ค. 23
46537
2
ธ.ค. 23
57444