El 13/02/17 a les 11:44, Manuel Bailen ha escrit:
Perdón, aquí está.
Traceback (most recent call last):
File "trytond/bin/trytond-admin", line 21, in <module>
admin.run(options)
File "/home/manuel/.tryton/t401/trytond/trytond/admin.py", line 48, in run
Pool(db_name).init(update=options.update, lang=lang)
File "/home/manuel/.tryton/t401/trytond/trytond/pool.py", line 144, in
init
self.start()
File "/home/manuel/.tryton/t401/trytond/trytond/pool.py", line 97, in
start
register_classes()
File "/home/manuel/.tryton/t401/trytond/trytond/modules/__init__.py",
line 362, in register_classes
mod_file, pathname, description)
File
"/home/manuel/.tryton/t401/trytond/trytond/modules/default_value/__init__.py",
line 5, in <module>
from .default_value import *
File
"/home/manuel/.tryton/t401/trytond/trytond/modules/default_value/default_value.py",
line 165
@classmethod
^
IndentationError: unexpected unindent
Esto tiene pinta que no has modificado correctamente el fichero. Te
explico con mas detalle. Debes reemplazar este trozo de código:
@classmethod
def load_default_values(cls, db_name, user):
sleep(5)
with Transaction().start(db_name, user):
try:
cls.set_default_values()
except:
logger.warning(
'Error loading default values. Try reload them
again by '
'restarting the server')
Y dejarlo cómo:
@classmethod
def load_default_values(cls, db_name, user):
sleep(5)
with Transaction().start(db_name, user):
cls.set_default_values()
Una vez hecho el cambio, deberías volver a ejecutarlo y poner la
excepción, que tiene que ser una de distinta.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk