Contributors mailing list archives

Browse archives


Re: Odoo Show

- 05/10/2022 10:41:41
On 05/10/2022 00:02, David Vidal wrote:

> I have been working for fun on this little tool 

> ( 

> <>) to facilitate the inspection 

> of the data of a recordset.

Tested and adopted, It's awesome.
I used it from pytest to inspect objects, it will for sure save a lot of 
time when debugging or writing tests.

Just to share my happiness:

add to your test method:

import ipdb; ipdb.set_trace()

from your test server/vm/container/python ide:
$ pip3 install odooshow ipdb
$ cd /path/to/my_adddon
$ export PYTEST_ADDOPTS='--pdb --pdbcls=IPython.terminal.debugger:Pdb'
$ pytest -s -vv --odoo-database=tests 
--odoo-config=/var/lib/odoo/tests_odoo.conf --pdb 

Let's play with odooshow from ipdb

ipdb> from odooshow import show
ipdb> show([])

ps: Got an error if the object don't have URL (The same has Quentin 
spoke about).
I made a quick hack for now  but I will submit a clean PR today.

Thank you David for odooshow !


Simon Maillard - 0680587358

Parce que sinon ça rend la discussion incompréhensible.
 > Pourquoi ça ?
 >> Je préfère répondre en dessous.
 >>> Que faites-vous à la place ?
 >>>> Non.
 >>>>> Vous n'aimez pas répondre au-dessus ?


  • Avatar

    Odoo Show

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

    11 replies 11 replies