Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
When I run this code I get the error : "global name 'context' is not defined"
Can someone tell me what I am doing wrong?
def get_attendance(self, cr, uid, ids, bt_no, st_name, att_sheet_no, context=None):
attend_obj = self.pool.get('intrac.attend')
for records in attend_obj.search(cr, uid, [('batch_number', '=', bt_no),('student_name', '=', st_name),('attend_sheet','=', att_sheet_no)], context=context):
get_att_record = attend_obj.browse(cr, uid, records)
get_att = get_att_record.attend_present.id
_res = get_att
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/16/14, 11:27 AM|
|Seen: 2419 times|
|Last updated: 3/16/15, 8:10 AM|