← Back to team overview

credativ team mailing list archive

[Branch ~credativ/openobject-addons/6.1] Rev 7063: [Fix] Account follow up should take the invoice address instead of the contract address if available

 

------------------------------------------------------------
revno: 7063
committer: Craig Gowing (credativ) <craig.gowing@xxxxxxxxxxxxxx>
branch nick: addons
timestamp: Tue 2014-11-18 16:37:55 +0000
message:
  [Fix] Account follow up should take the invoice address instead of the contract address if available
modified:
  account_followup/wizard/account_followup_print.py


--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1

Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'account_followup/wizard/account_followup_print.py'
--- account_followup/wizard/account_followup_print.py	2014-11-18 10:54:03 +0000
+++ account_followup/wizard/account_followup_print.py	2014-11-18 16:37:55 +0000
@@ -247,6 +247,10 @@
                 dest = False
                 if partner.address:
                     for adr in partner.address:
+                        if adr.type=='invoice':
+                            if adr.email:
+                                dest = [adr.email]
+                                break
                         if adr.type=='contact':
                             if adr.email:
                                 dest = [adr.email]