openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #04382
Re: mrp scheduler traceback when run from ir.cron (Re: New WMS. Call for testers.)
On 14/01/2014 09:48, Alexandre Fayolle wrote:
> I've seen the following stack trace in the application logs of my test
> instance
>
> 2014-01-14 08:46:42,629 10096 ERROR test_trunk
> openerp.addons.base.ir.ir_cron: Call of
> self.pool.get('procurement.order').run_scheduler(cr, uid, *(False,
> True)) failed in Job 6
> Traceback (most recent call last):
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/addons/base/ir/ir_cron.py",
> line 138, in _callback
> getattr(model, method_name)(cr, uid, *args)
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/addons/stock/procurement.py",
> line 268, in run_scheduler
> super(procurement_order, self).run_scheduler(cr, uid,
> use_new_cursor=use_new_cursor, context=context)
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/addons/procurement/procurement.py",
> line 284, in run_scheduler
> company = self.pool.get('res.users').browse(cr, uid, uid,
> context=context).company_id
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line
> 497, in __getattr__
> return self[name]
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line
> 405, in __getitem__
> field_values = self._table.read(self._cr, self._uid, ids,
> field_names, context=self._context, load="_classic_write")
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/addons/base/res/res_users.py",
> line 828, in read
> res = super(users_view, self).read(cr, uid, ids, fields,
> context=context, load=load)
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/addons/base/res/res_users.py",
> line 272, in read
> result = super(res_users, self).read(cr, uid, ids, fields=fields,
> context=context, load=load)
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line
> 3670, in read
> result = self._read_flat(cr, user, select, fields, context, load)
> File
> "/home/afayolle/work/oerp/testbox-trunk/parts/server/openerp/osv/orm.py", line
> 3726, in _read_flat
> if context.get('lang'):
> AttributeError: 'bool' object has no attribute 'get'
>
>
I reproduce this on a fresh db with demo data.
--
Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 94
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com
References