changeset e650d713ea45 in modules/account_dunning_letter:default
details: 
https://hg.tryton.org/modules/account_dunning_letter?cmd=changeset&node=e650d713ea45
description:
        Use items function to iterate over fees

        The iteritems method does not exist anymore in Python3.

        issue10679
        review346821002
diffstat:

 letter.fodt |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 555edfcb4beb -r e650d713ea45 letter.fodt
--- a/letter.fodt       Sun Jul 04 17:54:46 2021 +0200
+++ b/letter.fodt       Thu Sep 02 23:13:23 2021 +0200
@@ -554,7 +554,7 @@
    <text:p text:style-name="P28">Reminder Notice</text:p>
    <text:p text:style-name="P12"><text:span text:style-name="T1">Date: 
</text:span><text:span text:style-name="T1"><text:placeholder 
text:placeholder-type="text">&lt;format_date(today, 
party.lang)&gt;</text:placeholder></text:span></text:p>
    <text:p text:style-name="P10"><text:placeholder 
text:placeholder-type="text">&lt;if 
test=&quot;letter.fees&quot;&gt;</text:placeholder></text:p>
-   <text:p text:style-name="P11"><text:span text:style-name="T2">Fees: 
</text:span><text:placeholder text:placeholder-type="text">&lt;&apos;, 
&apos;.join(format_currency(amount, party.lang, cur) for cur, amount in 
letter.fees.iteritems())&gt;</text:placeholder></text:p>
+   <text:p text:style-name="P11"><text:span text:style-name="T2">Fees: 
</text:span><text:placeholder text:placeholder-type="text">&lt;&apos;, 
&apos;.join(format_currency(amount, party.lang, cur) for cur, amount in 
letter.fees.items())&gt;</text:placeholder></text:p>
    <text:p text:style-name="P10"><text:placeholder 
text:placeholder-type="text">&lt;/if&gt;</text:placeholder></text:p>
    <table:table table:name="Dunnings" table:style-name="Dunnings">
     <table:table-column table:style-name="Dunnings.A" 
table:number-columns-repeated="5"/>
@@ -659,4 +659,4 @@
    <text:p text:style-name="P8"><text:placeholder 
text:placeholder-type="text">&lt;/for&gt;</text:placeholder></text:p>
   </office:text>
  </office:body>
-</office:document>
\ No newline at end of file
+</office:document>

Reply via email to