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

We can found in sale/sale.py the definition of sale_order. Also in sale_layout/sale_layout.py we found a modification of the same entity and the entity get here registred with:

sale_order()

I suppose the sale_layout must be loaded after sale to apply sale_layout's changes to the entity.

But how is this controlled by the module loading ? Is there a way to force the loading order ?

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

look at the __openerp__.py file in each module. The key 'depends' defines the module to be loaded before the one you are looking at.

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

Look in the __openerp__.py file

you make a module dependent on another module, and then your module will not be loaded until after all the modules your module depends on has been loaded.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 22
2872
0
thg 3 15
4947
2
thg 3 15
7848
0
thg 11 20
5372
1
thg 10 19
4618