mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] base_comment_template: Incorrect m2m column names + script + avoid FK constraint
- The name of the columns were swapped, so better to fix it for avoiding mistakes due to this. - Migration script for detecting the condition and swap column names. - On v12 > v13 migration, include JOINs for avoiding FK constraint, which `ON CONFLICT` clause doesn't protect.
This commit is contained in:
committed by
Víctor Martínez
parent
19b7692ee8
commit
34333c4216
@@ -45,8 +45,8 @@ class BaseCommentTemplate(models.Model):
|
||||
partner_ids = fields.Many2many(
|
||||
comodel_name="res.partner",
|
||||
relation="base_comment_template_res_partner_rel",
|
||||
column1="res_partner_id",
|
||||
column2="base_comment_template_id",
|
||||
column1="base_comment_template_id",
|
||||
column2="res_partner_id",
|
||||
string="Partner",
|
||||
readonly=True,
|
||||
help="If set, the comment template will be available only for the selected "
|
||||
|
||||
Reference in New Issue
Block a user