[tryton-debian-vcs] tryton-modules-commission branch debian-stretch-4.2 updated. debian/4.2.1-1-7-g3252b1a
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Nov 12 16:31:27 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-commission.git;a=commitdiff;h=debian/4.2.1-1-7-g3252b1a
commit 3252b1acabd34ccf2e409e4980d4ea94912be4a0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Nov 11 14:15:07 2017 +0100
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 11c3b42..2cd9b64 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+tryton-modules-commission (4.2.2-1) unstable; urgency=medium
+
+ * Add the actual upstream maintainer key to signing-key.asc.
+ * Setting the branch in the watch file to the fixed version 4.2.
+ * Use the preferred https URL format in the copyright file.
+ * Bump the Standards-Version to 4.0.1.
+ * Merging upstream version 4.2.2.
+ * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sat, 11 Nov 2017 14:15:07 +0100
+
tryton-modules-commission (4.2.1-1) unstable; urgency=medium
* Merging upstream version 4.2.1.
commit 365e073d0ab6354cd4373321c9996457a4a51e13
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Nov 11 14:15:06 2017 +0100
Updating copyright file.
diff --git a/debian/copyright b/debian/copyright
index 0dfd4e8..13dc36b 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,8 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2014-2016 Cédric Krier
- 2014-2016 B2CK SPRL
+Copyright: 2014-2017 Cédric Krier
+ 2014-2017 B2CK SPRL
License: GPL-3+
Files: debian/*
commit b64316c4a85c0dbc207a13a1f31189e902b89321
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Nov 11 14:15:06 2017 +0100
Merging upstream version 4.2.2.
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..c4fd423
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,9 @@
+image: python:all
+env:
+ - POSTGRESQL_URI=postgresql://postgres@127.0.0.1:5432/
+ - MYSQL_URI=mysql://root@127.0.0.1:3306/
+script:
+ - pip install tox
+ - tox -e "{py27,py33,py34,py35}-{sqlite,postgresql}" --skip-missing-interpreters
+services:
+ - postgres
diff --git a/CHANGELOG b/CHANGELOG
index c53c4d2..f6e1942 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.2 - 2017-11-08
+* Bug fixes (see mercurial logs for details)
+
Version 4.2.1 - 2017-01-03
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index a29b425..b707f78 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2014-2016 Cédric Krier.
-Copyright (C) 2014-2016 B2CK SPRL.
+Copyright (C) 2014-2017 Cédric Krier.
+Copyright (C) 2014-2017 B2CK SPRL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 8af0187..c1125d4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_commission
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module for commission
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/commission.py b/commission.py
index 7e53860..6786159 100644
--- a/commission.py
+++ b/commission.py
@@ -70,8 +70,8 @@ class Agent(ModelSQL, ModelView):
else:
bool_op = 'OR'
return [bool_op,
- ('party',) + tuple(clause[1:]),
- ('plan',) + tuple(clause[1:]),
+ ('party.rec_name',) + tuple(clause[1:]),
+ ('plan.rec_name',) + tuple(clause[1:]),
]
@classmethod
diff --git a/invoice.py b/invoice.py
index 2151cc0..c5577cd 100644
--- a/invoice.py
+++ b/invoice.py
@@ -99,9 +99,9 @@ class Invoice:
Commission.save(to_save)
def _credit(self):
- values = super(Invoice, self)._credit()
- values['agent'] = self.agent.id if self.agent else None
- return values
+ credit = super(Invoice, self)._credit()
+ credit.agent = self.agent
+ return credit
class InvoiceLine:
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..08e43cf
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = {py27,py33,py34,py35}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
+
+[testenv]
+commands = {envpython} setup.py test
+deps =
+ {py27,py33,py34,py35}-postgresql: psycopg2 >= 2.5
+ pypy-postgresql: psycopg2cffi >= 2.5
+ mysql: MySQL-python
+ sqlite: sqlitebck
+setenv =
+ sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
+ postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
+ mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://}
+ sqlite: DB_NAME={env:SQLITE_NAME::memory:}
+ postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
+ mysql: DB_NAME={env:MYSQL_NAME:test}
+install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
diff --git a/tryton.cfg b/tryton.cfg
index 89617b8..d6ecd27 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.2.1
+version=4.2.2
depends:
account
account_invoice
diff --git a/trytond_commission.egg-info/PKG-INFO b/trytond_commission.egg-info/PKG-INFO
index fb92f90..280234d 100644
--- a/trytond_commission.egg-info/PKG-INFO
+++ b/trytond_commission.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-commission
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module for commission
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond_commission.egg-info/SOURCES.txt b/trytond_commission.egg-info/SOURCES.txt
index 818dd62..ab2d95a 100644
--- a/trytond_commission.egg-info/SOURCES.txt
+++ b/trytond_commission.egg-info/SOURCES.txt
@@ -1,15 +1,24 @@
+.drone.yml
+.hgtags
CHANGELOG
COPYRIGHT
INSTALL
LICENSE
MANIFEST.in
README
+__init__.py
account.xml
+commission.py
commission.xml
+invoice.py
invoice.xml
+party.py
+product.py
product.xml
+sale.py
sale.xml
setup.py
+tox.ini
tryton.cfg
./__init__.py
./account.xml
@@ -78,7 +87,9 @@ locale/pt_BR.po
locale/ru.po
locale/sl.po
locale/zh_CN.po
+tests/__init__.py
tests/scenario_commission.rst
+tests/test_commission.py
trytond_commission.egg-info/PKG-INFO
trytond_commission.egg-info/SOURCES.txt
trytond_commission.egg-info/dependency_links.txt
--
tryton-modules-commission
More information about the tryton-debian-vcs
mailing list