22 lines
603 B
Python
22 lines
603 B
Python
from remote import *
|
|
|
|
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 = {
|
|
'ir.model': ['ir.model.fields'],
|
|
'product.uom': ['product.uom','product.uom.categ'],
|
|
}
|
|
|
|
backups = {
|
|
'ir.model': [],
|
|
'res.users': search('res.users', [('name','in',['poka','Thomas Di Gregorio'])]),
|
|
'product.uom': [20,21,22,23,24],
|
|
}
|
|
|
|
# ./remote.py ir.module.module search installed_version != false
|