------------------------------------------------------------
revno: 7063
committer: Craig Gowing (credativ) <[email protected]>
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]
--
Mailing list: https://launchpad.net/~credativ
Post to : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help : https://help.launchpad.net/ListHelp