Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8541 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

1. sudo pip install -U erppeek

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

3. your_db >>> models()

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

 

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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