Hi, I'm facing some issues when developping triggers.
* Default value for boolean field:
Currently, boolean field are stored in the database with "BOOLEAN NOT NULL".
The issue was that I needed to create a new user that will run a cron task in
the res module. I have got the calendar_scheduling module installed which add
some boolean fields on res.user (calendar_email_notification_*). So the
creation of the user fails because at this time the model doesn't have the
definition of this fields and so doesn't give default values.
I propose to add a default value on the database level like we do for Integer
and Float. The default value will be false as it is the way the GUI handle
unknow boolean.
* 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.
* 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
--
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/
pgpxwpA6Y3vhW.pgp
Description: PGP signature
