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

In Odoo one would use a module or inherit a Class as follows:

product = env['product.product']

or

class ResCompany(models.Model):

    _inherit = 'res.company'


is there a possibility of using a module by importing it following python syntax?

e.g. as

from product.product import Product

Ảnh đại diện
Huỷ bỏ

full path or search in module directories and load ?

Tác giả

as a search in the module directories, so that you load the class from file as a package

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
2139
3
thg 5 25
3731
2
thg 6 25
4208
0
thg 6 21
2436
1
thg 8 24
3585