mirror of
https://github.com/NaN-tic/tryton-upgrades.git
synced 2023-12-14 03:32:55 +01:00
sync_model_data
This commit is contained in:
parent
6e69f7b0b4
commit
973fe86e0e
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ with Transaction().start(dbname, 0, context=context):
|
|||
domain += [('id', 'not in', to_omit)]
|
||||
datas = Data.search(domain)
|
||||
print('LEN: ', len(datas))
|
||||
for data in datas:
|
||||
print(data)
|
||||
Data.sync([data])
|
||||
Data.sync(datas)
|
||||
|
||||
Transaction().commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue