[tryton-debian-vcs] tryton-modules-account branch debian-wheezy-2.6 updated. debian/2.6.6-1-4-g5ba148f
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Mar 27 13:46:22 UTC 2014
The following commit has been merged in the debian-wheezy-2.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account.git;a=commitdiff;h=debian/2.6.6-1-4-g5ba148f
commit 5ba148f26738a18303ff1ebc4acf9827a31211a3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Mar 27 14:46:11 2014 +0100
Releasing debian version 2.6.7-1.
diff --git a/debian/changelog b/debian/changelog
index ad6074c..1c66e3d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-account (2.6.7-1) unstable; urgency=medium
+
+ * Removing inadvertently commited .pc directory.
+ * Merging upstream version 2.6.7.
+ * Updating copyright.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 26 Mar 2014 21:58:56 +0100
+
tryton-modules-account (2.6.6-1) unstable; urgency=low
* Merging upstream version 2.6.6.
commit ebc054be2dc61820a7db5ab483be22b85ba6e139
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Mar 26 21:58:46 2014 +0100
Updating copyright.
diff --git a/debian/copyright b/debian/copyright
index 8ce6b2c..8b9ab88 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,9 +1,9 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2008-2013 Cédric Krier
+Copyright: 2008-2014 Cédric Krier
2008-2012 Bertrand Chenal
- 2008-2013 B2CK SPRL
+ 2008-2014 B2CK SPRL
2004-2008 Tiny SPRL
License: GPL-3+
commit f5fe97a607ca8ab8f86e6f61a181a0d7eba0cd1d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Mar 26 21:54:35 2014 +0100
Merging upstream version 2.6.7.
diff --git a/CHANGELOG b/CHANGELOG
index 0f7b4d7..b4891f0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.6.7 - 2014-03-22
+* Bug fixes (see mercurial logs for details)
+
Version 2.6.6 - 2013-10-01
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 6e948f6..c552c67 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2013 Cédric Krier.
+Copyright (C) 2008-2014 Cédric Krier.
Copyright (C) 2008-2012 Bertrand Chenal.
-Copyright (C) 2008-2013 B2CK SPRL.
+Copyright (C) 2008-2014 B2CK SPRL.
Copyright (C) 2004-2008 Tiny SPRL.
This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index 5d4a1fd..43ac15a 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account
-Version: 2.6.6
+Version: 2.6.7
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/tax.py b/tax.py
index d92e217..50f2af6 100644
--- a/tax.py
+++ b/tax.py
@@ -755,48 +755,60 @@ class Tax(ModelSQL, ModelView):
if self.template:
vals = self.template._get_tax_value(tax=self)
- if (self.template.invoice_account
- and self.invoice_account.id != template2account.get(
- self.template.invoice_account.id)):
+ invoice_account_id = (self.invoice_account.id
+ if self.invoice_account else None)
+ if (self.template.invoice_account and
+ invoice_account_id != template2account.get(
+ self.template.invoice_account.id)):
vals['invoice_account'] = template2account.get(
self.template.invoice_account.id)
elif (not self.template.invoice_account
and self.invoice_account):
vals['invoice_account'] = None
- if (self.template.credit_note_account
- and self.credit_note_account.id != template2account.get(
+ credit_note_account_id = (self.credit_note_account.id
+ if self.credit_note_account else None)
+ if (self.template.credit_note_account and
+ credit_note_account_id != template2account.get(
self.template.credit_note_account.id)):
vals['credit_note_account'] = template2account.get(
self.template.credit_note_account.id)
elif (not self.template.credit_note_account
and self.credit_note_account):
vals['credit_note_account'] = None
- if (self.template.invoice_base_code
- and self.invoice_base_code.id != template2tax_code.get(
- self.template.invoice_base_code.id)):
+ invoice_base_code_id = (self.invoice_base_code.id
+ if self.invoice_base_code else None)
+ if (self.template.invoice_base_code and
+ invoice_base_code_id != template2tax_code.get(
+ self.template.invoice_base_code.id)):
vals['invoice_base_code'] = template2tax_code.get(
self.template.invoice_base_code.id)
elif (not self.template.invoice_base_code
and self.invoice_base_code):
vals['invoice_base_code'] = None
+ invoice_tax_code_id = (self.invoice_tax_code.id
+ if self.invoice_tax_code else None)
if (self.template.invoice_tax_code
- and self.invoice_tax_code.id != template2tax_code.get(
+ and invoice_tax_code_id != template2tax_code.get(
self.template.invoice_tax_code.id)):
vals['invoice_tax_code'] = template2tax_code.get(
self.template.invoice_tax_code.id)
elif (not self.template.invoice_tax_code
and self.invoice_tax_code):
vals['invoice_tax_code'] = None
+ credit_note_base_code_id = (self.credit_note_base_code.id
+ if self.credit_note_base_code else None)
if (self.template.credit_note_base_code
- and self.credit_note_base_code.id != template2tax_code.get(
+ and credit_note_base_code_id != template2tax_code.get(
self.template.credit_note_base_code.id)):
vals['credit_note_base_code'] = template2tax_code.get(
self.template.credit_note_base_code.id)
elif (not self.template.credit_note_base_code
and self.credit_note_base_code):
vals['credit_note_base_code'] = None
+ credit_note_tax_code_id = (self.credit_note_tax_code.id
+ if self.credit_note_tax_code else None)
if (self.template.credit_note_tax_code
- and self.credit_note_tax_code.id != template2tax_code.get(
+ and credit_note_tax_code_id != template2tax_code.get(
self.template.credit_note_tax_code.id)):
vals['credit_note_tax_code'] = template2tax_code.get(
self.template.credit_note_tax_code.id)
@@ -1034,8 +1046,6 @@ class TaxRuleLineTemplate(ModelSQL, ModelView):
res = {}
if not rule_line or rule_line.group != self.group:
res['group'] = self.group.id if self.group else None
- if not rule_line or rule_line.origin_tax != self.origin_tax:
- res['origin_tax'] = self.origin_tax.id if self.origin_tax else None
if not rule_line or rule_line.sequence != self.sequence:
res['sequence'] = self.sequence
if not rule_line or rule_line.template != self:
@@ -1167,14 +1177,22 @@ class TaxRuleLine(ModelSQL, ModelView):
vals['rule'] = template2rule[self.template.rule.id]
if self.origin_tax:
if self.template.origin_tax:
- if self.origin_tax.id != \
- template2tax[self.template.origin_tax.id]:
+ if (self.origin_tax.id !=
+ template2tax[self.template.origin_tax.id]):
vals['origin_tax'] = template2tax[
self.template.origin_tax.id]
+ else:
+ vals['origin_tax'] = None
+ elif self.template.origin_tax:
+ vals['origin_tax'] = template2tax[self.template.origin_tax.id]
if self.tax:
if self.template.tax:
if self.tax.id != template2tax[self.template.tax.id]:
vals['tax'] = template2tax[self.template.tax.id]
+ else:
+ vals['tax'] = None
+ elif self.template.tax:
+ vals['tax'] = template2tax[self.template.tax.id]
if vals:
self.write([self], vals)
template2rule_line[self.template.id] = self.id
diff --git a/tryton.cfg b/tryton.cfg
index 324a4f2..4970262 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.6.6
+version=2.6.7
depends:
company
currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index 9463489..d92255d 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: 2.6.6
+Version: 2.6.7
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