Sync all ir.model.data records, not only the ones out of sync.

This commit is contained in:
Albert Cervera i Areny 2019-07-09 00:18:46 +02:00
parent aede1c50f3
commit da500dcfb0

View file

@ -27,7 +27,8 @@ logger.addHandler(ch)
with Transaction().start(dbname, 0, context=context):
Data = pool.get('ir.model.data')
datas = Data.search([('out_of_sync', '=', True)])
#datas = Data.search([('out_of_sync', '=', True)])
datas = Data.search([])
Data.sync(datas)
Transaction().commit()