[tryton-debian-vcs] tryton-modules-account branch debian-stretch-4.2 updated. debian/4.2.1-1-2-g23ee406
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Aug 17 12:21:16 UTC 2017
The following commit has been merged in the debian-stretch-4.2 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account.git;a=commitdiff;h=debian/4.2.1-1-2-g23ee406
commit 23ee40679f79a1c8144b74db8a8bbd9c1973db44
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 13:21:29 2017 +0200
Releasing debian version 4.2.2-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 8c8bb02..89a27d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-account (4.2.2-1) unstable; urgency=medium
+
+ * Merging upstream version 4.2.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Thu, 17 Aug 2017 13:21:29 +0200
+
tryton-modules-account (4.2.1-1) unstable; urgency=medium
* Add the actual upstream maintainer key to signing-key.asc.
commit 38bb146c6a18d3ae8f677cb285791a17abfe28b0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 13:21:28 2017 +0200
Merging upstream version 4.2.2.
diff --git a/CHANGELOG b/CHANGELOG
index 48faf66..eb8cc71 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.2 - 2017-08-08
+* Bug fixes (see mercurial logs for details)
+
Version 4.2.1 - 2017-06-06
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 815698e..3a61190 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/move.py b/move.py
index 6d8dae7..e6c8544 100644
--- a/move.py
+++ b/move.py
@@ -916,7 +916,7 @@ class Line(ModelSQL, ModelView):
else:
line_amount -= tax_line['amount']
tax_amount += tax_line['amount'] * \
- tax_line['tax'][key + '_tax_sign']
+ getattr(tax_line['tax'], key + '_tax_sign')
line_amount = line.account.company.currency.round(
line_amount)
tax_amount = line.account.company.currency.round(
@@ -1067,7 +1067,7 @@ class Line(ModelSQL, ModelView):
tax_line = TaxLine(**TaxLine.default_get(
TaxLine._fields.keys()))
- tax_line.amount = base_amounts[code_id, tax_id],
+ tax_line.amount = base_amounts[code_id, tax_id]
tax_line.currency_digits = self.account.currency_digits
tax_line.code = code_id
tax_line.tax = tax_id
diff --git a/tax.py b/tax.py
index b105ca1..0ff24d7 100644
--- a/tax.py
+++ b/tax.py
@@ -1107,7 +1107,6 @@ class TaxableMixin(object):
class TaxLine(ModelSQL, ModelView):
'Tax Line'
__name__ = 'account.tax.line'
- _rec_name = 'amount'
currency_digits = fields.Function(fields.Integer('Currency Digits'),
'on_change_with_currency_digits')
amount = fields.Numeric('Amount', digits=(16, Eval('currency_digits', 2)),
@@ -1135,15 +1134,18 @@ class TaxLine(ModelSQL, ModelView):
return self.move_line.currency_digits
return 2
- @fields.depends('tax')
- def on_change_tax(self):
- self.code = None
-
@fields.depends('_parent_move_line.account', 'move_line')
def on_change_with_company(self, name=None):
if self.move_line:
return self.move_line.account.company.id
+ def get_rec_name(self, name):
+ return self.code.rec_name
+
+ @classmethod
+ def search_rec_name(cls, name, clause):
+ return [('code',) + tuple(clause[1:])]
+
class TaxRuleTemplate(ModelSQL, ModelView):
'Tax Rule Template'
@@ -1394,7 +1396,6 @@ class TaxRuleLineTemplate(sequence_ordered(), ModelSQL, ModelView):
class TaxRuleLine(sequence_ordered(), ModelSQL, ModelView, MatchMixin):
'Tax Rule Line'
__name__ = 'account.tax.rule.line'
- _rec_name = 'tax'
rule = fields.Many2One('account.tax.rule', 'Rule', required=True,
select=True, ondelete='CASCADE')
group = fields.Many2One('account.tax.group', 'Tax Group',
diff --git a/tryton.cfg b/tryton.cfg
index bf8ea3c..de11e2f 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.2.1
+version=4.2.2
depends:
company
currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index de354e5..9ebdcc1 100644
--- a/trytond_account.egg-info/PKG-INFO
+++ b/trytond_account.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-account
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-account
More information about the tryton-debian-vcs
mailing list