I am running nightly build for 2013-08-09, on Gentoo linux.
When I "Run Scheduler", I get an exception, below.
Traceback (most recent call last): File "/opt/openerp/current/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> File "/opt/openerp/current/server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], *args, **kwargs) File "/opt/openerp/current/addons/purchase/purchase.py", line 1067, in action_po_assign res = self.make_po(cr, uid, ids, context=context) File "/opt/openerp/current/addons/purchase_requisition/purchase_requisition.py", line 261, in make_po res = super(procurement_order, self).make_po(cr, uid, ids, context=context) File "/opt/openerp/current/addons/purchase/purchase.py", line 1169, in make_po name = seq_obj.get(cr, uid, 'purchase.order') or _('PO: %s') % procurement.name File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 262, in get return self.get_id(cr, uid, code, 'code', context) File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 254, in get_id return self.next_by_code(cr, uid, sequence_code_or_id, context) File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 237, in next_by_code company_ids = self.pool.get('res.company').search(cr, uid, [], order='company_id', context=context) + [False] File "/opt/openerp/current/server/openerp/osv/orm.py", line 2354, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/opt/openerp/current/addons/base/res/res_company.py", line 197, in _search context=context, count=count, access_rights_uid=access_rights_uid) File "/opt/openerp/current/server/openerp/osv/orm.py", line 4847, in _search order_by = self._generate_order_by(order, query) File "/opt/openerp/current/server/openerp/osv/orm.py", line 4815, in _generate_order_by raise ValueError( _("Sorting field %s not found on model %s") %( order_field, self._name)) ValueError: Sorting field company_id not found on model res.company Exception in thread Thread-48: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 761, in run self.__target(*self.__args, **self.__kwargs) File "/opt/openerp/current/addons/procurement/wizard/schedulers_all.py", line 52, in _procure_calculation_all context=context) File "/opt/openerp/current/addons/procurement/schedulers.py", line 43, in run_scheduler use_new_cursor=use_new_cursor, context=context) File "/opt/openerp/current/addons/procurement/schedulers.py", line 273, in _procure_orderpoint_confirm 'button_check', cr) File "/opt/openerp/current/server/openerp/workflow/wkf_service.py", line 119, in trg_validate res2 = instance.validate(cr, id, ident, signal) File "/opt/openerp/current/server/openerp/workflow/instance.py", line 43, in validate workitem.process(cr, witem, ident, signal, force_running, stack=stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 52, in process result = _execute(cr, workitem, activity, ident, stack) File "/opt/openerp/current/server/openerp/workflow/workitem.py", line 127, in _execute id_new = wkf_expr.execute(cr, ident, workitem, activity) File "/opt/openerp/current/server/openerp/workflow/wkf_expr.py", line 67, in execute return _eval_expr(cr, ident, workitem, activity['action']) File "/opt/openerp/current/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr ret = eval(line, env, nocopy=True) File "/opt/openerp/current/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> File "/opt/openerp/current/server/openerp/osv/orm.py", line 374, in function_proxy return attr(self._cr, self._uid, [self._id], *args, **kwargs) File "/opt/openerp/current/addons/purchase/purchase.py", line 1067, in action_po_assign res = self.make_po(cr, uid, ids, context=context) File "/opt/openerp/current/addons/purchase_requisition/purchase_requisition.py", line 261, in make_po res = super(procurement_order, self).make_po(cr, uid, ids, context=context) File "/opt/openerp/current/addons/purchase/purchase.py", line 1169, in make_po name = seq_obj.get(cr, uid, 'purchase.order') or _('PO: %s') % procurement.name File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 262, in get return self.get_id(cr, uid, code, 'code', context) File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 254, in get_id return self.next_by_code(cr, uid, sequence_code_or_id, context) File "/opt/openerp/current/addons/base/ir/ir_sequence.py", line 237, in next_by_code company_ids = self.pool.get('res.company').search(cr, uid, [], order='company_id', context=context) + [False] File "/opt/openerp/current/server/openerp/osv/orm.py", line 2354, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/opt/openerp/current/addons/base/res/res_company.py", line 197, in _search context=context, count=count, access_rights_uid=access_rights_uid) File "/opt/openerp/current/server/openerp/osv/orm.py", line 4847, in _search order_by = self._generate_order_by(order, query) File "/opt/openerp/current/server/openerp/osv/orm.py", line 4815, in _generate_order_by raise ValueError( _("Sorting field %s not found on model %s") %( order_field, self._name)) ValueError: Sorting field company_id not found on model res.company