[tryton-debian-vcs] tryton-modules-production-work branch upstream-4.0 updated. upstream/4.0.2-1-g4ac3df5
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Dec 13 10:39:02 UTC 2017
The following commit has been merged in the upstream-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-production-work.git;a=commitdiff;h=upstream/4.0.2-1-g4ac3df5
commit 4ac3df5fd60f03cf41f2f96db97ea3d8a89de671
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Dec 12 19:42:12 2017 +0100
Adding upstream version 4.0.3.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index a67fdb8..a80cad6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.3 - 2017-12-04
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.2 - 2017-01-03
* 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 5feb998..3b5d18a 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_production_work
-Version: 4.0.2
+Version: 4.0.3
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 e04d8af..f1e3299 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.2
+version=4.0.3
depends:
company
ir
diff --git a/trytond_production_work.egg-info/PKG-INFO b/trytond_production_work.egg-info/PKG-INFO
index 1c4ceda..b4be9e9 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.0.2
+Version: 4.0.3
Summary: Tryton module for production work
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/work.py b/work.py
index ed6fc25..139bbea 100644
--- a/work.py
+++ b/work.py
@@ -234,9 +234,15 @@ class Work(ModelSQL, ModelView):
return self.operation.rec_name
@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