Reviewers: ,


Please review this at http://codereview.tryton.org/596002/

Affected files:
  M move.py


Index: move.py
===================================================================
--- a/move.py
+++ b/move.py
@@ -936,8 +936,11 @@
                     res['account.rec_name'] = \
                         self.party.account_receivable.rec_name

-        journal = (self.journal
-                or Journal(Transaction().context.get('journal')))
+        journal = None
+        if self.journal:
+            journal = self.journal
+        elif Transaction().context.get('journal'):
+            journal = Journal(Transaction().context.get('journal'))
         if journal and self.party:
             if journal.type == 'revenue':
                 if 'account' not in res:


--
--
[email protected] mailing list



Reply via email to