Simplify workflow engine
review256001
This commit is contained in:
+2
-2
@@ -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')
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user