[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:
Pedro M. Baeza
2021-05-15 16:58:39 +02:00
parent 75ffd70cda
commit 5d73e93c19
5 changed files with 29 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
"name": "Base Comments Templates",
"summary": "Add conditional mako template to any report "
"on models that inherits comment.template.",
"version": "13.0.2.0.0",
"version": "13.0.3.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/reporting-engine",
"author": "Camptocamp, Odoo Community Association (OCA)",