Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
31628 มุมมอง
def _reste(self, cr, uid, ids, context=None):
        data = self.pool.get('hr.line.echeancier').browse (cr, uid, ids, context=context)
        if data.move_check:
           res_obj=self.pool.get('hr.avance.pret').browse(cr, uid, ids)
           res_obj.reste_payer = res_obj.montant_credit - res_obj.montant 
           return res_obj.reste_payer

i have this ERROR: IndentationError: unindent does not match any outer indentation level BUT i can't understand what is the problem hier ?? help please :-)

อวตาร
ละทิ้ง

i suggest you to check your code with a clever code editor. maybe there's a mix of spaces and tabs

คำตอบที่ดีที่สุด

Hi, for each block indentation must be 4 spaces, see your corrected code (corrected just for indentation).

def _reste(self, cr, uid, ids, context=None):
    data = self.pool.get('hr.line.echeancier').browse (cr, uid, ids, context=context)
    if data.move_check:
        res_obj=self.pool.get('hr.avance.pret').browse(cr, uid, ids)
        res_obj.reste_payer = res_obj.montant_credit - res_obj.montant 
        return res_obj.reste_payer

Bye

อวตาร
ละทิ้ง
ผู้เขียน

Thank you !

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to make tree of dictionary? แก้ไขแล้ว
1
ม.ค. 24
4346
1
มี.ค. 15
3745
2
มี.ค. 15
4327
0
ม.ค. 20
3628
0
มิ.ย. 19
3312