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

After migrating from v7 to Odoo9. Now we are facing speed issue.

Mostly code written in v7 format like:-
mrp_obj = self.pool.get('mrp.production')
for sale in self.browse(cr, uid, ids, context=context):
mo_ids = mrp_obj.search(cr, uid, [('origin','=',sale.name)])
for mo in mrp_obj.browse(cr, uid, mo_ids):
.....
The coding and query style is old in Odoo9 version, is this the speed issue ?? Should I use api.multi tag and re-write the code again ??

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 19
6766
0
thg 12 16
3045
0
thg 3 24
1197
0
thg 3 19
3477
0
thg 2 19
4557