Odoo Help

Welcome!

This community 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.

0

operator does not exist: text = integer

By
lam a bao
on 1/13/14, 3:16 AM 749 views

Hi erveryone

I have code :

 def _calc_seller(self, cr, uid, ids, fields, arg, context=None):
    codeordersales=self.read(cr, uid, ids, ['saleordercode'])[0]['saleordercode']

    result = {}

    for product in self.browse(cr, uid, ids, context=context):
        _id='+product.id+'
        oj=self.pool.get('cvs.quotations.cutproduct')
        oj_search=oj.search(cr,uid,[('saleordercode','=',str(codeordersales)),('id_quotations','=',product.id)])
        oj_data=oj.read(cr,uid,oj_search,[],context)
        src = []
        for item in oj_data:
            src.append(item['id'])
        result[product.id] = src

    return result

when i run the error" operator does not exist: text = integer"

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 1/13/14, 3:16 AM
Seen: 749 times
Last updated: 3/16/15, 8:10 AM