~therp-nl/banking-addons/ba61-lp1098699-fix_clieop_rounding_issue

« back to all changes in this revision

Viewing changes to account_banking/wizard/banktools.py

  • Committer: Stefan Rijnhart
  • Date: 2012-01-08 10:59:55 UTC
  • Revision ID: stefan@therp.nl-20120108105955-n0him1h8iyxu6hd3
[FIX] streamlined currency and company resolving
[FIX] default country for new partners in foreign bank account
[FIX] cannot match a confirmed transaction

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        if (not country_code) or not country_id:
161
161
            user = pool.get('res.user').browse(cursor, uid, uid)
162
162
            country_id = (
163
 
                user.company_id and
164
 
                user.company_id.partner_id and
165
163
                user.company_id.partner_id.country and 
166
164
                user.company_id.partner_id.country.id or
167
165
                False