[tryton-debian-vcs] tryton-modules-account branch debian updated. debian/3.0.1-2-4-gaf2f2b4
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Mar 26 19:49:25 UTC 2014
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.git;a=commitdiff;h=debian/3.0.1-2-4-gaf2f2b4
commit af2f2b417f60afd39f1ffd542c45581c9224da6b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Mar 26 20:49:05 2014 +0100
Releasing debian version 3.0.2-1.
diff --git a/debian/changelog b/debian/changelog
index abb6d26..fd21e6c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-account (3.0.2-1) unstable; urgency=medium
+
+ * Removing LC_ALL=C.UTF-8 as build environment.
+ * Merging upstream version 3.0.2.
+ * Updating copyright.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 26 Mar 2014 18:48:50 +0100
+
tryton-modules-account (3.0.1-2) unstable; urgency=medium
* Updating year in debian copyright.
commit 5d6f22dfc26fda088baae801ea06127eb0934c3e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Mar 26 18:47:16 2014 +0100
Updating copyright.
diff --git a/debian/copyright b/debian/copyright
index ff78e6c..76bf8cb 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-2013 Bertrand Chenal
- 2008-2013 B2CK SPRL
+ 2008-2014 B2CK SPRL
2004-2008 Tiny SPRL
License: GPL-3+
commit 843ec92e5553900f4db8d4ca4c1ba99c975a58d2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Mar 26 18:44:48 2014 +0100
Merging upstream version 3.0.2.
diff --git a/CHANGELOG b/CHANGELOG
index 7c18b30..66fc002 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.2 - 2014-03-22
+* Bug fixes (see mercurial logs for details)
+
Version 3.0.1 - 2013-12-04
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 5d422e0..77715d8 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-2013 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 a192347..eaebc9a 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account
-Version: 3.0.1
+Version: 3.0.2
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/fiscalyear.py b/fiscalyear.py
index 6227ba9..3935ce6 100644
--- a/fiscalyear.py
+++ b/fiscalyear.py
@@ -391,6 +391,7 @@ class BalanceNonDeferral(Wizard):
accounts = Account.search([
('company', '=', self.start.fiscalyear.company.id),
('deferral', '=', False),
+ ('kind', '!=', 'view'),
])
lines = []
for account in accounts:
diff --git a/move.py b/move.py
index 4e23126..eb55d51 100644
--- a/move.py
+++ b/move.py
@@ -1105,7 +1105,7 @@ class Line(ModelSQL, ModelView):
& table.move.in_(move.join(period,
condition=move.period == period.id
).select(move.id,
- where=(move.fiscalyear == fiscalyear_id)
+ where=(period.fiscalyear == fiscalyear_id)
& (move.date <= Transaction().context['date'])
& (move.state == 'posted'))),
[f.id for f in fiscalyears])
diff --git a/tax.py b/tax.py
index 05d9d0f..1f3b17e 100644
--- a/tax.py
+++ b/tax.py
@@ -802,48 +802,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)
@@ -1118,8 +1130,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:
@@ -1273,14 +1283,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 40db5a7..6166548 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.0.1
+version=3.0.2
depends:
company
currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index bfe5147..d879800 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: 3.0.1
+Version: 3.0.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