Contributors mailing list archives
Re: Odoo Showby
Sunflower IT, Tom Blauwendraat
Cool! Will you do a techtalk about it on OCA days :-)
On 10/5/22 00:02, David Vidal wrote:
I have been working for fun on this little tool (https://github.com/chienandalu/odooshow) to facilitate the inspection of the data of a recordset. Any time you're into the Odoo shell either debugging any process or entering the console in a production instance we can import the show method of the library and we will see a table with the default tree fields for that record. Something like this:
Even more, you'll get links to the records urls so you can inspect them directly in the browser! (only in consoles that support console links).
By adding more attributes we can create more complex views by deciding which fields to show, grouping the records, etc. I'm working on documentation, for the moment you can see the code itself ;)
You can see a demo here -> https://asciinema.org/a/525597
There's also limited support for OdooRPC, but some special cases need to be covered.
To render the tables, I'm using the fantastic rich (https://github.com/Textualize/rich) which I can't stop recommending to everyone :)
I hope you enjoy it! (PRs and issues are welcome :))