← Back to team overview

openerp-community-reviewer team mailing list archive

Re: [Merge] lp:~initos.com/account-invoice-report/7.0-fix_lang_for_draft into lp:account-invoice-report

 

Review: Needs Fixing code review

Hi, Katja,

You're right that current code doesn't work, but this is because the line that made the work is incorrect:

try :
    lang = self.browse(cr, uid, inv_id).partner_id.lang

inv_id is an id, not a list of ids, so you don't need to put index 0 to access browse_record.

I think it's better to simply fix this instead of changing all the code you put.

Regards.
-- 
https://code.launchpad.net/~initos.com/account-invoice-report/7.0-fix_lang_for_draft/+merge/224109
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:account-invoice-report.


Follow ups

References