~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_distribution/analytic_account.py

  • Committer: Olivier DOSSMANN
  • Date: 2012-02-01 10:35:52 UTC
  • mto: (614.1.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 660.
  • Revision ID: olivier@tempo-laptop-20120201103552-mcnl3vx65h4ho83m
UF-806 [FIX] Some bug on account type for analytic account

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        if not context:
74
74
            context = {}
75
75
        for account in self.browse(cr, uid, ids, context=context):
76
 
            if account.type != 'normal' or account.category != 'OC':
 
76
            if account.for_fx_gain_loss == True and (account.type != 'normal' or account.category != 'OC'):
77
77
                return False
78
78
        return True
79
79