تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8514 أدوات العرض

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?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

1. sudo pip install -U erppeek

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

3. your_db >>> models()

الصورة الرمزية
إهمال
أفضل إجابة

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.

 

الصورة الرمزية
إهمال
الكاتب

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

الكاتب

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