Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Odoo Show

by
Tecnativa. S. L., David Vidal
- 05/10/2022 00:00:11
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

Follow-Ups

  • Avatar

    Re: Odoo Show

    by
    Tecnativa. S. L., David Vidal
    - 05/10/2022 13:58:58 - 0
  • Avatar

    Re: Odoo Show

    by
    Tecnativa. S. L., David Vidal
    - 05/10/2022 13:54:11 - 0
  • Avatar

    Re: Odoo Show

    by
    Tecnativa. S. L., David Vidal
    - 05/10/2022 13:52:58 - 0
  • Avatar

    Re: Odoo Show

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

    Re: Odoo Show

    by
    Juan José Scarafía
    - 05/10/2022 11:12:37 - 0
  • Avatar

    Re: Odoo Show

    by
    simon
    - 05/10/2022 10:41:41 - 0
  • Avatar

    Re: Odoo Show

    by
    Sunflower IT, Tom Blauwendraat
    - 05/10/2022 09:44:03 - 0
  • Avatar

    Re: Odoo Show

    by
    Acsone SA/NV, Stéphane Bidoul
    - 05/10/2022 09:22:14 - 0
  • Avatar

    Re: Odoo Show

    by
    Groupement Régional Alimentaire de Proximité, Quentin DUPONT
    - 05/10/2022 09:13:53 - 1
  • Avatar

    Re: Odoo Show

    by
    Serpent Consulting Services, Jay Vora
    - 05/10/2022 08:57:56 - 0