review code

This commit is contained in:
resteve 2014-09-29 10:13:22 +02:00
parent a288616b99
commit b8b3cd07fd
1 changed files with 5 additions and 9 deletions

View File

@ -7,10 +7,7 @@ from trytond.pyson import Eval, PYSONEncoder
from trytond.wizard import Wizard, StateView, StateAction, StateTransition, \
Button
__all__ = [
'ProductOneClickView',
'ProductOneClick',
]
__all__ = ['ProductOneClickView', 'ProductOneClick']
class ProductOneClickView(ModelView):
@ -150,11 +147,10 @@ class ProductOneClick(Wizard):
return values
def transition_create_(self, values=False):
'''
Create a product
'''
Template = Pool().get('product.template')
Product = Pool().get('product.product')
'''Create a product'''
pool = Pool()
Template = pool.get('product.template')
Product = pool.get('product.product')
name = self.view.name
code = self.view.code