Merge lp:~serpentcs/openerp-usa/credits_use_fix into lp:openerp-usa/6.0

Proposed by Serpent Consulting Services
Status: Merged
Merged at revision: 132
Proposed branch: lp:~serpentcs/openerp-usa/credits_use_fix
Merge into: lp:openerp-usa/6.0
Diff against target: 12 lines (+2/-0)
1 file modified
account_voucher_credits_us/voucher.py (+2/-0)
To merge this branch: bzr merge lp:~serpentcs/openerp-usa/credits_use_fix
Reviewer Review Type Date Requested Status
Novapoint Group (community) Approve
npg Pending
Review via email: mp+202319@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Novapoint Group (npg-team) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher_credits_us/voucher.py'
2--- account_voucher_credits_us/voucher.py 2014-01-09 12:28:58 +0000
3+++ account_voucher_credits_us/voucher.py 2014-01-20 14:58:18 +0000
4@@ -481,6 +481,8 @@
5 writeoff_ids = []
6 total_discount = 0.0
7 for line in vch.line_ids:
8+ if not line.pay:
9+ continue
10 if not line.amount:
11 skip_flag = True
12 for av_credits in line.available_credits:

Subscribers

People subscribed via source and target branches