Closed wai closed 1 year ago
Hi! currently you can do it with:
$records = $(search -m ir.attachment -f id -d [['res_model','=','ir.ui.view'],['name','like','assets_']])
unlink -m ir.attachment -i $records['id']
I expect to upload an update this weekend so that it can be operated directly (It is a bug that it is not currently working in this way):
unlink -m ir.attachment -i $(search -m ir.attachment -f id -d [['res_model','=','ir.ui.view'],['name','like','assets_']])['id']
That is awesome! Thanks @Tardo 🎉🎉🎉
I want to mass unlink some records after searching, and I found here already have some great syntax.
So it would be great if I can use the below syntax to unlink records.
unlink -m ir.attachment -i {{search -m ir.attachment -f id -d [['res_model','=','ir.ui.view'],['name','like','assets_']]}}.id
Thanks for the great tools. I hope I hadn't missed anything in the doc.