Odoo Help


'list' object has no attribute 'get'

lam a bao
on 11/28/13, 5:15 AM 1,493 views

Hi everyone

I have :

class cvs_quotations_product(osv.osv):

def getcodesystemdoor(self, cr, uid, ids,fields, arg, context=None):
    getids= self.read(cr,uid,ids,['demomany2one'])[0]['demomany2one']
    search_oj=get_oj.search(cr, uid, [('id', '=',getids[0])])
    data_oj=get_oj.read(cr, uid, search_oj, ['parent_id'], context)
    for item in data_oj:
        for _item_child in item['parent_id']:
            if isinstance(_item_child,int):
    return x
    "demomany2one":fields.many2one("product.category","Chọn Hệ Vật Tư",translate=True),
    "codesystemdoor":fields.function(getcodesystemdoor,method = True, String='Demo')



Result error : 'list' object has no attribute 'get'

Can you help me ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 11/28/13, 5:15 AM
Seen: 1493 times
Last updated: 3/16/15, 8:10 AM