ValidateError', 'The value "error" for the field "state" is
2 posts • Page 1 of 1
ValidateError', 'The value "error" for the field "state" isI keep getting the following error when I try click Process to process an agreement:
Exception in thread Thread-71: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", line 486, in __bootstrap_inner self.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", line 663, in run self.function(*self.args, **self.kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/openerp-server/addons/base/ir/ir_cron.py", line 97, in _poolJobs self._callback(cr, job['user_id'], job['model'], job['function'], job['args']) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/openerp-server/addons/base/ir/ir_cron.py", line 73, in _callback f(cr, uid, *args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/openerp-server/addons/account_invoicing/invoicing.py", line 479, in _run_filters agr.write(cr, uid, [agr_id], {'state':'error'}) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/openerp-server/addons/account_invoicing/invoicing.py", line 1878, in write return super(agreement, self).write(cr, uid, ids, vals, context=context) File "/opt/local/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2435, in write % (vals[field], field)) except_orm: ('ValidateError', 'The value "error" for the field "state" is not in the selection')
Re: ValidateError', 'The value "error" for the field "state" isI am not sure why
If I comment out line 477 I no longer get the error. Reveiwing the request send to me below, I see that the code in the calc_loclaspace is giving the exception error but it is not clear to me why considering it is the same as previous versions that worked: Subject: Error in executed code Request: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/openerp-server/addons/account_invoicing/invoicing.py", line 348, in _run_filters exec c.code in calc_localspace File "<string>", line 1 obj = self.pool.get('inv.agreement') ^ SyntaxError: invalid syntax
2 posts • Page 1 of 1
|
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED