From fe1b2d7b9e2ce96521a551b36749e80975085487 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 29 May 2020 18:40:52 +0200 Subject: [PATCH] change m2m table name to avoid naming conflicts with other modules --- intrastat_base/models/res_company.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intrastat_base/models/res_company.py b/intrastat_base/models/res_company.py index 05c3d15..7372992 100644 --- a/intrastat_base/models/res_company.py +++ b/intrastat_base/models/res_company.py @@ -10,7 +10,9 @@ class ResCompany(models.Model): _inherit = "res.company" intrastat_remind_user_ids = fields.Many2many( - 'res.users', column1='company_id', column2='user_id', + comodel_name='res.users', + relation='company_intrastat_reminder_user_rel', + column1='company_id', column2='user_id', string="Users Receiving the Intrastat Reminder", help="List of Odoo users who will receive a notification to " "remind them about the Intrastat declaration.")