Simplify workflow engine

review256001
This commit is contained in:
Cédric Krier
2012-03-25 00:17:28 +01:00
parent 0477832010
commit 8f33cfda64
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,10 +2,10 @@
#this repository contains the full copyright notices and license terms.
import datetime
import copy
from trytond.model import ModelWorkflow, ModelView, ModelSQL, fields
from trytond.model import Model, fields
class Invoice(ModelWorkflow, ModelSQL, ModelView):
class Invoice(Model):
_name = 'account.invoice'
open_date = fields.DateTime('Open Date')
+1 -1
View File
@@ -12,7 +12,7 @@ minor_version = int(minor_version)
requires = []
for dep in info.get('depends', []):
if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep):
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))