This question has been flagged
2 Replies
7228 Views

I have found some examples using model = 'res.partner' but I want to work with other models. I tried res.product but that didn't work. How can I get a list of usable models?

Avatar
Discard
Author Best Answer

1. sudo pip install -U erppeek

2. erppeek  --server=https://example.com -d your_db -u admin -p password

3. your_db >>> models()

Avatar
Discard
Best Answer

The ir.model model contains a list of every model, and the name field contains the name, such as 

  • res.partner - customers, suppliers, employees, etc
  • product.product - products
  • purchase.order - orders for things you purchase
  • sale.order - orders for things you sell

There are several hundred, all depending on which modules are installed, so the list is unique to every Odoo database.

 

Avatar
Discard
Author

What does **ir** stand for?

See https://www.odoo.com/forum/help-1/question/what-do-ir-res-stand-for-in-the-base-module-18806

 

From: Kasper Souren [mailto:kasper.souren@gmail.com]
Sent: Saturday, July 26, 2014 5:35 PM
To: Followers of False
Subject: Re: False

 

What does **ir** stand for?

--
Kasper Souren Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo

Author

https://www.odoo.com/forum/help-1/question/what-do-ir-res-stand-for-in-the-base-module-18806