Simplify workflow engine

review256001
This commit is contained in:
Cédric Krier committed 2012-03-25 00:18:15 +01:00
1 parent 7a5f9d5773
commit f43d61d66c
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
import copy
from trytond.model import ModelWorkflow, ModelView, ModelSQL, fields
from trytond.model import Model, fields
from trytond.pyson import Eval, Not, Equal, Or, Bool
from trytond.pool import Pool
class Sale(ModelWorkflow, ModelSQL, ModelView):
class Sale(Model):
_name = 'sale.sale'
price_list = fields.Many2One('product.price_list', 'Price List',
@@ -52,7 +52,7 @@ class Sale(ModelWorkflow, ModelSQL, ModelView):
Sale()
class SaleLine(ModelSQL, ModelView):
class SaleLine(Model):
_name = 'sale.line'
def __init__(self):
+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))