[tryton-debian-vcs] tryton-modules-production-work branch debian-stretch-4.2 updated. debian/4.2.0-1-7-g4a90fb6

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Dec 13 10:39:01 UTC 2017


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

commit 4a90fb6373b7ef87e71baf1ffcc3cc76000d1d4b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Dec 12 19:43:52 2017 +0100

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

diff --git a/debian/changelog b/debian/changelog
index 2f7b7d5..427309b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+tryton-modules-production-work (4.2.1-1) unstable; urgency=medium
+
+  * Add the actual upstream maintainer key to signing-key.asc.
+  * Setting the branch in the watch file to the fixed version 4.2.
+  * Use the preferred https URL format in the copyright file.
+  * Bump the Standards-Version to 4.0.1.
+  * Merging upstream version 4.2.1.
+  * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Tue, 12 Dec 2017 19:43:52 +0100
+
 tryton-modules-production-work (4.2.0-1) unstable; urgency=medium
 
   * Updating to Standards-Version: 3.9.8, no changes needed.
commit afcad5f76dac65707152e497035fbea53adef48d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Dec 12 19:43:51 2017 +0100

    Updating copyright file.

diff --git a/debian/copyright b/debian/copyright
index 5aff152..4cdf953 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,8 +1,8 @@
 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
-Copyright: 2015-2016 Cédric Krier
-           2015-2016 B2CK SPRL
+Copyright: 2015-2017 Cédric Krier
+           2015-2017 B2CK SPRL
            2013-2015 NaN·tic
 License: GPL-3+
 
commit 61feedceef48f0ad1d0c45b7eec581879bf2255f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Dec 12 19:43:51 2017 +0100

    Merging upstream version 4.2.1.

diff --git a/CHANGELOG b/CHANGELOG
index 122bd23..648ef3a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.1 - 2017-12-04
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.0 - 2016-11-28
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 1a139f7..1241054 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2015-2016 Cédric Krier.
-Copyright (C) 2015-2016 B2CK SPRL.
+Copyright (C) 2015-2017 Cédric Krier.
+Copyright (C) 2015-2017 B2CK SPRL.
 Copyright (C) 2013-2015 NaN·tic.
 
 This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index 76165ea..f8659f7 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_production_work
-Version: 4.2.0
+Version: 4.2.1
 Summary: Tryton module for production work
 Home-page: http://www.tryton.org/
 Author: Tryton
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/tryton.cfg b/tryton.cfg
index 473be24..fb5ba5b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.2.0
+version=4.2.1
 depends:
     company
     ir
diff --git a/trytond_production_work.egg-info/PKG-INFO b/trytond_production_work.egg-info/PKG-INFO
index dfe7087..9c22b42 100644
--- a/trytond_production_work.egg-info/PKG-INFO
+++ b/trytond_production_work.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-production-work
-Version: 4.2.0
+Version: 4.2.1
 Summary: Tryton module for production work
 Home-page: http://www.tryton.org/
 Author: Tryton
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