changes
This commit is contained in:
7
fusion_plating/scripts/fp_debug_mo.py
Normal file
7
fusion_plating/scripts/fp_debug_mo.py
Normal file
@@ -0,0 +1,7 @@
|
||||
env = env # noqa
|
||||
mo49 = env['mrp.production'].browse(49)
|
||||
print('id=49:', mo49.name, 'state=', mo49.state, 'company=', mo49.company_id.id)
|
||||
mo47 = env['mrp.production'].browse(47)
|
||||
print('id=47:', mo47.name, 'state=', mo47.state, 'company=', mo47.company_id.id)
|
||||
res = env['mrp.production'].search([('state', '=', 'done')], order='id desc', limit=3)
|
||||
for m in res: print('got:', m.id, m.name, m.state)
|
||||
Reference in New Issue
Block a user