Merge lp:~unifield-team/unifield-addons/unifield-addons-UF_1307 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4554
Proposed branch: lp:~unifield-team/unifield-addons/unifield-addons-UF_1307
Merge into: lp:unifield-addons
Diff against target: 12 lines (+2/-0)
1 file modified
account/invoice.py (+2/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/unifield-addons-UF_1307
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+120601@code.launchpad.net
To post a comment you must log in.
4552. By Matthieu Dietrich <mdietrich@chloups211>

UF-1307: [FIX] issue with unit tests

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/invoice.py'
2--- account/invoice.py 2012-03-14 13:18:15 +0000
3+++ account/invoice.py 2012-08-22 09:39:39 +0000
4@@ -342,6 +342,8 @@
5 ctx = context.copy()
6 if vals.get('type', 'in_invoice') in ('out_invoice', 'out_refund'):
7 ctx = self.get_log_context(cr, uid, context=ctx)
8+ if 'type' in vals:
9+ ctx.update({'type': vals['type']})
10 message = _("Invoice '%s' is waiting for validation.") % name
11 self.log(cr, uid, inv_id, message, context=ctx)
12 return res

Subscribers

People subscribed via source and target branches

to all changes: