コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
31733 ビュー
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 !

関連投稿 返信 ビュー 活動
1
1月 24
4472
1
3月 15
3813
2
3月 15
4456
0
1月 20
3743
0
6月 19
3447