[tryton-debian-vcs] tryton-modules-production-work branch upstream updated. upstream/4.4.0-1-g8c5208a

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


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-production-work.git;a=commitdiff;h=upstream/4.4.0-1-g8c5208a

commit 8c5208aeb1465c95d328a108a5074d94a2974984
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Nov 6 14:41:05 2017 +0100

    Adding upstream version 4.6.0.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

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 b6c7bb6..20ec868 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.6.0 - 2017-10-30
+* Bug fixes (see mercurial logs for details)
+
 Version 4.4.0 - 2017-05-01
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 03881ed..cc6c1f7 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_production_work
-Version: 4.4.0
+Version: 4.6.0
 Summary: Tryton module for production work
 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: trytond_production_work
         =======================
         
@@ -70,9 +70,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 d58b191..d01160a 100644
--- a/locale/bg.po
+++ b/locale/bg.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -68,10 +68,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr "Управление на производство"
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Условие за плащане"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -161,10 +160,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "Родител"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Условие за плащане"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center,warehouse:"
@@ -201,10 +199,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Условие за плащане"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Условие за плащане"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -241,10 +238,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "ID"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Условие за плащане"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/ca.po b/locale/ca.po
index 94cfadb..35eb50c 100644
--- a/locale/ca.po
+++ b/locale/ca.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -69,8 +69,8 @@ msgid "Production"
 msgstr "Producció"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -145,8 +145,8 @@ msgid "Parent"
 msgstr "Pare"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -177,8 +177,8 @@ msgid "Name"
 msgstr "Nom"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -209,8 +209,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/cs.po b/locale/cs.po
index f0eb495..5696d95 100644
--- a/locale/cs.po
+++ b/locale/cs.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -62,10 +62,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -140,10 +139,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -174,10 +172,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Namu"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -207,10 +204,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/de.po b/locale/de.po
index 4edba11..9d80502 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -69,8 +69,8 @@ msgid "Production"
 msgstr "Produktion"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -145,8 +145,8 @@ msgid "Parent"
 msgstr "Übergeordnet (Arbeitsplatz)"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -177,8 +177,8 @@ msgid "Name"
 msgstr "Name"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -209,8 +209,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/es.po b/locale/es.po
index d284f97..f737199 100644
--- a/locale/es.po
+++ b/locale/es.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -71,8 +71,8 @@ msgid "Production"
 msgstr "Producción"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -147,8 +147,8 @@ msgid "Parent"
 msgstr "Padre"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -179,8 +179,8 @@ msgid "Name"
 msgstr "Nombre"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -211,8 +211,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/es_419.po b/locale/es_419.po
index aee7a6c..dd438a1 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"
 
@@ -63,7 +63,7 @@ msgid "Production"
 msgstr ""
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work,sequence:"
@@ -139,7 +139,7 @@ msgid "Parent"
 msgstr ""
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
@@ -171,7 +171,7 @@ msgid "Name"
 msgstr ""
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
@@ -203,7 +203,7 @@ msgid "ID"
 msgstr ""
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/fr.po b/locale/fr.po
index 94cf71f..3ba1c10 100644
--- a/locale/fr.po
+++ b/locale/fr.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -70,8 +70,8 @@ msgid "Production"
 msgstr "Production"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -146,8 +146,8 @@ msgid "Parent"
 msgstr "Parent"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -178,8 +178,8 @@ msgid "Name"
 msgstr "Nom"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -210,8 +210,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index 35c9f3d..450a68a 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"
 
@@ -68,10 +68,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr "Termelés"
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -161,10 +160,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "Szülő (csomag)"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center,warehouse:"
@@ -201,10 +199,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Név"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -241,10 +238,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "ID"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/it_IT.po b/locale/it_IT.po
index 5210d47..faf8cff 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"
 
@@ -67,10 +67,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -157,10 +156,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "Parte"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -196,10 +194,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Nome"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -234,10 +231,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "Movimento contabile"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/ja_JP.po b/locale/ja_JP.po
index a439989..476fdce 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"
 
@@ -66,7 +66,7 @@ msgid "Production"
 msgstr ""
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work,sequence:"
@@ -144,7 +144,7 @@ msgid "Parent"
 msgstr ""
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
@@ -176,7 +176,7 @@ msgid "Name"
 msgstr ""
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
@@ -208,7 +208,7 @@ msgid "ID"
 msgstr ""
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/lo.po b/locale/lo.po
index b5fa42d..a91164f 100644
--- a/locale/lo.po
+++ b/locale/lo.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -69,10 +69,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr "ຜະລິດຕະພັນ"
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -161,10 +160,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "ຮ່ວງ"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -200,10 +198,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "ຊື່"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -239,10 +236,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "ເລດລຳດັບ"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/lt.po b/locale/lt.po
index f0eb495..5696d95 100644
--- a/locale/lt.po
+++ b/locale/lt.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -62,10 +62,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -140,10 +139,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -174,10 +172,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Namu"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -207,10 +204,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/nl.po b/locale/nl.po
index 6a2ab3f..865ca81 100644
--- a/locale/nl.po
+++ b/locale/nl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -67,10 +67,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -160,10 +159,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "Bovenliggend niveau"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center,warehouse:"
@@ -200,10 +198,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Naam bijlage"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -238,10 +235,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "ID"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/pl.po b/locale/pl.po
index a439989..da3265f 100644
--- a/locale/pl.po
+++ b/locale/pl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -39,47 +39,47 @@ msgstr "Work Center Categories"
 
 msgctxt "field:production.work,company:"
 msgid "Company"
-msgstr ""
+msgstr "Firma"
 
 msgctxt "field:production.work,create_date:"
 msgid "Create Date"
-msgstr ""
+msgstr "Data utworzenia"
 
 msgctxt "field:production.work,create_uid:"
 msgid "Create User"
-msgstr ""
+msgstr "Utworzył"
 
 msgctxt "field:production.work,cycles:"
 msgid "Cycles"
-msgstr ""
+msgstr "Cykle"
 
 msgctxt "field:production.work,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 msgctxt "field:production.work,operation:"
 msgid "Operation"
-msgstr ""
+msgstr "Operacja"
 
 msgctxt "field:production.work,production:"
 msgid "Production"
-msgstr ""
+msgstr "Produkcja"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr ""
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
-msgstr ""
+msgstr "Sekwencja"
 
 msgctxt "field:production.work,state:"
 msgid "State"
-msgstr ""
+msgstr "Stan"
 
 msgctxt "field:production.work,warehouse:"
 msgid "Warehouse"
-msgstr ""
+msgstr "Magazyn"
 
 #, fuzzy
 msgctxt "field:production.work,work_center:"
@@ -93,11 +93,11 @@ msgstr "Work Center Categories"
 
 msgctxt "field:production.work,write_date:"
 msgid "Write Date"
-msgstr ""
+msgstr "Data zapisu"
 
 msgctxt "field:production.work,write_uid:"
 msgid "Write User"
-msgstr ""
+msgstr "Zapisał"
 
 msgctxt "field:production.work.center,active:"
 msgid "Active"
@@ -105,7 +105,7 @@ msgstr ""
 
 msgctxt "field:production.work.center,category:"
 msgid "Category"
-msgstr ""
+msgstr "Kategoria"
 
 msgctxt "field:production.work.center,children:"
 msgid "Children"
@@ -113,7 +113,7 @@ msgstr ""
 
 msgctxt "field:production.work.center,company:"
 msgid "Company"
-msgstr ""
+msgstr "Firma"
 
 msgctxt "field:production.work.center,cost_method:"
 msgid "Cost Method"
@@ -121,99 +121,99 @@ msgstr ""
 
 msgctxt "field:production.work.center,cost_price:"
 msgid "Cost Price"
-msgstr ""
+msgstr "Cena kosztu"
 
 msgctxt "field:production.work.center,create_date:"
 msgid "Create Date"
-msgstr ""
+msgstr "Data utworzenia"
 
 msgctxt "field:production.work.center,create_uid:"
 msgid "Create User"
-msgstr ""
+msgstr "Utworzył"
 
 msgctxt "field:production.work.center,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 msgctxt "field:production.work.center,name:"
 msgid "Name"
-msgstr ""
+msgstr "Nazwa"
 
 msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr ""
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr ""
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
-msgstr ""
+msgstr "Magazyn"
 
 msgctxt "field:production.work.center,write_date:"
 msgid "Write Date"
-msgstr ""
+msgstr "Data zapisu"
 
 msgctxt "field:production.work.center,write_uid:"
 msgid "Write User"
-msgstr ""
+msgstr "Zapisał"
 
 msgctxt "field:production.work.center.category,create_date:"
 msgid "Create Date"
-msgstr ""
+msgstr "Data utworzenia"
 
 msgctxt "field:production.work.center.category,create_uid:"
 msgid "Create User"
-msgstr ""
+msgstr "Utworzył"
 
 msgctxt "field:production.work.center.category,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 msgctxt "field:production.work.center.category,name:"
 msgid "Name"
-msgstr ""
+msgstr "Nazwa"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr ""
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
-msgstr ""
+msgstr "Data zapisu"
 
 msgctxt "field:production.work.center.category,write_uid:"
 msgid "Write User"
-msgstr ""
+msgstr "Zapisał"
 
 msgctxt "field:production.work.cycle,cost:"
 msgid "Cost"
-msgstr ""
+msgstr "Koszt"
 
 msgctxt "field:production.work.cycle,create_date:"
 msgid "Create Date"
-msgstr ""
+msgstr "Data utworzenia"
 
 msgctxt "field:production.work.cycle,create_uid:"
 msgid "Create User"
-msgstr ""
+msgstr "Utworzył"
 
 msgctxt "field:production.work.cycle,duration:"
 msgid "Duration"
-msgstr ""
+msgstr "Czas trwania"
 
 msgctxt "field:production.work.cycle,id:"
 msgid "ID"
-msgstr ""
+msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr ""
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
-msgstr ""
+msgstr "Stan"
 
 #, fuzzy
 msgctxt "field:production.work.cycle,work:"
@@ -222,63 +222,63 @@ msgstr "Works"
 
 msgctxt "field:production.work.cycle,write_date:"
 msgid "Write Date"
-msgstr ""
+msgstr "Data zapisu"
 
 msgctxt "field:production.work.cycle,write_uid:"
 msgid "Write User"
-msgstr ""
+msgstr "Zapisał"
 
 msgctxt "model:ir.action,name:act_work_center_category_list"
 msgid "Work Center Categories"
-msgstr "Work Center Categories"
+msgstr ""
 
 msgctxt "model:ir.action,name:act_work_center_list"
 msgid "Work Centers"
-msgstr "Work Centers"
+msgstr ""
 
 msgctxt "model:ir.action,name:act_work_center_tree"
 msgid "Work Centers"
-msgstr "Work Centers"
+msgstr ""
 
 msgctxt "model:ir.action,name:act_work_list"
 msgid "Works"
-msgstr "Works"
+msgstr ""
 
 msgctxt "model:ir.action.act_window.domain,name:act_work_list_domain_all"
 msgid "All"
-msgstr "All"
+msgstr "Wszystkie"
 
 msgctxt "model:ir.action.act_window.domain,name:act_work_list_domain_draft"
 msgid "Draft"
-msgstr "Draft"
+msgstr ""
 
 msgctxt "model:ir.action.act_window.domain,name:act_work_list_domain_request"
 msgid "Request"
-msgstr "Request"
+msgstr ""
 
 msgctxt "model:ir.action.act_window.domain,name:act_work_list_domain_running"
 msgid "Running"
-msgstr "Running"
+msgstr "Uruchomione"
 
 msgctxt "model:ir.action.act_window.domain,name:act_work_list_domain_waiting"
 msgid "Waiting"
-msgstr "Waiting"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_work_center_category_list"
 msgid "Work Center Categories"
-msgstr "Work Center Categories"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_work_center_list"
 msgid "Work Centers"
-msgstr "Work Centers"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_work_center_tree"
 msgid "Work Centers"
-msgstr "Work Centers"
+msgstr ""
 
 msgctxt "model:ir.ui.menu,name:menu_work_list"
 msgid "Works"
-msgstr "Works"
+msgstr ""
 
 msgctxt "model:production.work,name:"
 msgid "Production Work"
@@ -300,7 +300,7 @@ msgstr ""
 
 msgctxt "selection:production.work,state:"
 msgid "Done"
-msgstr ""
+msgstr "Wykonano"
 
 #, fuzzy
 msgctxt "selection:production.work,state:"
@@ -316,10 +316,9 @@ msgctxt "selection:production.work,state:"
 msgid "Request"
 msgstr "Request"
 
-#, fuzzy
 msgctxt "selection:production.work,state:"
 msgid "Running"
-msgstr "Running"
+msgstr "Uruchomione"
 
 #, fuzzy
 msgctxt "selection:production.work,state:"
@@ -340,30 +339,29 @@ msgstr ""
 
 msgctxt "selection:production.work.cycle,state:"
 msgid "Cancelled"
-msgstr ""
+msgstr "Anulowano"
 
 msgctxt "selection:production.work.cycle,state:"
 msgid "Done"
-msgstr ""
+msgstr "Wykonano"
 
 #, fuzzy
 msgctxt "selection:production.work.cycle,state:"
 msgid "Draft"
 msgstr "Draft"
 
-#, fuzzy
 msgctxt "selection:production.work.cycle,state:"
 msgid "Running"
-msgstr "Running"
+msgstr "Uruchomione"
 
 msgctxt "view:production.work.cycle:"
 msgid "Cancel"
-msgstr ""
+msgstr "Anuluj"
 
 msgctxt "view:production.work.cycle:"
 msgid "Do"
-msgstr ""
+msgstr "Wykonaj"
 
 msgctxt "view:production.work.cycle:"
 msgid "Run"
-msgstr ""
+msgstr "Uruchom"
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index f5160c6..ee35331 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"
 
@@ -69,8 +69,8 @@ msgid "Production"
 msgstr "Produção"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -145,8 +145,8 @@ msgid "Parent"
 msgstr "Pai"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -177,8 +177,8 @@ msgid "Name"
 msgstr "Nome"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -209,8 +209,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/ru.po b/locale/ru.po
index 02b1e84..6bf5d29 100644
--- a/locale/ru.po
+++ b/locale/ru.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -68,10 +68,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr "Производство"
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Правило оплаты"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -161,10 +160,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "Предок"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Правило оплаты"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center,warehouse:"
@@ -201,10 +199,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "Правило оплаты"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Правило оплаты"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -241,10 +238,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "ID"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Правило оплаты"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
diff --git a/locale/sl.po b/locale/sl.po
index a94d11b..f75200c 100644
--- a/locale/sl.po
+++ b/locale/sl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -69,8 +69,8 @@ msgid "Production"
 msgstr "Proizvodnja"
 
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work,sequence:"
 msgid "Sequence"
@@ -145,8 +145,8 @@ msgid "Parent"
 msgstr "Nadcenter"
 
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -177,8 +177,8 @@ msgid "Name"
 msgstr "Naziv"
 
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center.category,write_date:"
 msgid "Write Date"
@@ -209,8 +209,8 @@ msgid "ID"
 msgstr "ID"
 
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.cycle,state:"
 msgid "State"
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index 30178ef..fa9145d 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"
 
@@ -65,10 +65,9 @@ msgctxt "field:production.work,production:"
 msgid "Production"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:production.work,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work,sequence:"
@@ -153,10 +152,9 @@ msgctxt "field:production.work.center,parent:"
 msgid "Parent"
 msgstr "上级"
 
-#, fuzzy
 msgctxt "field:production.work.center,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:production.work.center,warehouse:"
 msgid "Warehouse"
@@ -192,10 +190,9 @@ msgctxt "field:production.work.center.category,name:"
 msgid "Name"
 msgstr "纳木"
 
-#, fuzzy
 msgctxt "field:production.work.center.category,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.center.category,write_date:"
@@ -230,10 +227,9 @@ msgctxt "field:production.work.cycle,id:"
 msgid "ID"
 msgstr "编号"
 
-#, fuzzy
 msgctxt "field:production.work.cycle,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:production.work.cycle,state:"
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/setup.py b/setup.py
index bf6a5a2..54c812e 100644
--- a/setup.py
+++ b/setup.py
@@ -103,9 +103,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_production_work.rst b/tests/scenario_production_work.rst
index 9bcd329..9082bf0 100644
--- a/tests/scenario_production_work.rst
+++ b/tests/scenario_production_work.rst
@@ -28,41 +28,39 @@ Create product::
     >>> 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
     >>> template.type = 'goods'
     >>> template.producible = True
     >>> template.list_price = Decimal(30)
-    >>> template.cost_price = Decimal(20)
+    >>> product, = template.products
+    >>> product.cost_price = Decimal(20)
     >>> template.save()
-    >>> product.template = template
-    >>> product.save()
+    >>> product, = template.products
 
 Create Components::
 
-    >>> component1 = Product()
     >>> template1 = ProductTemplate()
     >>> template1.name = 'component 1'
     >>> template1.default_uom = unit
     >>> template1.type = 'goods'
     >>> template1.list_price = Decimal(5)
-    >>> template1.cost_price = Decimal(1)
+    >>> component1, = template1.products
+    >>> component1.cost_price = Decimal(1)
     >>> template1.save()
-    >>> component1.template = template1
-    >>> component1.save()
+    >>> component1, = template1.products
 
-    >>> component2 = Product()
     >>> template2 = ProductTemplate()
     >>> template2.name = 'component 2'
     >>> template2.default_uom = unit
     >>> template2.type = 'goods'
     >>> template2.list_price = Decimal(5)
-    >>> template2.cost_price = Decimal(1)
+    >>> component2, = template2.products
+    >>> component2.cost_price = Decimal(1)
     >>> template2.save()
-    >>> component2.template = template2
-    >>> component2.save()
+    >>> component2, = template2.products
 
 Create work centers::
 
@@ -228,6 +226,21 @@ Run works::
     >>> work2.state
     u'finished'
 
+Add an extra work::
+
+    >>> work2b = production.works.new()
+    >>> work2b.operation = operation2
+    >>> work2b.work_center = center2
+    >>> production.save()
+    >>> work2b = production.works[-1]
+
+    >>> work2b.state
+    u'draft'
+
+And delete the extra work::
+
+    >>> work2b.delete()
+
 Check production cost::
 
     >>> production.reload()
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 2fad691..c09a3ac 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.4.0
+version=4.6.0
 depends:
     company
     ir
diff --git a/trytond_production_work.egg-info/PKG-INFO b/trytond_production_work.egg-info/PKG-INFO
index 43fac1a..db3c8f0 100644
--- a/trytond_production_work.egg-info/PKG-INFO
+++ b/trytond_production_work.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-production-work
-Version: 4.4.0
+Version: 4.6.0
 Summary: Tryton module for production work
 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: trytond_production_work
         =======================
         
@@ -70,9 +70,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_production_work.egg-info/SOURCES.txt b/trytond_production_work.egg-info/SOURCES.txt
index 9b35ede..2d81b8c 100644
--- a/trytond_production_work.egg-info/SOURCES.txt
+++ b/trytond_production_work.egg-info/SOURCES.txt
@@ -1,13 +1,20 @@
+.drone.yml
+.hgtags
 CHANGELOG
 COPYRIGHT
 INSTALL
 LICENSE
 MANIFEST.in
 README
+__init__.py
+production.py
 production.xml
+routing.py
 routing.xml
 setup.py
+tox.ini
 tryton.cfg
+work.py
 work.xml
 ./__init__.py
 ./production.py
@@ -71,7 +78,9 @@ locale/pt_BR.po
 locale/ru.po
 locale/sl.po
 locale/zh_CN.po
+tests/__init__.py
 tests/scenario_production_work.rst
+tests/test_production_work.py
 trytond_production_work.egg-info/PKG-INFO
 trytond_production_work.egg-info/SOURCES.txt
 trytond_production_work.egg-info/dependency_links.txt
diff --git a/trytond_production_work.egg-info/requires.txt b/trytond_production_work.egg-info/requires.txt
index 6c2fd2c..b0b8802 100644
--- a/trytond_production_work.egg-info/requires.txt
+++ b/trytond_production_work.egg-info/requires.txt
@@ -1,6 +1,6 @@
 python-sql >= 0.4
-trytond_company >= 4.4, < 4.5
-trytond_production >= 4.4, < 4.5
-trytond_production_routing >= 4.4, < 4.5
-trytond_stock >= 4.4, < 4.5
-trytond >= 4.4, < 4.5
+trytond_company >= 4.6, < 4.7
+trytond_production >= 4.6, < 4.7
+trytond_production_routing >= 4.6, < 4.7
+trytond_stock >= 4.6, < 4.7
+trytond >= 4.6, < 4.7
diff --git a/work.py b/work.py
index 9d502f7..debb595 100644
--- a/work.py
+++ b/work.py
@@ -236,9 +236,15 @@ class Work(sequence_ordered(), ModelSQL, ModelView):
             ]
 
     @classmethod
+    def create(cls, values):
+        works = super(Work, cls).create(values)
+        cls.set_state(works)
+        return works
+
+    @classmethod
     def delete(cls, works):
         for work in works:
-            if work.state != 'request':
+            if work.state not in {'request', 'draft'}:
                 cls.raise_user_error('delete_request', work.rec_name)
         super(Work, cls).delete(works)
 
-- 
tryton-modules-production-work



More information about the tryton-debian-vcs mailing list