[tryton-debian-vcs] tryton-modules-stock-supply-production branch debian created. b20f1b90b65044471193b9047eb4bd99d1132d40
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Nov 27 17:12:28 UTC 2013
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-supply-production.git;a=commitdiff;h=b20f1b90b65044471193b9047eb4bd99d1132d40
commit b20f1b90b65044471193b9047eb4bd99d1132d40
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Nov 25 20:30:41 2013 +0100
Releasing debian version 3.0.0-1.
diff --git a/debian/changelog b/debian/changelog
index 3777c50..58d4dd1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-stock-supply-production (3.0.0-1) unstable; urgency=low
+
+ * Merging upstream version 3.0.0.
+ * Updating to standards version 3.9.5, no changes needed.
+ * Changing to buildsystem pybuild.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Mon, 25 Nov 2013 17:55:48 +0100
+
tryton-modules-stock-supply-production (2.8.0-2) unstable; urgency=low
* Moving doc/index.rst to appropriate subdirectory doc.
commit 619fbc48501bcb4bc9d12821649635b4e6250ea3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 19:51:52 2013 +0100
Changing to buildsystem pybuild.
diff --git a/debian/control b/debian/control
index b7684f7..cb3c125 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Section: python
Priority: optional
Maintainer: Debian Tryton Maintainers <maintainers at debian.tryton.org>
Uploaders: Mathias Behrle <mathiasb at m9s.biz>
-Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools
+Build-Depends:
+ debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools, dh-python
Standards-Version: 3.9.5
Homepage: http://www.tryton.org/
Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-modules-stock-supply-production.git
diff --git a/debian/rules b/debian/rules
index 30074ad..5b8c326 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,24 +1,17 @@
#!/usr/bin/make -f
-MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
-PACKAGE_NAME := $(shell python setup.py --name)
-
-%:
- dh ${@} --with python2
+# needed for pbuilder
+export LC_ALL=C.UTF-8
-override_dh_auto_clean:
- dh_auto_clean
+MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
+PACKAGE_NAME := tryton-modules-$(shell python setup.py --name | sed s/^trytond_// | sed s/_/-/g)
+export PYBUILD_DESTDIR_python2=debian/${PACKAGE_NAME}
-override_dh_auto_build:
- mv $(PACKAGE_NAME).egg-info $(PACKAGE_NAME).hen-info
- mv PKG-INFO PKG-INFO.hen
- dh_auto_build
+# Don't run tests for Tryton modules, they try to download dependencies from pypi
+export PYBUILD_DISABLE_python2.7=test
-override_dh_auto_install:
- dh_auto_install
- rm -rf *.egg-info
- mv $(PACKAGE_NAME).hen-info $(PACKAGE_NAME).egg-info
- mv PKG-INFO.hen PKG-INFO
+%:
+ dh ${@} --with python2 --buildsystem=pybuild
override_dh_gencontrol:
dh_gencontrol -- -Vversion:major="$(MAJOR)"
commit 0b25136378811d5b4cc6656027e4b105174a73f3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 19:14:21 2013 +0100
Updating to standards version 3.9.5, no changes needed.
diff --git a/debian/control b/debian/control
index 67191d5..b7684f7 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Tryton Maintainers <maintainers at debian.tryton.org>
Uploaders: Mathias Behrle <mathiasb at m9s.biz>
Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
Homepage: http://www.tryton.org/
Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-modules-stock-supply-production.git
Vcs-Git: git://debian.tryton.org/packages/tryton-modules-stock-supply-production.git
commit ca25c2f5aec329c9ef4321282fd1c8f29da3bab8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 17:28:46 2013 +0100
Merging upstream version 3.0.0.
diff --git a/CHANGELOG b/CHANGELOG
index a038a0f..2863f4a 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 6000935..38828a3 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_stock_supply_production
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module for stock supply of production
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_supply_production
===============================
@@ -60,6 +60,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/de_DE.po b/locale/de_DE.po
index c427127..0e33002 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -24,7 +24,7 @@ msgstr "Produktionsanforderung erstellen"
msgctxt "model:ir.cron,name:cron_generate_request"
msgid "Generate Production Requests"
-msgstr "Produktionsanforderungen Erstellen"
+msgstr "Erstellen von Produktionsanforderungen"
msgctxt "model:ir.ui.menu,name:menu_production_request_create"
msgid "Create Production Requests"
diff --git a/locale/es_CO.po b/locale/es_CO.po
index 238f284..85f2597 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:production.configuration,supply_period:"
msgid "Supply Period"
-msgstr "Período de Provisión"
+msgstr "Período de Abastecimiento"
msgctxt "field:production.create_request.start,id:"
msgid "ID"
@@ -12,11 +12,11 @@ msgstr "ID"
msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
-msgstr "En número de días."
+msgstr "En número de días"
msgctxt "model:ir.action,name:act_production_request"
msgid "Request Productions"
-msgstr ""
+msgstr "Órdenes de Producción"
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 687e3f2..3074d11 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -20,7 +20,7 @@ msgstr "Demandes de production"
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
-msgstr "Créer des demandes de production"
+msgstr "Créer les demandes de production"
msgctxt "model:ir.cron,name:cron_generate_request"
msgid "Generate Production Requests"
@@ -28,11 +28,11 @@ msgstr "Générer les demandes de production"
msgctxt "model:ir.ui.menu,name:menu_production_request_create"
msgid "Create Production Requests"
-msgstr "Créer des demandes de production"
+msgstr "Créer les demandes de production"
msgctxt "model:production.create_request.start,name:"
msgid "Create Production Request"
-msgstr "Créer des demandes de production"
+msgstr "Créer les demandes de production"
msgctxt "model:res.user,name:user_generate_request"
msgid "Cron Production Request"
@@ -44,11 +44,11 @@ msgstr "Production"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request"
-msgstr "Créer des demandes de production"
+msgstr "Créer les demandes de production"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request?"
-msgstr "Créer des demandes de production ?"
+msgstr "Créer les demandes de production ?"
msgctxt "wizard_button:production.create_request,start,create_:"
msgid "Create"
diff --git a/locale/es_CO.po b/locale/sl_SI.po
similarity index 74%
copy from locale/es_CO.po
copy to locale/sl_SI.po
index 238f284..00f312a 100644
--- a/locale/es_CO.po
+++ b/locale/sl_SI.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:production.configuration,supply_period:"
msgid "Supply Period"
-msgstr "Período de Provisión"
+msgstr "Obdobje dobave"
msgctxt "field:production.create_request.start,id:"
msgid "ID"
@@ -12,48 +12,48 @@ msgstr "ID"
msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
-msgstr "En número de días."
+msgstr "V dnevih"
msgctxt "model:ir.action,name:act_production_request"
msgid "Request Productions"
-msgstr ""
+msgstr "Proizvodni zahtevki"
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
-msgstr "Crear Ordenes de Producción"
+msgstr "Izdelava proizvodnih zahtevkov"
msgctxt "model:ir.cron,name:cron_generate_request"
msgid "Generate Production Requests"
-msgstr "Generar Ordenes de Producción"
+msgstr "Izdelava proizvodnih zahtevkov"
msgctxt "model:ir.ui.menu,name:menu_production_request_create"
msgid "Create Production Requests"
-msgstr "Crear Ordenes de Producción"
+msgstr "Izdelava proizvodnih zahtevkov"
msgctxt "model:production.create_request.start,name:"
msgid "Create Production Request"
-msgstr "Crear Orden de Producción"
+msgstr "Izdelava proizvodnega zahtevka"
msgctxt "model:res.user,name:user_generate_request"
msgid "Cron Production Request"
-msgstr "Cron Orden de Producción"
+msgstr "Razporejevalnik proizvodnih zahtevkov"
msgctxt "selection:stock.order_point,type:"
msgid "Production"
-msgstr "Producción"
+msgstr "Proizvodni nalog"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request"
-msgstr "Crear Orden de Producción"
+msgstr "Izdelava proizvodnega zahtevka"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request?"
-msgstr "¿Crear Orden de Producción?"
+msgstr "Izdelava proizvodnega zahtevka?"
msgctxt "wizard_button:production.create_request,start,create_:"
msgid "Create"
-msgstr "Crear"
+msgstr "Ustvari"
msgctxt "wizard_button:production.create_request,start,end:"
msgid "Cancel"
-msgstr "Cancelar"
+msgstr "Prekliči"
diff --git a/production.py b/production.py
index 00f982b..13682a3 100644
--- a/production.py
+++ b/production.py
@@ -79,14 +79,14 @@ class Production:
with Transaction().set_context(forecast=True,
stock_date_end=today):
pbl = Product.products_by_location(warehouse_ids,
- product_ids, with_childs=True, skip_zero=False)
+ product_ids, with_childs=True)
# order product by supply period
products_period = sorted([(p.get_supply_period(), p)
for p in products[i:i + cursor.IN_MAX]])
for warehouse in warehouses:
- quantities = dict((x, pbl.pop((warehouse.id, x)))
+ quantities = dict((x, pbl.pop((warehouse.id, x), 0))
for x in product_ids)
shortages = cls.get_shortage(warehouse.id, product_ids, today,
quantities, products_period, product2ops)
@@ -176,7 +176,7 @@ class Production:
with Transaction().set_context(stock_date_start=current_date,
stock_date_end=current_date):
pbl = Product.products_by_location([location_id],
- product_ids, with_childs=True, skip_zero=False)
+ product_ids, with_childs=True)
for key, qty in pbl.iteritems():
_, product_id = key
current_qties[product_id] += qty
diff --git a/setup.py b/setup.py
index d204d1c..5bdf686 100644
--- a/setup.py
+++ b/setup.py
@@ -64,6 +64,7 @@ setup(name='trytond_stock_supply_production',
'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/tests/__init__.py b/tests/__init__.py
index 1b9dc63..9c8d55e 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_supply_production import suite
+
+__all__ = ['suite']
diff --git a/tryton.cfg b/tryton.cfg
index bdab2c0..00e751d 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.8.0
+version=3.0.0
depends:
ir
product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index 0ebf9df..d3dd9e4 100644
--- a/trytond_stock_supply_production.egg-info/PKG-INFO
+++ b/trytond_stock_supply_production.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-stock-supply-production
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module for stock supply of production
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_supply_production
===============================
@@ -60,6 +60,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_supply_production.egg-info/SOURCES.txt b/trytond_stock_supply_production.egg-info/SOURCES.txt
index 6e8f3eb..31a2da8 100644
--- a/trytond_stock_supply_production.egg-info/SOURCES.txt
+++ b/trytond_stock_supply_production.egg-info/SOURCES.txt
@@ -24,6 +24,7 @@ locale/es_ES.po
locale/fr_FR.po
locale/nl_NL.po
locale/ru_RU.po
+locale/sl_SI.po
trytond_stock_supply_production.egg-info/PKG-INFO
trytond_stock_supply_production.egg-info/SOURCES.txt
trytond_stock_supply_production.egg-info/dependency_links.txt
diff --git a/trytond_stock_supply_production.egg-info/requires.txt b/trytond_stock_supply_production.egg-info/requires.txt
index c2bb6ad..ec13481 100644
--- a/trytond_stock_supply_production.egg-info/requires.txt
+++ b/trytond_stock_supply_production.egg-info/requires.txt
@@ -1,5 +1,5 @@
-trytond_product >= 2.8, < 2.9
-trytond_production >= 2.8, < 2.9
-trytond_stock >= 2.8, < 2.9
-trytond_stock_supply >= 2.8, < 2.9
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond_product >= 3.0, < 3.1
+trytond_production >= 3.0, < 3.1
+trytond_stock >= 3.0, < 3.1
+trytond_stock_supply >= 3.0, < 3.1
+trytond >= 3.0, < 3.1
\ No newline at end of file
commit ee6891402ec4f4320680798a3086580471063553
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Aug 6 16:21:17 2013 +0200
Releasing debian version 2.8.0-2.
diff --git a/debian/changelog b/debian/changelog
index 3019fb5..3777c50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+tryton-modules-stock-supply-production (2.8.0-2) unstable; urgency=low
+
+ * Moving doc/index.rst to appropriate subdirectory doc.
+ * Simplifying package layout by renaming <pkg_name>.docs to docs.
+ * Removing needless empty line in rules.
+ * Adapting the rules file to work also with git-buildpackage.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 06 Aug 2013 13:33:51 +0200
+
tryton-modules-stock-supply-production (2.8.0-1) experimental; urgency=low
* Merging upstream version 2.8.0.
commit aaa9fe2e06d385c978e38999c08324df20e220fd
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Aug 5 18:06:36 2013 +0200
Adapting the rules file to work also with git-buildpackage.
diff --git a/debian/rules b/debian/rules
index a6a1fb8..30074ad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,24 @@
#!/usr/bin/make -f
MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
+PACKAGE_NAME := $(shell python setup.py --name)
%:
dh ${@} --with python2
override_dh_auto_clean:
dh_auto_clean
+
+override_dh_auto_build:
+ mv $(PACKAGE_NAME).egg-info $(PACKAGE_NAME).hen-info
+ mv PKG-INFO PKG-INFO.hen
+ dh_auto_build
+
+override_dh_auto_install:
+ dh_auto_install
rm -rf *.egg-info
+ mv $(PACKAGE_NAME).hen-info $(PACKAGE_NAME).egg-info
+ mv PKG-INFO.hen PKG-INFO
override_dh_gencontrol:
dh_gencontrol -- -Vversion:major="$(MAJOR)"
commit 835dcad56a53d12730a1779cd8a723a779e5c210
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed May 29 17:19:30 2013 +0200
Removing needless empty line in rules.
diff --git a/debian/rules b/debian/rules
index 0f63ab4..a6a1fb8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,6 @@ MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
override_dh_auto_clean:
dh_auto_clean
-
rm -rf *.egg-info
override_dh_gencontrol:
commit 818b9d0da0b8269872fa96fbb87be48e17b94ba8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed May 29 16:57:52 2013 +0200
Simplifying package layout by renaming <pkg_name>.docs to docs.
Thanks to Andreas Tille for this proposal. Since tryton module packages
will most probably stay simple binary packages this change simplifies the
package layout.
diff --git a/debian/tryton-modules-stock-supply-production.docs b/debian/docs
similarity index 100%
rename from debian/tryton-modules-stock-supply-production.docs
rename to debian/docs
commit cbaf38f53ab2cfa680b2edbbd98f5f8257ef08c9
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue May 14 18:40:52 2013 +0200
Moving doc/index.rst to appropriate subdirectory doc.
diff --git a/debian/tryton-modules-stock-supply-production.docs b/debian/tryton-modules-stock-supply-production.docs
index 172a1f8..a2e6bd4 100644
--- a/debian/tryton-modules-stock-supply-production.docs
+++ b/debian/tryton-modules-stock-supply-production.docs
@@ -1 +1 @@
-doc/index.rst
+doc/
commit ae3070015f8539c003b71c8abaf8910f2156626e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu May 2 17:27:14 2013 +0200
Releasing debian version 2.8.0-1.
diff --git a/debian/changelog b/debian/changelog
index 057deb9..3019fb5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-stock-supply-production (2.8.0-1) experimental; urgency=low
+
+ * Merging upstream version 2.8.0.
+ * Updating copyright.
+ * First upload to Debian (Closes: #706855).
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Thu, 02 May 2013 15:21:15 +0200
+
tryton-modules-stock-supply-production (2.6.1-2) experimental; urgency=low
* Improving update of major version in Depends.
commit 8785dd1d51cf5b5b4d2e7bb110249ca2f8dc3f6f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu May 2 14:13:11 2013 +0200
Updating copyright.
diff --git a/debian/copyright b/debian/copyright
index 900682e..629bf50 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,8 +1,8 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2012 Cédric Krier
- 2012 B2CK SPRL
+Copyright: 2012-2013 Cédric Krier
+ 2012-2013 B2CK SPRL
License: GPL-3+
Files: debian/*
commit 9d195f6d6d3fbfb2b3f6bb673a55dfc393947672
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu May 2 00:38:25 2013 +0200
Merging upstream version 2.8.0.
diff --git a/CHANGELOG b/CHANGELOG
index ea0e50a..a038a0f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Version 2.6.1 - 2012-12-23
+Version 2.8.0 - 2013-04-22
* Bug fixes (see mercurial logs for details)
Version 2.6.0 - 2012-10-22
diff --git a/COPYRIGHT b/COPYRIGHT
index 747ae18..7668cfa 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2012 Cédric Krier.
-Copyright (C) 2012 B2CK SPRL.
+Copyright (C) 2012-2013 Cédric Krier.
+Copyright (C) 2012-2013 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/MANIFEST.in b/MANIFEST.in
index e4632a1..732a76e 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -6,6 +6,7 @@ include CHANGELOG
include LICENSE
include tryton.cfg
include *.xml
+include view/*.xml
include *.odt
include locale/*.po
include doc/*
diff --git a/PKG-INFO b/PKG-INFO
index 53a2abf..6000935 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_stock_supply_production
-Version: 2.6.1
+Version: 2.8.0
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.6/
+Download-URL: http://downloads.tryton.org/2.8/
Description: trytond_stock_supply_production
===============================
@@ -53,6 +53,7 @@ Classifier: Intended Audience :: Legal Industry
Classifier: Intended Audience :: Manufacturing
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: Bulgarian
+Classifier: Natural Language :: Catalan
Classifier: Natural Language :: Czech
Classifier: Natural Language :: Dutch
Classifier: Natural Language :: English
diff --git a/locale/bg_BG.po b/locale/bg_BG.po
index 742420e..1ae8447 100644
--- a/locale/bg_BG.po
+++ b/locale/bg_BG.po
@@ -16,6 +16,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "В брой дни"
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr ""
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr ""
diff --git a/locale/ca_ES.po b/locale/ca_ES.po
index 87bafe0..ed5ff18 100644
--- a/locale/ca_ES.po
+++ b/locale/ca_ES.po
@@ -4,57 +4,56 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:production.configuration,supply_period:"
msgid "Supply Period"
-msgstr ""
+msgstr "Període de suministre"
-#, fuzzy
msgctxt "field:production.create_request.start,id:"
msgid "ID"
msgstr "ID"
-#, fuzzy
msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
-msgstr "En nombre de dies"
+msgstr "En número de dies"
+
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr "Sol·licituds de producció"
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
-msgstr ""
+msgstr "Crea sol·licituts de producció"
msgctxt "model:ir.cron,name:cron_generate_request"
msgid "Generate Production Requests"
-msgstr ""
+msgstr "Creació sol·licituts de producció"
msgctxt "model:ir.ui.menu,name:menu_production_request_create"
msgid "Create Production Requests"
-msgstr ""
+msgstr "Crea sol·licituts de producció"
msgctxt "model:production.create_request.start,name:"
msgid "Create Production Request"
-msgstr ""
+msgstr "Crea la petició de producció"
msgctxt "model:res.user,name:user_generate_request"
msgid "Cron Production Request"
-msgstr ""
+msgstr "Planificador de solicitut de producció"
-#, fuzzy
msgctxt "selection:stock.order_point,type:"
msgid "Production"
msgstr "Producció"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request"
-msgstr ""
+msgstr "Crea sol·licituts de producció"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request?"
-msgstr ""
+msgstr "Voleu crear la petició de producció?"
-#, fuzzy
msgctxt "wizard_button:production.create_request,start,create_:"
msgid "Create"
-msgstr "Crear"
+msgstr "Crea"
-#, fuzzy
msgctxt "wizard_button:production.create_request,start,end:"
msgid "Cancel"
msgstr "Cancel·la"
diff --git a/locale/cs_CZ.po b/locale/cs_CZ.po
index badfddf..937f611 100644
--- a/locale/cs_CZ.po
+++ b/locale/cs_CZ.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr ""
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr ""
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr ""
diff --git a/locale/de_DE.po b/locale/de_DE.po
index 57c850b..c427127 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "In Anzahl von Tagen"
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr "Prouktionen anfragen"
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr "Produktionsanforderung erstellen"
diff --git a/locale/es_AR.po b/locale/es_AR.po
index 76d14cc..3564bc2 100644
--- a/locale/es_AR.po
+++ b/locale/es_AR.po
@@ -14,25 +14,29 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "En número de días"
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr "Solicitudes de producción"
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
-msgstr "Crear Ordenes de Producción"
+msgstr "Crear solicitudes de producción"
msgctxt "model:ir.cron,name:cron_generate_request"
msgid "Generate Production Requests"
-msgstr "Generar Ordenes de Producción"
+msgstr "Generar solicitudes de producción"
msgctxt "model:ir.ui.menu,name:menu_production_request_create"
msgid "Create Production Requests"
-msgstr "Crear Ordenes de Producción"
+msgstr "Crear solicitudes de producción"
msgctxt "model:production.create_request.start,name:"
msgid "Create Production Request"
-msgstr "Crear Orden de Producción"
+msgstr "Crear solicitud de producción"
msgctxt "model:res.user,name:user_generate_request"
msgid "Cron Production Request"
-msgstr "Programador de Orden de Producción"
+msgstr "Programador de solicitud de producción"
msgctxt "selection:stock.order_point,type:"
msgid "Production"
@@ -40,11 +44,11 @@ msgstr "Producción"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request"
-msgstr "Crear Orden de Producción"
+msgstr "Crear solicitud de producción"
msgctxt "view:production.create_request.start:"
msgid "Create Production Request?"
-msgstr "¿Crear Orden de Producción?"
+msgstr "¿Crear solicitud de producción?"
msgctxt "wizard_button:production.create_request,start,create_:"
msgid "Create"
diff --git a/locale/es_CO.po b/locale/es_CO.po
index 766e8d6..238f284 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "En número de días."
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr ""
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr "Crear Ordenes de Producción"
diff --git a/locale/es_ES.po b/locale/es_ES.po
index 149b09b..7c696ea 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "En número de días."
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr "Solicitudes de producción"
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr "Crear solicitudes de producción"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index e5e6fbf..687e3f2 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr "En nombre de jours"
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr "Demandes de production"
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr "Créer des demandes de production"
diff --git a/locale/nl_NL.po b/locale/nl_NL.po
index 29ac31b..6abd670 100644
--- a/locale/nl_NL.po
+++ b/locale/nl_NL.po
@@ -14,6 +14,10 @@ msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
msgstr ""
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
+msgstr ""
+
msgctxt "model:ir.action,name:act_production_request_create"
msgid "Create Production Requests"
msgstr ""
diff --git a/locale/ru_RU.po b/locale/ru_RU.po
index e66cef8..684cd2b 100644
--- a/locale/ru_RU.po
+++ b/locale/ru_RU.po
@@ -6,12 +6,18 @@ msgctxt "field:production.configuration,supply_period:"
msgid "Supply Period"
msgstr ""
+#, fuzzy
msgctxt "field:production.create_request.start,id:"
msgid "ID"
-msgstr ""
+msgstr "ID"
+#, fuzzy
msgctxt "help:production.configuration,supply_period:"
msgid "In number of days"
+msgstr "После указанного количества дней"
+
+msgctxt "model:ir.action,name:act_production_request"
+msgid "Request Productions"
msgstr ""
msgctxt "model:ir.action,name:act_production_request_create"
@@ -47,9 +53,10 @@ msgctxt "view:production.create_request.start:"
msgid "Create Production Request?"
msgstr ""
+#, fuzzy
msgctxt "wizard_button:production.create_request,start,create_:"
msgid "Create"
-msgstr ""
+msgstr "Создать"
#, fuzzy
msgctxt "wizard_button:production.create_request,start,end:"
diff --git a/production.py b/production.py
index b55704d..00f982b 100644
--- a/production.py
+++ b/production.py
@@ -204,7 +204,7 @@ class CreateProductionRequest(Wizard):
Button('Cancel', 'end', 'tryton-cancel'),
Button('Create', 'create_', 'tryton-ok', default=True),
])
- create_ = StateAction('production.act_production_request')
+ create_ = StateAction('stock_supply_production.act_production_request')
def do_create_(self, action):
pool = Pool()
diff --git a/production.xml b/production.xml
index a1c796d..f844b6e 100644
--- a/production.xml
+++ b/production.xml
@@ -8,17 +8,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="model">production.configuration</field>
<field name="inherit"
ref="production.production_configuration_view_form"/>
- <field name="arch" type="xml">
- <![CDATA[
- <data>
- <xpath expr="/form/field[@name='production_sequence']"
- position="after">
- <label name="supply_period"/>
- <field name="supply_period"/>
- </xpath>
- </data>
- ]]>
- </field>
+ <field name="name">production_configuration_form</field>
</record>
<record model="ir.action.wizard" id="act_production_request_create">
@@ -30,16 +20,25 @@ this repository contains the full copyright notices and license terms. -->
id="production_create_request_start_view_form">
<field name="model">production.create_request.start</field>
<field name="type">form</field>
- <field name="arch" type="xml">
- <![CDATA[
- <form string="Create Production Request" col="2">
- <image name="tryton-dialog-information" xexpand="0"
- xfill="0"/>
- <label string="Create Production Request?" id="create"
- yalign="0.0" xalign="0.0" xexpand="1"/>
- </form>
- ]]>
- </field>
+ <field name="name">production_create_request_start_form</field>
+ </record>
+
+ <record model="ir.action.act_window" id="act_production_request">
+ <field name="name">Request Productions</field>
+ <field name="res_model">production</field>
+ <field name="search_value">[('state', '=', 'request')]</field>
+ </record>
+ <record model="ir.action.act_window.view"
+ id="act_production_request_view1">
+ <field name="sequence" eval="10"/>
+ <field name="view" ref="production.production_view_list"/>
+ <field name="act_window" ref="act_production_request"/>
+ </record>
+ <record model="ir.action.act_window.view"
+ id="act_production_request_view2">
+ <field name="sequence" eval="20"/>
+ <field name="view" ref="production.production_view_form"/>
+ <field name="act_window" ref="act_production_request"/>
</record>
<menuitem parent="production.menu_production_list" sequence="5"
diff --git a/setup.py b/setup.py
index 996cefe..d204d1c 100644
--- a/setup.py
+++ b/setup.py
@@ -25,10 +25,10 @@ requires = []
for dep in info.get('depends', []):
if not re.match(r'(ir|res|webdav)(\W|$)', dep):
requires.append('trytond_%s >= %s.%s, < %s.%s' %
- (dep, major_version, minor_version, major_version,
- minor_version + 1))
+ (dep, major_version, minor_version, major_version,
+ minor_version + 1))
requires.append('trytond >= %s.%s, < %s.%s' %
- (major_version, minor_version, major_version, minor_version + 1))
+ (major_version, minor_version, major_version, minor_version + 1))
setup(name='trytond_stock_supply_production',
version=info.get('version', '0.0.1'),
@@ -36,16 +36,16 @@ setup(name='trytond_stock_supply_production',
long_description=read('README'),
author='Tryton',
url='http://www.tryton.org/',
- download_url="http://downloads.tryton.org/" + \
- info.get('version', '0.0.1').rsplit('.', 1)[0] + '/',
+ download_url=("http://downloads.tryton.org/" +
+ info.get('version', '0.0.1').rsplit('.', 1)[0] + '/'),
package_dir={'trytond.modules.stock_supply_production': '.'},
packages=[
'trytond.modules.stock_supply_production',
'trytond.modules.stock_supply_production.tests',
],
package_data={
- 'trytond.modules.stock_supply_production': info.get('xml', []) \
- + ['tryton.cfg', 'locale/*.po'],
+ 'trytond.modules.stock_supply_production': (info.get('xml', [])
+ + ['tryton.cfg', 'view/*.xml', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
@@ -57,6 +57,7 @@ setup(name='trytond_stock_supply_production',
'Intended Audience :: Manufacturing',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: Bulgarian',
+ 'Natural Language :: Catalan',
'Natural Language :: Czech',
'Natural Language :: Dutch',
'Natural Language :: English',
diff --git a/stock.py b/stock.py
index 8067b79..135cf7f 100644
--- a/stock.py
+++ b/stock.py
@@ -28,7 +28,7 @@ class OrderPoint:
if type == 'production':
return 'warehouse_location'
result = super(OrderPoint, cls)._type2field(type=type)
- if type == None:
+ if type is None:
result['production'] = 'warehouse_location'
return result
diff --git a/tryton.cfg b/tryton.cfg
index bd107d5..bdab2c0 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.6.1
+version=2.8.0
depends:
ir
product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index 59cd9d5..0ebf9df 100644
--- a/trytond_stock_supply_production.egg-info/PKG-INFO
+++ b/trytond_stock_supply_production.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-stock-supply-production
-Version: 2.6.1
+Version: 2.8.0
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.6/
+Download-URL: http://downloads.tryton.org/2.8/
Description: trytond_stock_supply_production
===============================
@@ -53,6 +53,7 @@ Classifier: Intended Audience :: Legal Industry
Classifier: Intended Audience :: Manufacturing
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: Bulgarian
+Classifier: Natural Language :: Catalan
Classifier: Natural Language :: Czech
Classifier: Natural Language :: Dutch
Classifier: Natural Language :: English
diff --git a/trytond_stock_supply_production.egg-info/SOURCES.txt b/trytond_stock_supply_production.egg-info/SOURCES.txt
index 81e5804..6e8f3eb 100644
--- a/trytond_stock_supply_production.egg-info/SOURCES.txt
+++ b/trytond_stock_supply_production.egg-info/SOURCES.txt
@@ -30,4 +30,6 @@ trytond_stock_supply_production.egg-info/dependency_links.txt
trytond_stock_supply_production.egg-info/entry_points.txt
trytond_stock_supply_production.egg-info/not-zip-safe
trytond_stock_supply_production.egg-info/requires.txt
-trytond_stock_supply_production.egg-info/top_level.txt
\ No newline at end of file
+trytond_stock_supply_production.egg-info/top_level.txt
+view/production_configuration_form.xml
+view/production_create_request_start_form.xml
\ No newline at end of file
diff --git a/trytond_stock_supply_production.egg-info/requires.txt b/trytond_stock_supply_production.egg-info/requires.txt
index 040868d..c2bb6ad 100644
--- a/trytond_stock_supply_production.egg-info/requires.txt
+++ b/trytond_stock_supply_production.egg-info/requires.txt
@@ -1,5 +1,5 @@
-trytond_product >= 2.6, < 2.7
-trytond_production >= 2.6, < 2.7
-trytond_stock >= 2.6, < 2.7
-trytond_stock_supply >= 2.6, < 2.7
-trytond >= 2.6, < 2.7
\ No newline at end of file
+trytond_product >= 2.8, < 2.9
+trytond_production >= 2.8, < 2.9
+trytond_stock >= 2.8, < 2.9
+trytond_stock_supply >= 2.8, < 2.9
+trytond >= 2.8, < 2.9
\ No newline at end of file
diff --git a/view/production_configuration_form.xml b/view/production_configuration_form.xml
new file mode 100644
index 0000000..59b6eed
--- /dev/null
+++ b/view/production_configuration_form.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
+this repository contains the full copyright notices and license terms. -->
+<data>
+ <xpath expr="/form/field[@name='production_sequence']" position="after">
+ <label name="supply_period"/>
+ <field name="supply_period"/>
+ </xpath>
+</data>
diff --git a/view/production_create_request_start_form.xml b/view/production_create_request_start_form.xml
new file mode 100644
index 0000000..c0d4061
--- /dev/null
+++ b/view/production_create_request_start_form.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
+this repository contains the full copyright notices and license terms. -->
+<form string="Create Production Request" col="2">
+ <image name="tryton-dialog-information" xexpand="0" xfill="0"/>
+ <label string="Create Production Request?" id="create"
+ yalign="0.0" xalign="0.0" xexpand="1"/>
+</form>
commit 274cdfb17942e3d84be21bed3778a93c2cdc4bb1
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Apr 27 18:44:58 2013 +0200
Releasing debian version 2.6.1-2.
diff --git a/debian/changelog b/debian/changelog
index 0c86014..057deb9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-stock-supply-production (2.6.1-2) experimental; urgency=low
+
+ * Improving update of major version in Depends.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sat, 27 Apr 2013 15:09:39 +0200
+
tryton-modules-stock-supply-production (2.6.1-1) experimental; urgency=low
* Initial packaging.
commit 3fbba37685b01b060d71a38f731ef952284b02dc
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Apr 27 14:54:48 2013 +0200
Improving update of major version in Depends.
Pulling the major version for Depends directly from the package version.
Thanks to Ilya Melnikov for pushing the idea.
diff --git a/debian/control b/debian/control
index 5068296..67191d5 100644
--- a/debian/control
+++ b/debian/control
@@ -13,10 +13,11 @@ X-Python-Version: >= 2.6
Package: tryton-modules-stock-supply-production
Architecture: all
Depends:
- ${misc:Depends}, ${python:Depends}, tryton-server (>= 2.6),
- tryton-modules-product (>= 2.6), tryton-modules-production (>= 2.6),
- tryton-modules-stock (>= 2.6), tryton-modules-stock-supply (>= 2.6),
- python-pkg-resources
+ ${misc:Depends}, ${python:Depends}, tryton-server (>= ${version:major}),
+ tryton-modules-product (>= ${version:major}),
+ tryton-modules-production (>= ${version:major}),
+ tryton-modules-stock (>= ${version:major}),
+ tryton-modules-stock-supply (>= ${version:major}), python-pkg-resources
Description: Tryton Application Platform (Stock Supply Production Module)
Tryton is a high-level general purpose application platform written in Python
and using PostgreSQL as database engine. It is the core base of a complete
diff --git a/debian/rules b/debian/rules
index 1ae0776..0f63ab4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')
+
%:
dh ${@} --with python2
@@ -8,5 +10,8 @@ override_dh_auto_clean:
rm -rf *.egg-info
+override_dh_gencontrol:
+ dh_gencontrol -- -Vversion:major="$(MAJOR)"
+
override_dh_builddeb:
dh_builddeb -- -Zxz -z9
commit 9bc8cb213850f438d5bb195ea9d94a685cd7cad5
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Apr 23 15:09:53 2013 +0200
Adding debian version 2.6.1-1.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0c86014
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+tryton-modules-stock-supply-production (2.6.1-1) experimental; urgency=low
+
+ * Initial packaging.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 23 Apr 2013 13:54:31 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..5068296
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: tryton-modules-stock-supply-production
+Section: python
+Priority: optional
+Maintainer: Debian Tryton Maintainers <maintainers at debian.tryton.org>
+Uploaders: Mathias Behrle <mathiasb at m9s.biz>
+Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools
+Standards-Version: 3.9.4
+Homepage: http://www.tryton.org/
+Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-modules-stock-supply-production.git
+Vcs-Git: git://debian.tryton.org/packages/tryton-modules-stock-supply-production.git
+X-Python-Version: >= 2.6
+
+Package: tryton-modules-stock-supply-production
+Architecture: all
+Depends:
+ ${misc:Depends}, ${python:Depends}, tryton-server (>= 2.6),
+ tryton-modules-product (>= 2.6), tryton-modules-production (>= 2.6),
+ tryton-modules-stock (>= 2.6), tryton-modules-stock-supply (>= 2.6),
+ python-pkg-resources
+Description: Tryton Application Platform (Stock Supply Production Module)
+ Tryton is a high-level general purpose application platform written in Python
+ and using PostgreSQL as database engine. It is the core base of a complete
+ business solution.
+ .
+ This package adds automatic supply mechanisms via production requests.
+ .
+ * It adds a new type of Order Point: Production
+ * The production requests are created by the schedulers with respect to stock
+ levels and existing requests.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..900682e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: 2012 Cédric Krier
+ 2012 B2CK SPRL
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2009-2012 Daniel Baumann <daniel at debian.org>
+ 2012-2013 Mathias Behrle <mathiasb at m9s.biz>
+License: GPL-3+
+
+License: GPL-3+
+ 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
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-3 file.
diff --git a/debian/pydist-overrides b/debian/pydist-overrides
new file mode 100644
index 0000000..653a65e
--- /dev/null
+++ b/debian/pydist-overrides
@@ -0,0 +1 @@
+trytond_production tryton-modules-production
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1ae0776
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@} --with python2
+
+override_dh_auto_clean:
+ dh_auto_clean
+
+ rm -rf *.egg-info
+
+override_dh_builddeb:
+ dh_builddeb -- -Zxz -z9
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/tryton-modules-stock-supply-production.docs b/debian/tryton-modules-stock-supply-production.docs
new file mode 100644
index 0000000..172a1f8
--- /dev/null
+++ b/debian/tryton-modules-stock-supply-production.docs
@@ -0,0 +1 @@
+doc/index.rst
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b47d80e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://downloads.tryton.org/current/ .*trytond_stock_supply_production-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
commit 9043b50a665d0e073431883ba4d7d2d9650d8aa2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Apr 22 23:19:28 2013 +0200
Merging upstream version 2.6.1.
diff --git a/CHANGELOG b/CHANGELOG
index 4ea9392..ea0e50a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.6.1 - 2012-12-23
+* Bug fixes (see mercurial logs for details)
+
Version 2.6.0 - 2012-10-22
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 81bef31..53a2abf 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
Name: trytond_stock_supply_production
-Version: 2.6.0
+Version: 2.6.1
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/production.py b/production.py
index 0871d19..b55704d 100644
--- a/production.py
+++ b/production.py
@@ -70,10 +70,6 @@ class Production:
('consumable', '=', False),
('purchasable', '=', False),
])
- # order product by supply period
- products_period = sorted([(p.get_supply_period(), p)
- for p in products])
-
# compute requests
cursor = Transaction().cursor
today = Date.today()
@@ -84,6 +80,11 @@ class Production:
stock_date_end=today):
pbl = Product.products_by_location(warehouse_ids,
product_ids, with_childs=True, skip_zero=False)
+
+ # order product by supply period
+ products_period = sorted([(p.get_supply_period(), p)
+ for p in products[i:i + cursor.IN_MAX]])
+
for warehouse in warehouses:
quantities = dict((x, pbl.pop((warehouse.id, x)))
for x in product_ids)
diff --git a/tryton.cfg b/tryton.cfg
index 2de3f0a..bd107d5 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.6.0
+version=2.6.1
depends:
ir
product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index d834d8a..59cd9d5 100644
--- a/trytond_stock_supply_production.egg-info/PKG-INFO
+++ b/trytond_stock_supply_production.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
-Metadata-Version: 1.0
+Metadata-Version: 1.1
Name: trytond-stock-supply-production
-Version: 2.6.0
+Version: 2.6.1
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-stock-supply-production
More information about the tryton-debian-vcs
mailing list