File "/opt/openerp/openerp-7.0-20130314-002547/openerp/addons/base/ir/ir_sequence.py", line 220, in next_by_id
company_ids = self.pool.get('res.company').search(cr, uid, [], order='company_id', context=context) + [False]
File "/opt/openerp/server/openerp/osv/orm.py", line 2358, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/opt/openerp/openerp-7.0-20130314-002547/openerp/addons/base/res/res_company.py", line 197, in _search
context=context, count=count, access_rights_uid=access_rights_uid)
File "/opt/openerp/server/openerp/osv/orm.py", line 4859, in _search
order_by = self._generate_order_by(order, query)
File "/opt/openerp/server/openerp/osv/orm.py", line 4827, 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