Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4877 Zobrazení

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?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 20
6258
1
bře 15
10749
2
zář 23
7503
2
bře 23
46538
2
pro 23
57447