Hello community,

here is the log from the commit of package trytond_account for openSUSE:Factory 
checked in at 2018-05-15 10:14:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond_account (Old)
 and      /work/SRC/openSUSE:Factory/.trytond_account.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond_account"

Tue May 15 10:14:00 2018 rev:9 rq:606650 version:4.2.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond_account/trytond_account.changes  
2018-03-11 15:24:38.812516257 +0100
+++ /work/SRC/openSUSE:Factory/.trytond_account.new/trytond_account.changes     
2018-05-15 10:33:34.139820127 +0200
@@ -1,0 +2,15 @@
+Sat May 12 12:59:25 UTC 2018 - axel.br...@gmx.de
+
+- Version 4.2.8 - Bugfix Release
+
+-------------------------------------------------------------------
+Thu Apr  5 16:55:04 UTC 2018 - axel.br...@gmx.de
+
+- Version 4.2.7 - Bugfix Release
+
+-------------------------------------------------------------------
+Wed Mar 21 15:20:12 UTC 2018 - axel.br...@gmx.de
+
+- Version 4.2.6 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  trytond_account-4.2.5.tar.gz

New:
----
  trytond_account-4.2.8.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trytond_account.spec ++++++
--- /var/tmp/diff_new_pack.YJb7jt/_old  2018-05-15 10:33:34.763797210 +0200
+++ /var/tmp/diff_new_pack.YJb7jt/_new  2018-05-15 10:33:34.767797063 +0200
@@ -18,7 +18,7 @@
 
 %define majorver 4.2
 Name:           trytond_account
-Version:        %{majorver}.5
+Version:        %{majorver}.8
 Release:        0
 Summary:        The "account" module for the Tryton ERP system
 License:        GPL-3.0+

++++++ trytond_account-4.2.5.tar.gz -> trytond_account-4.2.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/.hgtags 
new/trytond_account-4.2.8/.hgtags
--- old/trytond_account-4.2.5/.hgtags   2018-03-01 23:19:28.000000000 +0100
+++ new/trytond_account-4.2.8/.hgtags   2018-05-08 22:41:21.000000000 +0200
@@ -20,3 +20,6 @@
 bec481de6d76d5804cba0af82090d571b4c52ff9 4.2.3
 cd905538cbacf1e2e2e53225fed29372d8d4fd12 4.2.4
 7ff2c7a1a9fd36c95497816356e6b89143593023 4.2.5
+05872176cfc4d64d8b1fd5e71150ea5f8cd26207 4.2.6
+480d11a4ddb685505df967345f556fde1ea3db47 4.2.7
+b390ccaac9a23ce0e978b1972e496d1c067dc1b4 4.2.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/CHANGELOG 
new/trytond_account-4.2.8/CHANGELOG
--- old/trytond_account-4.2.5/CHANGELOG 2018-03-01 23:19:27.000000000 +0100
+++ new/trytond_account-4.2.8/CHANGELOG 2018-05-08 22:41:20.000000000 +0200
@@ -1,3 +1,12 @@
+Version 4.2.8 - 2018-05-08
+* Bug fixes (see mercurial logs for details)
+
+Version 4.2.7 - 2018-04-03
+* Bug fixes (see mercurial logs for details)
+
+Version 4.2.6 - 2018-03-15
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.5 - 2018-03-01
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/PKG-INFO 
new/trytond_account-4.2.8/PKG-INFO
--- old/trytond_account-4.2.5/PKG-INFO  2018-03-01 23:19:28.000000000 +0100
+++ new/trytond_account-4.2.8/PKG-INFO  2018-05-08 22:41:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account
-Version: 4.2.5
+Version: 4.2.8
 Summary: Tryton module for accounting
 Home-page: http://www.tryton.org/
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/account.py 
new/trytond_account-4.2.8/account.py
--- old/trytond_account-4.2.5/account.py        2018-03-01 23:19:26.000000000 
+0100
+++ new/trytond_account-4.2.8/account.py        2018-05-08 22:41:19.000000000 
+0200
@@ -1746,7 +1746,10 @@
 
         terms = cls.get_terms()
         factor = cls.get_unit_factor()
-        term_values = sorted(terms.values(), key=lambda x: x or 0)
+        # Ensure None are before 0 to get the next index pointing to the next
+        # value and not a None value
+        term_values = sorted(
+            terms.values(), key=lambda x: ((x is not None), x or 0))
 
         for name, value in terms.iteritems():
             if value is None or factor is None or date is None:
@@ -1756,7 +1759,7 @@
             idx = term_values.index(value)
             if idx + 1 < len(terms):
                 cond &= line.maturity_date > (
-                    date - term_values[idx + 1] * factor)
+                    date - (term_values[idx + 1] or 0) * factor)
             else:
                 cond |= line.maturity_date == Null
             columns.append(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/move.py 
new/trytond_account-4.2.8/move.py
--- old/trytond_account-4.2.5/move.py   2017-11-08 23:53:49.000000000 +0100
+++ new/trytond_account-4.2.8/move.py   2018-03-15 21:39:54.000000000 +0100
@@ -1458,7 +1458,10 @@
             for line in lines)
         for period, journal in period_and_journals:
             cls.check_journal_period_modify(period, journal)
-        Move.validate_move(list(set(line.move for line in lines)))
+        # Re-browse for cache alignment
+        moves = Move.browse(list(set(line.move for line in lines)))
+        Move.check_modify(moves)
+        Move.validate_move(moves)
         return lines
 
     @classmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/tax.py 
new/trytond_account-4.2.8/tax.py
--- old/trytond_account-4.2.5/tax.py    2017-10-04 22:12:22.000000000 +0200
+++ new/trytond_account-4.2.8/tax.py    2018-04-03 18:41:21.000000000 +0200
@@ -1086,7 +1086,7 @@
             taxable_lines = [_TaxableLine(*params)
                 for params in self.taxable_lines]
             for line in taxable_lines:
-                l_taxes = Tax.compute(line.taxes, line.unit_price,
+                l_taxes = Tax.compute(Tax.browse(line.taxes), line.unit_price,
                     line.quantity, self.tax_date)
                 for tax in l_taxes:
                     taxline = self._compute_tax_line(**tax)
@@ -1136,7 +1136,7 @@
 
     @fields.depends('_parent_move_line.account', 'move_line')
     def on_change_with_company(self, name=None):
-        if self.move_line:
+        if self.move_line and self.move_line.account:
             return self.move_line.account.company.id
 
     def get_rec_name(self, name):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_account-4.2.5/tryton.cfg 
new/trytond_account-4.2.8/tryton.cfg
--- old/trytond_account-4.2.5/tryton.cfg        2017-11-08 23:54:12.000000000 
+0100
+++ new/trytond_account-4.2.8/tryton.cfg        2018-04-03 18:41:42.000000000 
+0200
@@ -1,5 +1,5 @@
 [tryton]
-version=4.2.5
+version=4.2.8
 depends:
     company
     currency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/trytond_account-4.2.5/trytond_account.egg-info/PKG-INFO 
new/trytond_account-4.2.8/trytond_account.egg-info/PKG-INFO
--- old/trytond_account-4.2.5/trytond_account.egg-info/PKG-INFO 2018-03-01 
23:19:28.000000000 +0100
+++ new/trytond_account-4.2.8/trytond_account.egg-info/PKG-INFO 2018-05-08 
22:41:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account
-Version: 4.2.5
+Version: 4.2.8
 Summary: Tryton module for accounting
 Home-page: http://www.tryton.org/
 Author: Tryton


Reply via email to