[tryton-debian-vcs] tryton-modules-stock-location-sequence branch upstream updated. upstream/2.8.0-1-g22eee1d
git repository hosting
tryton-debian-vcs at m9s.biz
Mon Nov 25 19:38:04 UTC 2013
The following commit has been merged in the upstream branch:
http://debian.tryton.org/gitweb/?p=packages/tryton-modules-stock-location-sequence.git;a=commitdiff;h=upstream/2.8.0-1-g22eee1d
commit 22eee1de85465d4f81c04e889f6614956df98c11
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 17:28:25 2013 +0100
Adding upstream version 3.0.0.
diff --git a/CHANGELOG b/CHANGELOG
index e318131..29f2d3a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.0 - 2013-10-21
+* Bug fixes (see mercurial logs for details)
+
Version 2.8.0 - 2013-04-22
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index c69e1c0..9da9a3a 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_stock_location_sequence
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module to add sequence on location
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_stock_location_sequence
===============================
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
new file mode 100644
index 0000000..5aca414
--- /dev/null
+++ b/locale/sl_SI.po
@@ -0,0 +1,7 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:stock.location,sequence:"
+msgid "Sequence"
+msgstr "Zap.št."
diff --git a/setup.py b/setup.py
index 36869a7..d1a7e85 100644
--- a/setup.py
+++ b/setup.py
@@ -63,6 +63,7 @@ setup(name='trytond_stock_location_sequence',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Russian',
+ 'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
diff --git a/stock.py b/stock.py
index c0783ff..bbbbf52 100644
--- a/stock.py
+++ b/stock.py
@@ -3,7 +3,7 @@
from trytond.model import fields
from trytond.pyson import Not, Eval, Bool
from trytond.transaction import Transaction
-from trytond.backend import TableHandler
+from trytond import backend
from trytond.pool import PoolMeta
__all__ = ['Location']
@@ -14,8 +14,6 @@ class Location:
"Stock Location"
__name__ = 'stock.location'
sequence = fields.Integer('Sequence',
- order_field='(%(table)s.sequence IS NULL) %(order)s, '
- '%(table)s.sequence %(order)s',
states={
'readonly': Not(Bool(Eval('active'))),
},
@@ -28,6 +26,7 @@ class Location:
@classmethod
def __register__(cls, module_name):
+ TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
table = TableHandler(cursor, cls, module_name)
@@ -35,3 +34,8 @@ class Location:
# Migration from 2.4: drop required on sequence
table.not_null_action('sequence', action='remove')
+
+ @staticmethod
+ def order_sequence(tables):
+ table, _ = tables[None]
+ return [table.sequence == None, table.sequence]
diff --git a/tests/__init__.py b/tests/__init__.py
index fca39e1..5f5a208 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2,3 +2,5 @@
#this repository contains the full copyright notices and license terms.
from .test_stock_location_sequence import suite
+
+__all__ = ['suite']
diff --git a/tryton.cfg b/tryton.cfg
index 0f74f32..fb9279e 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.8.0
+version=3.0.0
depends:
ir
stock
diff --git a/trytond_stock_location_sequence.egg-info/PKG-INFO b/trytond_stock_location_sequence.egg-info/PKG-INFO
index 0c9b9e5..f9592ce 100644
--- a/trytond_stock_location_sequence.egg-info/PKG-INFO
+++ b/trytond_stock_location_sequence.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-stock-location-sequence
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module to add sequence on location
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_stock_location_sequence
===============================
@@ -59,6 +59,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/trytond_stock_location_sequence.egg-info/SOURCES.txt b/trytond_stock_location_sequence.egg-info/SOURCES.txt
index 6ea5b65..9ba5056 100644
--- a/trytond_stock_location_sequence.egg-info/SOURCES.txt
+++ b/trytond_stock_location_sequence.egg-info/SOURCES.txt
@@ -21,6 +21,7 @@ locale/es_ES.po
locale/fr_FR.po
locale/nl_NL.po
locale/ru_RU.po
+locale/sl_SI.po
trytond_stock_location_sequence.egg-info/PKG-INFO
trytond_stock_location_sequence.egg-info/SOURCES.txt
trytond_stock_location_sequence.egg-info/dependency_links.txt
diff --git a/trytond_stock_location_sequence.egg-info/requires.txt b/trytond_stock_location_sequence.egg-info/requires.txt
index bd880d2..bfa8717 100644
--- a/trytond_stock_location_sequence.egg-info/requires.txt
+++ b/trytond_stock_location_sequence.egg-info/requires.txt
@@ -1,2 +1,2 @@
-trytond_stock >= 2.8, < 2.9
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond_stock >= 3.0, < 3.1
+trytond >= 3.0, < 3.1
\ No newline at end of file
--
tryton-modules-stock-location-sequence
More information about the tryton-debian-vcs
mailing list