* Betr.: " Re: [tryton-dev] Some issues when implementing triggers" (Mon, 24 May 2010 08:54:19 +0200):
> On 23/05/10 13:34 +0200, Mathias Behrle wrote:
> > * Betr.: " [tryton-dev] Some issues when implementing triggers" (Sat, 22 May
> > 2010 13:13:57 +0200):
> >
> > > * Wrong required field added to res.user:
> > >
> > > The module dashboard add a Selection field 'dashboard_layout' that is
> > > required. So this is wrong and I will fix the module but there is still a
> > > migration issue because the creation of a user before the load of this
> > > module will fail. So I propose to duplicate the migration script of this
> > > field from dashboard module into res module. This will ensure that the
> > > field will no more be required at the early stage.
> >
> > I don't think you will provide such migration in res (resp. server)
> > module(s) for other than B2CK modules. So for me this is not the right way,
> > but there should be 'Release Notes' for releases indicating the problem and
> > its resolution.
>
> If we don't migration doesn't work out-of-the-box.
You could use the Administrator as user for Run On Time Triggers, move the
migration into the respective modules, and add a separate user Cron Trigger
later when upgrading from 1.8 to 2.0. Since you considered anyway to extend the
modules to have those access permissions (like admin has) there would be no
problem from this point of view.
> But it is one of the target of Tryton (difference between OpenERP).
Yes (of course) for the target, but I dislike the constant comparison to
OpenERP. I am here to program good software, not to be just different from
OpenERP.
> > > * Access right to trigger cron user:
> > >
> > > I need to create a user to run the cron task that checks if on_time
> > > trigger must be run. I added it to the admin group but he will requires
> > > to be added on groups from others module to run on some restricted models.
> > > I see two possibilities:
> > >
> > > - modify each module to add this new user to each modules like we
> > > already do for admin user
> > > - let it by default with only the admin group and users that will
> > > create triggers should add it to the right groups
> >
> >
> > If the user for trigger cron is in the admin group, which are the restricted
> > models he won't be able to access?
>
> I don't know but admin group is a group like others.
See above.
--
Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg
Tel: +49(761)471023
Fax: +49(761)4770816
http://mbsolutions.selfip.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x89BCA161
signature.asc
Description: PGP signature
