[tryton-debian-vcs] tryton-modules-sale-supply branch debian updated. debian/4.4.1-1-4-gf2253cd

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Fri Nov 10 12:19:24 UTC 2017


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-sale-supply.git;a=commitdiff;h=debian/4.4.1-1-4-gf2253cd

commit f2253cda8b6c92b4bb28565c947f87ab3ac7c960
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Nov 7 16:24:58 2017 +0100

    Releasing debian version 4.6.0-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index db90d88..14a2505 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-sale-supply (4.6.0-1) unstable; urgency=medium
+
+  * Bump the Standards-Version to 4.1.1, no changes needed.
+  * Merging upstream version 4.6.0.
+  * Use https in the watch file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Tue, 07 Nov 2017 10:20:34 +0100
+
 tryton-modules-sale-supply (4.4.1-1) unstable; urgency=medium
 
   * Bump the Standards-Version to 4.1.0, no changes needed.
commit b16d749405fa8e20862f3aff9ef21d42e6a22d7b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Nov 7 10:16:46 2017 +0100

    Use https in the watch file.

diff --git a/debian/watch b/debian/watch
index 1e021e0..78e03cd 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-opts=pgpsigurlmangle=s/$/.asc/ http://downloads.tryton.org/current/ .*trytond_sale_supply-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
+opts=pgpsigurlmangle=s/$/.asc/ https://downloads.tryton.org/current/ .*trytond_sale_supply-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
commit 30c17862c5f903b3299dac38f13f57ee44c7b3e2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Nov 6 14:41:19 2017 +0100

    Merging upstream version 4.6.0.

diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..e0bc2f7
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,51 @@
+clone:
+    hg:
+        image: plugins/hg
+
+pipeline:
+    tox:
+        image: ${IMAGE}
+        environment:
+            - CFLAGS=-O0
+            - DB_CACHE=/cache
+            - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
+            - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
+        commands:
+            - pip install tox
+            - tox -e "${TOXENV}-${DATABASE}"
+        volumes:
+            - cache:/root/.cache
+
+services:
+    postgresql:
+        image: postgres
+        when:
+            matrix:
+                DATABASE: postgresql
+
+matrix:
+    include:
+        - IMAGE: python:2.7
+          TOXENV: py27
+          DATABASE: sqlite
+        - IMAGE: python:2.7
+          TOXENV: py27
+          DATABASE: postgresql
+        - IMAGE: python:3.4
+          TOXENV: py34
+          DATABASE: sqlite
+        - IMAGE: python:3.4
+          TOXENV: py34
+          DATABASE: postgresql
+        - IMAGE: python:3.5
+          TOXENV: py35
+          DATABASE: sqlite
+        - IMAGE: python:3.5
+          TOXENV: py35
+          DATABASE: postgresql
+        - IMAGE: python:3.6
+          TOXENV: py36
+          DATABASE: sqlite
+        - IMAGE: python:3.6
+          TOXENV: py36
+          DATABASE: postgresql
diff --git a/CHANGELOG b/CHANGELOG
index 56bcbf9..643782f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Version 4.4.1 - 2017-10-04
+Version 4.6.0 - 2017-10-30
 * Bug fixes (see mercurial logs for details)
 
 Version 4.4.0 - 2017-05-01
diff --git a/PKG-INFO b/PKG-INFO
index 5530bf2..ee5e3e9 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_sale_supply
-Version: 4.4.1
+Version: 4.6.0
 Summary: Tryton module for sale supply
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
 Description: sale_supply
         ===========
         
@@ -69,9 +69,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/locale/bg.po b/locale/bg.po
index b5aa0fc..b5f1cb4 100644
--- a/locale/bg.po
+++ b/locale/bg.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/ca.po b/locale/ca.po
index 4e81cb9..70a6c48 100644
--- a/locale/ca.po
+++ b/locale/ca.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/cs.po b/locale/cs.po
index 348d665..7b59658 100644
--- a/locale/cs.po
+++ b/locale/cs.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/de.po b/locale/de.po
index 23eb93c..d351f3f 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/es.po b/locale/es.po
index c1e5855..000e35d 100644
--- a/locale/es.po
+++ b/locale/es.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/es_419.po b/locale/es_419.po
index 348d665..b67e43d 100644
--- a/locale/es_419.po
+++ b/locale/es_419.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -40,4 +40,4 @@ msgstr ""
 
 msgctxt "selection:sale.line,purchase_request_state:"
 msgid "Requested"
-msgstr ""
+msgstr "Solicitado"
diff --git a/locale/fr.po b/locale/fr.po
index f0f97b9..3a12d8f 100644
--- a/locale/fr.po
+++ b/locale/fr.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index 4da76af..cf383d6 100644
--- a/locale/hu_HU.po
+++ b/locale/hu_HU.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/it_IT.po b/locale/it_IT.po
index 8e67aa4..6257370 100644
--- a/locale/it_IT.po
+++ b/locale/it_IT.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/ja_JP.po b/locale/ja_JP.po
index f6638b5..c6a7f36 100644
--- a/locale/ja_JP.po
+++ b/locale/ja_JP.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/lo.po b/locale/lo.po
index 4a60ae8..129a2e1 100644
--- a/locale/lo.po
+++ b/locale/lo.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/lt.po b/locale/lt.po
index 348d665..7b59658 100644
--- a/locale/lt.po
+++ b/locale/lt.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/nl.po b/locale/nl.po
index 2c1fccb..b58d952 100644
--- a/locale/nl.po
+++ b/locale/nl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/pl.po b/locale/pl.po
index f6638b5..f0daa83 100644
--- a/locale/pl.po
+++ b/locale/pl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -12,7 +12,7 @@ msgstr ""
 
 msgctxt "field:purchase.request,sale_lines:"
 msgid "Sale Lines"
-msgstr ""
+msgstr "Wiersze sprzedaży"
 
 #, fuzzy
 msgctxt "field:sale.line,purchase_request:"
@@ -25,7 +25,7 @@ msgstr ""
 
 msgctxt "model:ir.action,name:act_purchase_request_form"
 msgid "Purchase Requests"
-msgstr "Purchase Requests"
+msgstr ""
 
 msgctxt "selection:sale.line,purchase_request_state:"
 msgid ""
@@ -33,11 +33,11 @@ msgstr ""
 
 msgctxt "selection:sale.line,purchase_request_state:"
 msgid "Cancel"
-msgstr ""
+msgstr "Anuluj"
 
 msgctxt "selection:sale.line,purchase_request_state:"
 msgid "Purchased"
-msgstr ""
+msgstr "Zakupiono"
 
 msgctxt "selection:sale.line,purchase_request_state:"
 msgid "Requested"
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index 9ba947d..3f593bb 100644
--- a/locale/pt_BR.po
+++ b/locale/pt_BR.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/ru.po b/locale/ru.po
index a9a257b..fd343d0 100644
--- a/locale/ru.po
+++ b/locale/ru.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/sl.po b/locale/sl.po
index 964012f..2e48e22 100644
--- a/locale/sl.po
+++ b/locale/sl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index 3419866..63aedae 100644
--- a/locale/zh_CN.po
+++ b/locale/zh_CN.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
diff --git a/setup.py b/setup.py
index 3fad0a1..7e03b59 100644
--- a/setup.py
+++ b/setup.py
@@ -102,9 +102,9 @@ setup(name=name,
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.7',
-        'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Office/Business',
diff --git a/tests/scenario_sale_supply.rst b/tests/scenario_sale_supply.rst
index fbe36f1..f6f40fd 100644
--- a/tests/scenario_sale_supply.rst
+++ b/tests/scenario_sale_supply.rst
@@ -8,7 +8,7 @@ Imports::
     >>> from dateutil.relativedelta import relativedelta
     >>> from decimal import Decimal
     >>> from proteus import Model, Wizard
-    >>> from trytond.tests.tools import activate_modules
+    >>> from trytond.tests.tools import activate_modules, set_user
     >>> from trytond.modules.company.tests.tools import create_company, \
     ...     get_company
     >>> from trytond.modules.account.tests.tools import create_fiscalyear, \
@@ -88,8 +88,7 @@ Create product::
     >>> ProductUom = Model.get('product.uom')
     >>> unit, = ProductUom.find([('name', '=', 'Unit')])
     >>> ProductTemplate = Model.get('product.template')
-    >>> Product = Model.get('product.product')
-    >>> product = Product()
+
     >>> template = ProductTemplate()
     >>> template.name = 'product'
     >>> template.default_uom = unit
@@ -97,13 +96,11 @@ Create product::
     >>> template.purchasable = True
     >>> template.salable = True
     >>> template.list_price = Decimal('10')
-    >>> template.cost_price = Decimal('5')
     >>> template.account_expense = expense
     >>> template.account_revenue = revenue
     >>> template.supply_on_sale = True
     >>> template.save()
-    >>> product.template = template
-    >>> product.save()
+    >>> product, = template.products
 
 Create payment term::
 
@@ -112,7 +109,7 @@ Create payment term::
 
 Sale 250 products::
 
-    >>> config.user = sale_user.id
+    >>> set_user(sale_user)
     >>> Sale = Model.get('sale.sale')
     >>> sale = Sale()
     >>> sale.party = customer
@@ -135,7 +132,7 @@ Sale 250 products::
 
 Delete Purchase Request::
 
-    >>> config.user = purchase_user.id
+    >>> set_user(purchase_user)
     >>> PurchaseRequest = Model.get('purchase.request')
     >>> purchase_request, = PurchaseRequest.find()
     >>> purchase_request.quantity
@@ -147,7 +144,7 @@ Delete Purchase Request::
 
 Create Purchase from Request::
 
-    >>> config.user = purchase_user.id
+    >>> set_user(purchase_user)
     >>> Purchase = Model.get('purchase.purchase')
     >>> purchase_request, = PurchaseRequest.find()
     >>> purchase_request.quantity
@@ -163,7 +160,7 @@ Create Purchase from Request::
     >>> purchase.click('process')
     >>> purchase.state
     u'processing'
-    >>> config.user = sale_user.id
+    >>> set_user(sale_user)
     >>> sale.reload()
     >>> shipment, = sale.shipments
     >>> move, = shipment.outgoing_moves
@@ -175,7 +172,7 @@ Create Purchase from Request::
 
 Receive 100 products::
 
-    >>> config.user = stock_user.id
+    >>> set_user(stock_user)
     >>> ShipmentIn = Model.get('stock.shipment.in')
     >>> Move = Model.get('stock.move')
     >>> shipment = ShipmentIn(supplier=supplier)
@@ -186,7 +183,7 @@ Receive 100 products::
     >>> shipment.click('done')
     >>> shipment.state
     u'done'
-    >>> config.user = sale_user.id
+    >>> set_user(sale_user)
     >>> sale.reload()
     >>> shipment, = sale.shipments
     >>> move, = [x for x in shipment.inventory_moves
@@ -201,8 +198,8 @@ Receive 100 products::
 Switching from not supplying on sale to supplying on sale for product should
 not create a new purchase request::
 
-    >>> config.user = admin_user.id
-    >>> changing_product = Product()
+    >>> set_user(admin_user)
+
     >>> changing_template = ProductTemplate()
     >>> changing_template.name = 'product'
     >>> changing_template.default_uom = unit
@@ -210,15 +207,13 @@ not create a new purchase request::
     >>> changing_template.purchasable = True
     >>> changing_template.salable = True
     >>> changing_template.list_price = Decimal('10')
-    >>> changing_template.cost_price = Decimal('5')
     >>> changing_template.account_expense = expense
     >>> changing_template.account_revenue = revenue
     >>> changing_template.supply_on_sale = False
     >>> changing_template.save()
-    >>> changing_product.template = changing_template
-    >>> changing_product.save()
+    >>> changing_product, = changing_template.products
 
-    >>> config.user = sale_user.id
+    >>> set_user(sale_user)
     >>> Sale = Model.get('sale.sale')
     >>> sale = Sale()
     >>> sale.party = customer
@@ -232,7 +227,7 @@ not create a new purchase request::
     >>> sale.state
     u'processing'
     >>> shipment, = sale.shipments
-    >>> config.user = stock_user.id
+    >>> set_user(stock_user)
     >>> Inventory = Model.get('stock.inventory')
     >>> Location = Model.get('stock.location')
     >>> storage, = Location.find([
@@ -253,11 +248,11 @@ not create a new purchase request::
     True
     >>> shipment.click('pack')
 
-    >>> config.user = admin_user.id
+    >>> set_user(admin_user)
     >>> changing_template.supply_on_sale = True
     >>> changing_template.save()
 
-    >>> config.user = stock_user.id
+    >>> set_user(stock_user)
     >>> shipment.click('done')
     >>> len(PurchaseRequest.find([('product', '=', changing_product.id)]))
     0
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..527d859
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = {py27,py34,py35,py36}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
+
+[testenv]
+commands = {envpython} setup.py test
+deps =
+    {py27,py34,py35,py36}-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 180c8b7..4480647 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.4.1
+version=4.6.0
 depends:
     ir
     purchase
diff --git a/trytond_sale_supply.egg-info/PKG-INFO b/trytond_sale_supply.egg-info/PKG-INFO
index 35bdb4d..43b0880 100644
--- a/trytond_sale_supply.egg-info/PKG-INFO
+++ b/trytond_sale_supply.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-sale-supply
-Version: 4.4.1
+Version: 4.6.0
 Summary: Tryton module for sale supply
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
 Description: sale_supply
         ===========
         
@@ -69,9 +69,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/trytond_sale_supply.egg-info/SOURCES.txt b/trytond_sale_supply.egg-info/SOURCES.txt
index 1d371e1..7674271 100644
--- a/trytond_sale_supply.egg-info/SOURCES.txt
+++ b/trytond_sale_supply.egg-info/SOURCES.txt
@@ -1,12 +1,20 @@
+.drone.yml
+.hgtags
 CHANGELOG
 COPYRIGHT
 INSTALL
 LICENSE
 MANIFEST.in
 README
+__init__.py
+product.py
 product.xml
+purchase.py
+sale.py
 sale.xml
 setup.py
+stock.py
+tox.ini
 tryton.cfg
 ./__init__.py
 ./product.py
@@ -58,7 +66,9 @@ locale/pt_BR.po
 locale/ru.po
 locale/sl.po
 locale/zh_CN.po
+tests/__init__.py
 tests/scenario_sale_supply.rst
+tests/test_sale_supply.py
 trytond_sale_supply.egg-info/PKG-INFO
 trytond_sale_supply.egg-info/SOURCES.txt
 trytond_sale_supply.egg-info/dependency_links.txt
diff --git a/trytond_sale_supply.egg-info/requires.txt b/trytond_sale_supply.egg-info/requires.txt
index 705711f..9352333 100644
--- a/trytond_sale_supply.egg-info/requires.txt
+++ b/trytond_sale_supply.egg-info/requires.txt
@@ -1,5 +1,5 @@
-trytond_purchase >= 4.4, < 4.5
-trytond_purchase_request >= 4.4, < 4.5
-trytond_sale >= 4.4, < 4.5
-trytond_stock >= 4.4, < 4.5
-trytond >= 4.4, < 4.5
+trytond_purchase >= 4.6, < 4.7
+trytond_purchase_request >= 4.6, < 4.7
+trytond_sale >= 4.6, < 4.7
+trytond_stock >= 4.6, < 4.7
+trytond >= 4.6, < 4.7
-- 
tryton-modules-sale-supply



More information about the tryton-debian-vcs mailing list