[tryton-debian-vcs] tryton-modules-account-deposit branch debian updated. debian/3.6.0-1-3-g66731b9

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Jul 15 14:17:27 UTC 2015


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-deposit.git;a=commitdiff;h=debian/3.6.0-1-3-g66731b9

commit 66731b93d202b0298f1bd3234831fe06eebaf5d0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 15 12:39:26 2015 +0200

    Releasing debian version 3.6.1-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index 77a36de..8684aaa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-modules-account-deposit (3.6.1-1) unstable; urgency=medium
+
+  * Adapting section naming in gbp.conf to current git-buildpackage.
+  * Merging upstream version 3.6.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Wed, 15 Jul 2015 12:39:26 +0200
+
 tryton-modules-account-deposit (3.6.0-1) unstable; urgency=medium
 
   * Initial release (Closes: #781818).
commit 47197c9ab3b02969faf9368b42aa60fa9c83f204
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 15 12:39:25 2015 +0200

    Merging upstream version 3.6.1.

diff --git a/CHANGELOG b/CHANGELOG
index 17ebdc9..fbf875c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,2 +1,5 @@
+Version 3.6.1 - 2015-07-13
+* Bug fixes (see mercurial logs for details)
+
 Version 3.6.0 - 2015-04-20
 * Initial release
\ No newline at end of file
diff --git a/PKG-INFO b/PKG-INFO
index a145200..d00bed6 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account_deposit
-Version: 3.6.0
+Version: 3.6.1
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/invoice.py b/invoice.py
index 59c5f13..f92fdfb 100644
--- a/invoice.py
+++ b/invoice.py
@@ -97,10 +97,14 @@ class DepositRecall(Wizard):
         pool = Pool()
         Invoice = pool.get('account.invoice')
         InvoiceLine = pool.get('account.invoice.line')
+        Currency = pool.get('currency.currency')
         invoice = Invoice(Transaction().context['active_id'])
 
         amount = 0
-        balance = invoice.party.get_deposit_balance(self.start.account)
+        account = self.start.account
+        balance = invoice.party.get_deposit_balance(account)
+        balance = Currency.compute(account.company.currency, balance,
+            invoice.currency)
         if invoice.type.startswith('in'):
             if balance > 0 and invoice.total_amount > 0:
                 amount = -min(balance, invoice.total_amount)
diff --git a/tryton.cfg b/tryton.cfg
index eceb8fb..d622cc8 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.6.0
+version=3.6.1
 depends:
     account
     account_invoice
diff --git a/trytond_account_deposit.egg-info/PKG-INFO b/trytond_account_deposit.egg-info/PKG-INFO
index f14fcfd..cdad162 100644
--- a/trytond_account_deposit.egg-info/PKG-INFO
+++ b/trytond_account_deposit.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account-deposit
-Version: 3.6.0
+Version: 3.6.1
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-account-deposit



More information about the tryton-debian-vcs mailing list