|
9 | 9 | class BaseConfigSettings(models.TransientModel): |
10 | 10 | _inherit = 'base.config.settings' |
11 | 11 |
|
| 12 | + auth_admin_passkey_send_to_admin = fields.Boolean( |
| 13 | + string='Send email to admin user.', |
| 14 | + help="""When the administrator use his password to login in """ |
| 15 | + """with a different account, OpenERP will send an email """ |
| 16 | + """to the admin user.""") |
| 17 | + |
| 18 | + auth_admin_passkey_send_to_user = fields.Boolean( |
| 19 | + string='Send email to user.', |
| 20 | + help="""When the administrator use his password to login in """ |
| 21 | + """with a different account, OpenERP will send an email """ |
| 22 | + """to the account user.""") |
| 23 | + |
12 | 24 | # Getter / Setter Section |
13 | 25 | @api.model |
14 | 26 | def get_default_auth_admin_passkey_send_to_admin(self, fields): |
@@ -39,15 +51,3 @@ def set_auth_admin_passkey_send_to_user(self): |
39 | 51 | self.env['ir.config_parameter'].set_param( |
40 | 52 | "auth_admin_passkey.send_to_user", |
41 | 53 | config.auth_admin_passkey_send_to_user or '') |
42 | | - |
43 | | - auth_admin_passkey_send_to_admin = fields.Boolean( |
44 | | - string='Send email to admin user.', |
45 | | - help="""When the administrator use his password to login in """ |
46 | | - """with a different account, OpenERP will send an email """ |
47 | | - """to the admin user.""") |
48 | | - |
49 | | - auth_admin_passkey_send_to_user = fields.Boolean( |
50 | | - string='Send email to user.', |
51 | | - help="""When the administrator use his password to login in """ |
52 | | - """with a different account, OpenERP will send an email """ |
53 | | - """to the account user.""") |
0 commit comments