跳至內容
選單
此問題已被標幟
2844 瀏覽次數

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 ??

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
10月 19
6732
0
12月 16
3031
0
3月 24
1170
0
3月 19
3460
0
2月 19
4538