From eccbea79bbdd908b8034a2ad87b435193e48e749 Mon Sep 17 00:00:00 2001 From: kunjal patel Date: Thu, 8 Feb 2018 09:21:46 +0000 Subject: [PATCH] Scheduled failure Logs and keep days for email . --- addons/mail/data/mail_data.xml | 13 ++ addons/mail/models/mail_mail.py | 30 ++- addons/mail/models/mail_template.py | 16 ++ addons/mail/models/res_partner.py | 1 + addons/mail/static/src/img/flectra_o.png | Bin 556 -> 3259 bytes addons/mail/views/mail_mail_views.xml | 2 + addons/mail/views/mail_template_views.xml | 1 + addons/mail/wizard/mail_compose_message.py | 12 +- flectra/addons/base/ir/ir_cron.py | 32 ++- flectra/addons/base/ir/ir_cron_view.xml | 53 +++++ flectra/addons/base/ir/ir_mail_server.py | 1 + .../addons/base/ir/ir_mail_server_view.xml | 1 + .../addons/base/security/ir.model.access.csv | 201 +++++++++--------- 13 files changed, 257 insertions(+), 106 deletions(-) diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index ea7a1814..a2387160 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -13,6 +13,19 @@ + + Mail: Email Unlink + + code + model.process_email_unlink() + + 1 + days + -1 + + + + Publisher: Update Notification diff --git a/addons/mail/models/mail_mail.py b/addons/mail/models/mail_mail.py index 34654292..8465b599 100644 --- a/addons/mail/models/mail_mail.py +++ b/addons/mail/models/mail_mail.py @@ -50,12 +50,31 @@ class MailMail(models.Model): auto_delete = fields.Boolean( 'Auto Delete', help="Permanently delete this email after sending it, to save space") + keep_days = fields.Integer('Keep days', default=-1, + help="This value defines the no. of days " + "the emails should be recorded " + "in the system: \n -1 = Email will be deleted " + "immediately once it is send \n greater than 0 = Email " + "will be deleted after " + "the no. of days are met.") + delete_date = fields.Date(compute='_compute_delete_on_date', + string='Delete on.', store=True) failure_reason = fields.Text( 'Failure Reason', readonly=1, help="Failure reason. This is usually the exception thrown by the email server, stored to ease the debugging of mailing issues.") scheduled_date = fields.Char('Scheduled Send Date', help="If set, the queue manager will send the email after the date. If not set, the email will be send as soon as possible.") + @api.depends('keep_days') + def _compute_delete_on_date(self): + mail_date = fields.Datetime.from_string(self.date) + if self.keep_days > 0: + delete_on = mail_date + datetime.timedelta(days=self.keep_days) + self.delete_date = delete_on + else: + self.delete_date = mail_date.date() + + @api.model def create(self, values): # notification field: if not set, set if mail comes from an existing mail.message @@ -89,6 +108,12 @@ class MailMail(models.Model): def cancel(self): return self.write({'state': 'cancel'}) + + @api.model + def process_email_unlink(self): + mail_ids = self.sudo().search([('delete_date', '=', datetime.datetime.now().date())]) + mail_ids.filtered('auto_delete').unlink() + @api.model def process_email_queue(self, ids=None): """Send immediately queued messages, committing after each @@ -146,6 +171,8 @@ class MailMail(models.Model): 'email_status': 'exception', }) if mail_sent: + if self.keep_days > 0: + return True self.sudo().filtered(lambda self: self.auto_delete).unlink() return True @@ -254,7 +281,8 @@ class MailMail(models.Model): try: mail = self.browse(mail_id) if mail.state != 'outgoing': - if mail.state != 'exception' and mail.auto_delete: + if mail.state != 'exception' and mail.auto_delete and \ + mail.keep_days < 0: mail.sudo().unlink() continue # TDE note: remove me when model_id field is present on mail.message - done here to avoid doing it multiple times in the sub method diff --git a/addons/mail/models/mail_template.py b/addons/mail/models/mail_template.py index 1a297f9a..57209ee6 100644 --- a/addons/mail/models/mail_template.py +++ b/addons/mail/models/mail_template.py @@ -176,6 +176,13 @@ class MailTemplate(models.Model): help="You may attach files to this template, to be added to all " "emails created from this template") auto_delete = fields.Boolean('Auto Delete', default=True, help="Permanently delete this email after sending it, to save space") + keep_days = fields.Integer('Keep days', default=-1, + help="This value defines the no. of days " + "the emails should be recorded " + "in the system: \n -1 = Email will be deleted " + "immediately once it is send \n greater than 0 = Email " + "will be deleted after " + "the no. of days are met.") # Fake fields used to implement the placeholder assistant model_object_field = fields.Many2one('ir.model.fields', string="Field", @@ -201,6 +208,14 @@ class MailTemplate(models.Model): else: self.model = False + @api.onchange('mail_server_id') + def onchange_mail_server_id(self): + if self.mail_server_id and self.mail_server_id.keep_days > 0 \ + and self.keep_days < 0: + self.keep_days = self.mail_server_id.keep_days + else: + self.keep_days = -1 + def build_expression(self, field_name, sub_field_name, null_value): """Returns a placeholder expression for use in a template field, based on the values provided in the placeholder assistant. @@ -493,6 +508,7 @@ class MailTemplate(models.Model): values.update( mail_server_id=template.mail_server_id.id or False, auto_delete=template.auto_delete, + keep_days=template.keep_days, model=template.model, res_id=res_id or False, attachment_ids=[attach.id for attach in template.attachment_ids], diff --git a/addons/mail/models/res_partner.py b/addons/mail/models/res_partner.py index 8310acfe..e990b9ac 100644 --- a/addons/mail/models/res_partner.py +++ b/addons/mail/models/res_partner.py @@ -105,6 +105,7 @@ class Partner(models.Model): 'mail_message_id': message.id, 'mail_server_id': message.mail_server_id.id, 'auto_delete': self._context.get('mail_auto_delete', True), + 'keep_days': self._context.get('mail_keep_days', -1), 'references': references, } mail_values.update(custom_values) diff --git a/addons/mail/static/src/img/flectra_o.png b/addons/mail/static/src/img/flectra_o.png index d1839f6df41a5289173b44e8432fd10e79dd1201..b8223791d80921341ca2fbe0ecc62638ab53b9d5 100644 GIT binary patch literal 3259 zcmai$Svb@U|HgmAFhiEHJs~v4l8hz$o*70N`@SWz#bjp~yRj9IH8Vqz$i63y79meG zSrRETOt$P1rLrXQ_WV!&*Y%#f*Y&->pOgFOKKf+YSY71i6y*c}fE#OyvHL^ce*4u8NAX6hOV04D_g4G1W?BMbl_O`Nf@jZHu(J~T2QGz^Y4Him~qgkHr3`2j!- zvnB6=S)Yv{YBalY!3GHq4~rqm$vs-XLaSCZfi+J^4$`adnc?_7JSLLTt1dxK5}x-C z+J@O2vK*tr*XLo9X=%{ApQihkBmSwMjH>e@d%*%HLUhM>5_Ep`bJ+u991q`zbnpNR z(s}#;tRh+FW8byvasQ?z+>+)^KtuD}FM0i5I z;_Rq1$R|_8jE%|`r+Zy&dyC4wH0z@^H*4=dv%-B$?JNNxP6hyoX#nu^_z%|rzzzz4 zgj@hXw-^9UhBDkv7XSd~F&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@ z9pWr6ZWTi!O1E_W=72K(pgSn6n&j)J|*ldsLq@reLR!6a!>7h5MN*(SAPO_gX z=N%xaG`NSZ-K}k}U}W<$t86YIle1^ao_k1h%}-j?ES33Qs9a{*)!MbmYAwjn{Fd4u z!QiLg(xcYnY}cJs_h2?2%rB&G+k7cy#=rbk^x;jl3MbiiJeVIWru7@s*0tdBVM@La zl9Ss3Jv*ASK+6qU=`=+7V@TfIFn>mM_>vWg8Ul_nb%(ELCXobX4rINAIgE2Qgs+ya zLSAD)^FBB+PptQzTySmSJgeCYBpEEs_y{_?=5yGD9eFjb-XpSvWb>0TkAhm68PH|jhFhGuW)dfYPIv-gCmP5XFVN1un zmS50b1fIm$e=lyV-_=a{Y~!`r4J18XXWP T_Hwb**M1yeky|GkLQ{w)i_BHr zJ`)cDngdh}R50Q88QTNP{{R1f?bDlGFYh;BKc>HDe&or`PriLV@%EYb(KVlb|17<< zf8K-3Yo6RpKetosg`5J=*^DJYe!&b5&u)PHz?kIi?!wT)D(eB{a29w(7Bet#3xhBt z!>lJ#m)-61ytJV?MfZmC#QFZ0 zTo(y1_!8sgryZ?gljK~y)o7x|6FL2@zMSWhTmD8)Q4T3S(k$*BoY}2hQ+DJ + + diff --git a/addons/mail/views/mail_template_views.xml b/addons/mail/views/mail_template_views.xml index 6ce532c2..7394cf1b 100644 --- a/addons/mail/views/mail_template_views.xml +++ b/addons/mail/views/mail_template_views.xml @@ -67,6 +67,7 @@ + diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 3456def3..c8ef2759 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -117,6 +117,13 @@ class MailComposer(models.TransientModel): # mass mode options notify = fields.Boolean('Notify followers', help='Notify followers of the document (mass post only)') auto_delete = fields.Boolean('Delete Emails', help='Delete sent emails (mass mailing only)') + keep_days = fields.Integer('Keep days', default=-1, + help="This value defines the no. of days " + "the emails should be recorded " + "in the system: \n -1 = Email will be deleted " + "immediately once it is send \n greater than 0 = Email " + "will be deleted after " + "the no. of days are met.") auto_delete_message = fields.Boolean('Delete Message Copy', help='Do not keep a copy of the email in the document communication history (mass mailing only)') template_id = fields.Many2one( 'mail.template', 'Use template', index=True, @@ -220,7 +227,8 @@ class MailComposer(models.TransientModel): # template user_signature is added when generating body_html # mass mailing: use template auto_delete value -> note, for emails mass mailing only Mail = Mail.with_context(mail_notify_user_signature=False) - ActiveModel = ActiveModel.with_context(mail_notify_user_signature=False, mail_auto_delete=wizard.template_id.auto_delete) + ActiveModel = ActiveModel.with_context(mail_notify_user_signature=False, mail_auto_delete=wizard.template_id.auto_delete, + mail_keep_days=wizard.template_id.keep_days) if not hasattr(ActiveModel, 'message_post'): ActiveModel = self.env['mail.thread'].with_context(thread_model=wizard.model) if wizard.composition_mode == 'mass_post': @@ -305,6 +313,8 @@ class MailComposer(models.TransientModel): # auto deletion of mail_mail if self.auto_delete or self.template_id.auto_delete: mail_values['auto_delete'] = True + mail_values['keep_days'] = \ + self.keep_days or self.template_id.keep_days # rendered values using template email_dict = rendered_values[res_id] mail_values['partner_ids'] += email_dict.pop('partner_ids', []) diff --git a/flectra/addons/base/ir/ir_cron.py b/flectra/addons/base/ir/ir_cron.py index b200cdc8..f18f1745 100644 --- a/flectra/addons/base/ir/ir_cron.py +++ b/flectra/addons/base/ir/ir_cron.py @@ -53,7 +53,9 @@ class ir_cron(models.Model): cron_name = fields.Char('Name', related='ir_actions_server_id.name', store=True) user_id = fields.Many2one('res.users', string='Scheduler User', default=lambda self: self.env.user, required=True) active = fields.Boolean(default=True) + fail = fields.Boolean('Failer Log', default=True) interval_number = fields.Integer(default=1, help="Repeat every x.") + total_fail = fields.Integer('Total Fail') interval_type = fields.Selection([('minutes', 'Minutes'), ('hours', 'Hours'), ('days', 'Days'), @@ -76,14 +78,24 @@ class ir_cron(models.Model): return True @api.model - def _handle_callback_exception(self, cron_name, server_action_id, job_id, job_exception): + def _handle_callback_exception(self, cron_name, server_action_id, job_id, job_exception, cron_cr): """ Method called when an exception is raised by a job. Simply logs the exception and rollback the transaction. """ self._cr.rollback() + cron_id = self.browse(job_id) + if cron_id.fail: + self.env['ir.cronjob.logs'].create( + {'cron_status': 'fail', + 'name': cron_id.name + ' - ' + str(datetime.now().date()), + 'start_date': datetime.now(), + 'log': str(job_exception)}) + query = """UPDATE ir_cron set total_fail=%s where id=%s""" % ( + (cron_id.total_fail or 0) + 1, cron_id.id) + cron_cr.execute(query) @api.model - def _callback(self, cron_name, server_action_id, job_id): + def _callback(self, cron_name, server_action_id, job_id, cron_cr): """ Run the method associated to a given job. It takes care of logging and exception handling. Note that the user running the server action is the user calling this method. """ @@ -107,7 +119,7 @@ class ir_cron(models.Model): self.pool.reset_changes() _logger.exception("Call from cron %s for server action #%s failed in Job #%s", cron_name, server_action_id, job_id) - self._handle_callback_exception(cron_name, server_action_id, job_id, e) + self._handle_callback_exception(cron_name, server_action_id, job_id, e, cron_cr) @classmethod def _process_job(cls, job_cr, job, cron_cr): @@ -134,7 +146,7 @@ class ir_cron(models.Model): if numbercall > 0: numbercall -= 1 if not ok or job['doall']: - cron._callback(job['cron_name'], job['ir_actions_server_id'], job['id']) + cron._callback(job['cron_name'], job['ir_actions_server_id'], job['id'], cron_cr) if numbercall: nextcall += _intervalTypes[job['interval_type']](job['interval_number']) ok = True @@ -309,3 +321,15 @@ class ir_cron(models.Model): def toggle(self, model, domain): active = bool(self.env[model].search_count(domain)) return self.try_write({'active': active}) + + +class ScheduledLogs(models.Model): + _name = 'ir.cronjob.logs' + + name = fields.Char("Name", readonly=True, track_visibility='always') + object_name = fields.Char(string="Object", readonly=True, track_visibility='always') + start_date = fields.Datetime("Start Date", readonly=True) + cron_id = fields.Many2one("ir.cron", "Cron", readonly=True, track_visibility='always') + cron_status = fields.Selection([('fail', 'Fail'), ('success', 'Success')], + 'Status', readonly=True) + log = fields.Text("Logs", readonly=True, track_visibility='always') diff --git a/flectra/addons/base/ir/ir_cron_view.xml b/flectra/addons/base/ir/ir_cron_view.xml index 485370f8..86a30548 100644 --- a/flectra/addons/base/ir/ir_cron_view.xml +++ b/flectra/addons/base/ir/ir_cron_view.xml @@ -32,6 +32,10 @@ + + + + @@ -86,4 +90,53 @@ + + + ir.cronjob.logs.form + ir.cronjob.logs + primary + +
+ + + + + + + + + + + + + + + + +
+
+
+ + + ir.cronjob.logs.tree + ir.cronjob.logs + + + + + + + + + + + Scheduled Logs + ir.cronjob.logs + form + form,tree + + + + + diff --git a/flectra/addons/base/ir/ir_mail_server.py b/flectra/addons/base/ir/ir_mail_server.py index 8d3daa3a..26e005e3 100644 --- a/flectra/addons/base/ir/ir_mail_server.py +++ b/flectra/addons/base/ir/ir_mail_server.py @@ -149,6 +149,7 @@ class IrMailServer(models.Model): sequence = fields.Integer(string='Priority', default=10, help="When no specific mail server is requested for a mail, the highest priority one " "is used. Default priority is 10 (smaller number = higher priority)") active = fields.Boolean(default=True) + keep_days = fields.Integer('Keep days', default=-1) @api.multi def name_get(self): diff --git a/flectra/addons/base/ir/ir_mail_server_view.xml b/flectra/addons/base/ir/ir_mail_server_view.xml index 1999618f..7679641a 100644 --- a/flectra/addons/base/ir/ir_mail_server_view.xml +++ b/flectra/addons/base/ir/ir_mail_server_view.xml @@ -14,6 +14,7 @@ + diff --git a/flectra/addons/base/security/ir.model.access.csv b/flectra/addons/base/security/ir.model.access.csv index 13e07e1a..21b71acc 100644 --- a/flectra/addons/base/security/ir.model.access.csv +++ b/flectra/addons/base/security/ir.model.access.csv @@ -1,100 +1,101 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_ir_attachment_all","ir_attachment all","model_ir_attachment",,1,0,0,0 -"access_ir_attachment_group_user","ir_attachment group_user","model_ir_attachment","group_user",1,1,1,1 -"access_ir_attachment_portal","ir.attachment.portal","model_ir_attachment","group_portal",1,0,1,0 -"access_ir_cron_group_cron","ir_cron group_cron","model_ir_cron","group_system",1,1,1,1 -"access_ir_exports_group_system","ir_exports group_system","model_ir_exports","base.group_user",1,1,1,1 -"access_ir_exports_line_group_system","ir_exports_line group_system","model_ir_exports_line","base.group_user",1,1,1,1 -"access_ir_model_group_erp_manager","ir_model group_erp_manager","model_ir_model","group_erp_manager",1,1,1,1 -"access_ir_model_constraint_group_erp_manager","ir_model_constraint group_erp_manager","model_ir_model_constraint","group_erp_manager",1,1,1,1 -"access_ir_model_relation_group_erp_manager","ir_model_relation group_erp_manager","model_ir_model_relation","group_erp_manager",1,1,1,1 -"access_ir_model_access_group_erp_manager","ir_model_access_group_erp_manager","model_ir_model_access","group_erp_manager",1,1,1,1 -"access_ir_model_data_group_erp_manager","ir_model_data group_erp_manager","model_ir_model_data","group_erp_manager",1,1,1,1 -"access_ir_model_fields_group_erp_manager","ir_model_fields group_erp_manager","model_ir_model_fields","group_erp_manager",1,1,1,1 -"access_ir_model_user","ir_model_all","model_ir_model",base.group_user,1,0,0,0 -"access_ir_model_data_user","ir_model_data user","model_ir_model_data",base.group_user,1,0,1,0 -"access_ir_model_fields_user","ir_model_fields all","model_ir_model_fields",base.group_user,1,0,0,0 -"access_ir_module_category_group_user","ir_module_category group_user","model_ir_module_category","group_erp_manager",1,0,0,0 -"access_ir_module_module_group_user","ir_module_module group_user","model_ir_module_module","group_system",1,1,1,1 -"access_ir_module_module_dependency_group_system","ir_module_module_dependency group_system","model_ir_module_module_dependency","group_system",1,1,1,1 -"access_ir_module_module_exclusion_group_system","ir_module_module_exclusion group_system","model_ir_module_module_exclusion","group_system",1,1,1,1 -"access_ir_property_group_user","ir_property group_user","model_ir_property",,1,0,0,0 -"access_ir_property_group_user_manager","ir_property group_manager","model_ir_property","base.group_partner_manager",1,1,1,0 -"access_ir_rule_group_erp_manager","ir_rule group_erp_manager","model_ir_rule","group_erp_manager",1,1,1,1 -"access_ir_sequence_group_user","ir_sequence group_user","model_ir_sequence","group_user",1,0,0,0 -"access_ir_sequence_group_system","ir_sequence group_system","model_ir_sequence","group_system",1,1,1,1 -"access_ir_sequence_date_range_group_user","ir_sequence_date_range group_user","model_ir_sequence_date_range","group_user",1,0,0,0 -"access_ir_sequence_date_range_group_system","ir_sequence_date_range group_system","model_ir_sequence_date_range","group_system",1,1,1,1 -"access_ir_translation_all","ir_translation all","model_ir_translation","group_user",1,1,1,1 -"access_ir_translation_group_system","ir_translation group_system","model_ir_translation","group_system",1,1,1,1 -"access_ir_ui_menu_group_user","ir_ui_menu group_user","model_ir_ui_menu",base.group_user,1,0,0,0 -"access_ir_ui_menu_group_system","ir_ui_menu group_system","model_ir_ui_menu","group_system",1,1,1,1 -"access_ir_ui_view_group_user","ir_ui_view group_user","model_ir_ui_view",,1,0,0,0 -"access_ir_ui_view_group_system","ir_ui_view group_system","model_ir_ui_view","group_system",1,1,1,1 -"access_ir_ui_view_custom_group_user","ir_ui_view_custom_group_user","model_ir_ui_view_custom",,1,1,1,1 -"access_ir_default_all","ir_default all","model_ir_default",,1,0,0,0 -"access_ir_default_group_user","ir_default group_user","model_ir_default","group_user",1,1,1,1 -"access_ir_default_group_system","ir_default group_system","model_ir_default","group_system",1,1,1,1 -"access_res_company_group_erp_manager","res_company group_erp_manager","model_res_company","group_erp_manager",1,1,1,1 -"access_res_company_group_user","res_company group_user","model_res_company",,1,0,0,0 -"access_res_country_group_all","res_country group_user_all","model_res_country",,1,0,0,0 -"access_res_country_state_group_all","res_country_state group_user_all","model_res_country_state",,1,0,0,0 -"access_res_country_group_group_all","res_country_group group_user_all","model_res_country_group",,1,0,0,0 -"access_res_country_group_user","res_country group_user","model_res_country","group_partner_manager",1,1,1,1 -"access_res_country_state_group_user","res_country_state group_user","model_res_country_state","group_partner_manager",1,1,1,1 -"access_res_country_group_group_user","res_country_group group_user","model_res_country_group","group_partner_manager",1,1,1,1 -"access_res_currency_group_all","res_currency group_all","model_res_currency",,1,0,0,0 -"access_res_currency_rate_group_all","res_currency_rate group_all","model_res_currency_rate",,1,0,0,0 -"access_res_currency_group_system","res_currency group_system","model_res_currency","group_system",1,1,1,1 -"access_res_currency_rate_group_system","res_currency_rate group_system","model_res_currency_rate","group_system",1,1,1,1 -"access_res_groups_group_erp_manager","res_groups group_erp_manager","model_res_groups","group_erp_manager",1,1,1,1 -"access_res_groups_group_user","res_groups group_user","model_res_groups",group_user,1,0,0,0 -"access_res_lang_group_all","res_lang group_all","model_res_lang",,1,0,0,0 -"access_res_lang_group_user","res_lang group_user","model_res_lang","group_system",1,1,1,1 -"access_res_partner_public","res_partner group_public","model_res_partner","group_public",1,0,0,0 -"access_res_partner_portal","res_partner group_portal","model_res_partner","group_portal",1,0,0,0 -"access_res_partner_group_partner_manager","res_partner group_partner_manager","model_res_partner","group_partner_manager",1,1,1,1 -"access_res_partner_group_user","res_partner group_user","model_res_partner","group_user",1,0,0,0 -"access_res_partner_bank_group_user","res_partner_bank group_user","model_res_partner_bank","group_user",1,0,0,0 -"access_res_partner_bank_group_partner_manager","res_partner_bank group_partner_manager","model_res_partner_bank","group_partner_manager",1,1,1,1 -"access_res_partner_category_group_user","res_partner_category group_user","model_res_partner_category","group_user",1,0,0,0 -"access_res_partner_category_group_partner_manager","res_partner_category group_partner_manager","model_res_partner_category","group_partner_manager",1,1,1,1 -"access_res_partner_industry_group_user","res_partner_industry group_user","model_res_partner_industry","group_user",1,0,0,0 -"access_res_partner_industry_group_system","res_partner_industry group_system","model_res_partner_industry","group_system",1,1,1,1 -"access_res_partner_title_group_user","res_partner_title group_user","model_res_partner_title","group_partner_manager",1,1,1,1 -"access_res_partner_title_group_partner_manager","res_partner_title group_partner_manager","model_res_partner_title",,1,0,0,0 -"access_res_request_link_group_system","res_request_link group_system","model_res_request_link","group_system",1,1,1,1 -"access_res_request_link_group_user","res_request_link group_user","model_res_request_link",,1,0,0,0 -"access_res_users_all","res_users all","model_res_users",,1,0,0,0 -"access_res_users_group_erp_manager","res_users group_erp_manager","model_res_users","group_erp_manager",1,1,1,1 -"access_res_users_log_all","res_users_log_all","model_res_users_log",,1,0,1,0 -"access_ir_actions_all","ir_actions_all","model_ir_actions_actions",,1,0,0,0 -"access_ir_actions_group_system","ir_actions_group_system","model_ir_actions_actions","group_system",1,1,1,1 -"access_ir_actions_act_window_all","ir_actions_act_window_all","model_ir_actions_act_window",,1,0,0,0 -"access_ir_actions_act_window_system","ir_actions_act_window_system","model_ir_actions_act_window","group_system",1,1,1,1 -"access_ir_actions_act_window_close_all","ir_actions_act_window_close_all","model_ir_actions_act_window_close",,1,0,0,0 -"access_ir_actions_act_window_close_group_system","ir_actions_act_window_close_group_system","model_ir_actions_act_window_close","group_system",1,1,1,1 -"access_ir_actions_report_all","ir_actions_report","model_ir_actions_report",,1,0,0,0 -"access_ir_actions_report_group_system","ir_actions_report_group_system","model_ir_actions_report","group_system",1,1,1,1 -"access_ir_actions_todo_group_system","ir_actions_todo group system","model_ir_actions_todo","group_system",1,1,1,1 -"access_ir_actions_act_window_view_all","ir_actions_act_window_view_all","model_ir_actions_act_window_view",,1,0,0,0 -"access_ir_actions_act_window_view_group_system","ir_actions_act_window_view_group_system","model_ir_actions_act_window_view","group_system",1,1,1,1 -"access_ir_actions_act_url_all","ir_actions_act_url_all","model_ir_actions_act_url",,1,0,0,0 -"access_ir_actions_act_url_group_system","ir_actions_act_url_group_system","model_ir_actions_act_url","group_system",1,1,1,1 -"access_ir_server_object_lines_all","ir_server_object_lines_all","model_ir_server_object_lines",,1,0,0,0 -"access_ir_server_object_lines_group_system","ir_server_object_lines_group_system","model_ir_server_object_lines","group_system",1,1,1,1 -"access_ir_actions_server_all","ir_actions_server_all","model_ir_actions_server",,1,0,0,0 -"access_ir_actions_server_group_system","ir_actions_server_group_system","model_ir_actions_server","group_system",1,1,1,1 -"access_res_bank_group_system","res_bank_group_system","model_res_bank","group_system",1,1,1,1 -"access_res_bank_group_partner_manager","res_bank_group_partner_manager","model_res_bank","group_partner_manager",1,1,1,1 -"access_res_bank_user","res_bank user","model_res_bank","group_user",1,0,0,0 -"access_ir_filter_erp_manager","ir_filters all","model_ir_filters","group_erp_manager",1,1,1,1 -"access_ir_filter_user","ir_filters all","model_ir_filters","group_user",1,1,1,1 -"access_ir_filter_portal","ir_filters all","model_ir_filters","group_portal",1,1,1,1 -"access_ir_filter_public","ir_filters all","model_ir_filters","group_public",1,1,1,1 -"access_ir_config_parameter_system","ir_config_parameter_system","model_ir_config_parameter","group_system",1,1,1,1 -"access_ir_mail_server","ir_mail_server","model_ir_mail_server","group_system",1,1,1,1 -"access_ir_actions_client","ir_actions_client all","model_ir_actions_client",,1,0,0,0 -"access_ir_logging","ir_logging admin","model_ir_logging","group_erp_manager",1,1,1,1 -"paperformat_access_portal","ir_actions_report_paperformat group_portal","model_report_paperformat",,1,0,0,0 -"paperformat_access_employee","ir_actions_report_paperformat group_hr_user","model_report_paperformat",,1,0,1,0 +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_ir_attachment_all,ir_attachment all,model_ir_attachment,,1,0,0,0 +access_ir_attachment_group_user,ir_attachment group_user,model_ir_attachment,group_user,1,1,1,1 +access_ir_attachment_portal,ir.attachment.portal,model_ir_attachment,group_portal,1,0,1,0 +access_ir_cron_group_cron,ir_cron group_cron,model_ir_cron,group_system,1,1,1,1 +access_ir_exports_group_system,ir_exports group_system,model_ir_exports,base.group_user,1,1,1,1 +access_ir_exports_line_group_system,ir_exports_line group_system,model_ir_exports_line,base.group_user,1,1,1,1 +access_ir_model_group_erp_manager,ir_model group_erp_manager,model_ir_model,group_erp_manager,1,1,1,1 +access_ir_model_constraint_group_erp_manager,ir_model_constraint group_erp_manager,model_ir_model_constraint,group_erp_manager,1,1,1,1 +access_ir_model_relation_group_erp_manager,ir_model_relation group_erp_manager,model_ir_model_relation,group_erp_manager,1,1,1,1 +access_ir_model_access_group_erp_manager,ir_model_access_group_erp_manager,model_ir_model_access,group_erp_manager,1,1,1,1 +access_ir_model_data_group_erp_manager,ir_model_data group_erp_manager,model_ir_model_data,group_erp_manager,1,1,1,1 +access_ir_model_fields_group_erp_manager,ir_model_fields group_erp_manager,model_ir_model_fields,group_erp_manager,1,1,1,1 +access_ir_model_user,ir_model_all,model_ir_model,base.group_user,1,0,0,0 +access_ir_model_data_user,ir_model_data user,model_ir_model_data,base.group_user,1,0,1,0 +access_ir_model_fields_user,ir_model_fields all,model_ir_model_fields,base.group_user,1,0,0,0 +access_ir_module_category_group_user,ir_module_category group_user,model_ir_module_category,group_erp_manager,1,0,0,0 +access_ir_module_module_group_user,ir_module_module group_user,model_ir_module_module,group_system,1,1,1,1 +access_ir_module_module_dependency_group_system,ir_module_module_dependency group_system,model_ir_module_module_dependency,group_system,1,1,1,1 +access_ir_module_module_exclusion_group_system,ir_module_module_exclusion group_system,model_ir_module_module_exclusion,group_system,1,1,1,1 +access_ir_property_group_user,ir_property group_user,model_ir_property,,1,0,0,0 +access_ir_property_group_user_manager,ir_property group_manager,model_ir_property,base.group_partner_manager,1,1,1,0 +access_ir_rule_group_erp_manager,ir_rule group_erp_manager,model_ir_rule,group_erp_manager,1,1,1,1 +access_ir_sequence_group_user,ir_sequence group_user,model_ir_sequence,group_user,1,0,0,0 +access_ir_sequence_group_system,ir_sequence group_system,model_ir_sequence,group_system,1,1,1,1 +access_ir_sequence_date_range_group_user,ir_sequence_date_range group_user,model_ir_sequence_date_range,group_user,1,0,0,0 +access_ir_sequence_date_range_group_system,ir_sequence_date_range group_system,model_ir_sequence_date_range,group_system,1,1,1,1 +access_ir_translation_all,ir_translation all,model_ir_translation,group_user,1,1,1,1 +access_ir_translation_group_system,ir_translation group_system,model_ir_translation,group_system,1,1,1,1 +access_ir_ui_menu_group_user,ir_ui_menu group_user,model_ir_ui_menu,base.group_user,1,0,0,0 +access_ir_ui_menu_group_system,ir_ui_menu group_system,model_ir_ui_menu,group_system,1,1,1,1 +access_ir_ui_view_group_user,ir_ui_view group_user,model_ir_ui_view,,1,0,0,0 +access_ir_ui_view_group_system,ir_ui_view group_system,model_ir_ui_view,group_system,1,1,1,1 +access_ir_ui_view_custom_group_user,ir_ui_view_custom_group_user,model_ir_ui_view_custom,,1,1,1,1 +access_ir_default_all,ir_default all,model_ir_default,,1,0,0,0 +access_ir_default_group_user,ir_default group_user,model_ir_default,group_user,1,1,1,1 +access_ir_default_group_system,ir_default group_system,model_ir_default,group_system,1,1,1,1 +access_res_company_group_erp_manager,res_company group_erp_manager,model_res_company,group_erp_manager,1,1,1,1 +access_res_company_group_user,res_company group_user,model_res_company,,1,0,0,0 +access_res_country_group_all,res_country group_user_all,model_res_country,,1,0,0,0 +access_res_country_state_group_all,res_country_state group_user_all,model_res_country_state,,1,0,0,0 +access_res_country_group_group_all,res_country_group group_user_all,model_res_country_group,,1,0,0,0 +access_res_country_group_user,res_country group_user,model_res_country,group_partner_manager,1,1,1,1 +access_res_country_state_group_user,res_country_state group_user,model_res_country_state,group_partner_manager,1,1,1,1 +access_res_country_group_group_user,res_country_group group_user,model_res_country_group,group_partner_manager,1,1,1,1 +access_res_currency_group_all,res_currency group_all,model_res_currency,,1,0,0,0 +access_res_currency_rate_group_all,res_currency_rate group_all,model_res_currency_rate,,1,0,0,0 +access_res_currency_group_system,res_currency group_system,model_res_currency,group_system,1,1,1,1 +access_res_currency_rate_group_system,res_currency_rate group_system,model_res_currency_rate,group_system,1,1,1,1 +access_res_groups_group_erp_manager,res_groups group_erp_manager,model_res_groups,group_erp_manager,1,1,1,1 +access_res_groups_group_user,res_groups group_user,model_res_groups,group_user,1,0,0,0 +access_res_lang_group_all,res_lang group_all,model_res_lang,,1,0,0,0 +access_res_lang_group_user,res_lang group_user,model_res_lang,group_system,1,1,1,1 +access_res_partner_public,res_partner group_public,model_res_partner,group_public,1,0,0,0 +access_res_partner_portal,res_partner group_portal,model_res_partner,group_portal,1,0,0,0 +access_res_partner_group_partner_manager,res_partner group_partner_manager,model_res_partner,group_partner_manager,1,1,1,1 +access_res_partner_group_user,res_partner group_user,model_res_partner,group_user,1,0,0,0 +access_res_partner_bank_group_user,res_partner_bank group_user,model_res_partner_bank,group_user,1,0,0,0 +access_res_partner_bank_group_partner_manager,res_partner_bank group_partner_manager,model_res_partner_bank,group_partner_manager,1,1,1,1 +access_res_partner_category_group_user,res_partner_category group_user,model_res_partner_category,group_user,1,0,0,0 +access_res_partner_category_group_partner_manager,res_partner_category group_partner_manager,model_res_partner_category,group_partner_manager,1,1,1,1 +access_res_partner_industry_group_user,res_partner_industry group_user,model_res_partner_industry,group_user,1,0,0,0 +access_res_partner_industry_group_system,res_partner_industry group_system,model_res_partner_industry,group_system,1,1,1,1 +access_res_partner_title_group_user,res_partner_title group_user,model_res_partner_title,group_partner_manager,1,1,1,1 +access_res_partner_title_group_partner_manager,res_partner_title group_partner_manager,model_res_partner_title,,1,0,0,0 +access_res_request_link_group_system,res_request_link group_system,model_res_request_link,group_system,1,1,1,1 +access_res_request_link_group_user,res_request_link group_user,model_res_request_link,,1,0,0,0 +access_res_users_all,res_users all,model_res_users,,1,0,0,0 +access_res_users_group_erp_manager,res_users group_erp_manager,model_res_users,group_erp_manager,1,1,1,1 +access_res_users_log_all,res_users_log_all,model_res_users_log,,1,0,1,0 +access_ir_actions_all,ir_actions_all,model_ir_actions_actions,,1,0,0,0 +access_ir_actions_group_system,ir_actions_group_system,model_ir_actions_actions,group_system,1,1,1,1 +access_ir_actions_act_window_all,ir_actions_act_window_all,model_ir_actions_act_window,,1,0,0,0 +access_ir_actions_act_window_system,ir_actions_act_window_system,model_ir_actions_act_window,group_system,1,1,1,1 +access_ir_actions_act_window_close_all,ir_actions_act_window_close_all,model_ir_actions_act_window_close,,1,0,0,0 +access_ir_actions_act_window_close_group_system,ir_actions_act_window_close_group_system,model_ir_actions_act_window_close,group_system,1,1,1,1 +access_ir_actions_report_all,ir_actions_report,model_ir_actions_report,,1,0,0,0 +access_ir_actions_report_group_system,ir_actions_report_group_system,model_ir_actions_report,group_system,1,1,1,1 +access_ir_actions_todo_group_system,ir_actions_todo group system,model_ir_actions_todo,group_system,1,1,1,1 +access_ir_actions_act_window_view_all,ir_actions_act_window_view_all,model_ir_actions_act_window_view,,1,0,0,0 +access_ir_actions_act_window_view_group_system,ir_actions_act_window_view_group_system,model_ir_actions_act_window_view,group_system,1,1,1,1 +access_ir_actions_act_url_all,ir_actions_act_url_all,model_ir_actions_act_url,,1,0,0,0 +access_ir_actions_act_url_group_system,ir_actions_act_url_group_system,model_ir_actions_act_url,group_system,1,1,1,1 +access_ir_server_object_lines_all,ir_server_object_lines_all,model_ir_server_object_lines,,1,0,0,0 +access_ir_server_object_lines_group_system,ir_server_object_lines_group_system,model_ir_server_object_lines,group_system,1,1,1,1 +access_ir_actions_server_all,ir_actions_server_all,model_ir_actions_server,,1,0,0,0 +access_ir_actions_server_group_system,ir_actions_server_group_system,model_ir_actions_server,group_system,1,1,1,1 +access_res_bank_group_system,res_bank_group_system,model_res_bank,group_system,1,1,1,1 +access_res_bank_group_partner_manager,res_bank_group_partner_manager,model_res_bank,group_partner_manager,1,1,1,1 +access_res_bank_user,res_bank user,model_res_bank,group_user,1,0,0,0 +access_ir_filter_erp_manager,ir_filters all,model_ir_filters,group_erp_manager,1,1,1,1 +access_ir_filter_user,ir_filters all,model_ir_filters,group_user,1,1,1,1 +access_ir_filter_portal,ir_filters all,model_ir_filters,group_portal,1,1,1,1 +access_ir_filter_public,ir_filters all,model_ir_filters,group_public,1,1,1,1 +access_ir_config_parameter_system,ir_config_parameter_system,model_ir_config_parameter,group_system,1,1,1,1 +access_ir_mail_server,ir_mail_server,model_ir_mail_server,group_system,1,1,1,1 +access_ir_actions_client,ir_actions_client all,model_ir_actions_client,,1,0,0,0 +access_ir_logging,ir_logging admin,model_ir_logging,group_erp_manager,1,1,1,1 +paperformat_access_portal,ir_actions_report_paperformat group_portal,model_report_paperformat,,1,0,0,0 +paperformat_access_employee,ir_actions_report_paperformat group_hr_user,model_report_paperformat,,1,0,1,0 +access_ir_cronjob_logs,access_ir_cronjob_logs,model_ir_cronjob_logs,group_system,1,1,1,1