On 05/09/12 16:50 +0200, Raimon Esteve wrote: > 2012/9/4 Cédric Krier <[email protected]>: > > I think the call to search_domain in Rule.domain_get [1] should be done > > with the context {'active_test': False} > > Do you propose add Transaction context value active_test = False? > > Transaction().set_context(active_test=False) > > This transaction, is not more better add in ir/cron.py line 138 where > call function to execute cron? > > with Transaction().set_user(cron.user.id): > getattr(model_obj, cron.function)(*args)
Indeed I don't like both options. I'm wondering if it should not be fixed by doing a "sudo" (Transaction().set_user) for the faulty code. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpszQVPVQ02t.pgp
Description: PGP signature
