exportoo/test-remote.py

22 lines
603 B
Python
Raw Normal View History

2022-01-18 00:37:28 +01:00
from remote import *
2022-01-18 00:00:19 +01:00
2022-01-18 00:37:28 +01:00
autolog()
print( search('res.users', [('id','=',7)]) )
print( fields('product.uom', []) )
print( lookup('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
print( save('product.uom', [('id','=',24)], recurse='product.uom,product.uom.categ') )
deps = {
2022-01-18 00:38:13 +01:00
'ir.model': ['ir.model.fields'],
'product.uom': ['product.uom','product.uom.categ'],
2022-01-18 00:37:28 +01:00
}
backups = {
2022-01-18 00:38:13 +01:00
'ir.model': [],
2022-01-18 00:44:05 +01:00
'res.users': search('res.users', [('name','in',['poka','Thomas Di Gregorio'])]),
2022-01-18 00:37:28 +01:00
'product.uom': [20,21,22,23,24],
2022-01-18 01:09:41 +01:00
}
# ./remote.py ir.module.module search installed_version != false