Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Odoo Show

by
InitOS GmbH, Frederik Kramer
- 05/10/2022 11:56:59

HI David,

that is pretty useful. Finally we can get rid of PGAdmin then ;-) at least for the report and display part.

Thumbs up for sharing in the OCA and maybe doing a small lightning talk during the OCA event. What do you think?

Best Frederik

Am 05.10.22 um 00:02 schrieb David Vidal:
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:

image.png

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

image.png

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 :))

David

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

-- 
Dr.-Ing. Frederik Kramer
Geschäftsführer

initOS GmbH
Innungsstraße 7
21244 Buchholz i.d.N.

Phone:  +49 4181 13503-12
Fax:    +49 4181 13503-10
Mobil:  +49 179 3901819

Email: frederik.kramer@initos.com
Web:   www.initos.com

Geschäftsführung:
Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke

Sitz der Gesellschaft: Buchholz i.d.N.
Amtsgericht Tostedt, HRB 205226
Steuer-Nr: 15/200/53247
USt-IdNr.: DE815580155

Reference

  • Avatar

    Odoo Show

    by
    Tecnativa. S. L., David Vidal
    - 05/10/2022 00:00:11 - 2

    11 replies 11 replies