Commit Graph

6 Commits

Author SHA1 Message Date
Pedro M. Baeza
8fdbcaf404 [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.
2022-09-13 16:44:40 +02:00
Víctor Martínez
c646ae89dc [IMP] base_comment_template: Refactor code and convert to Many2Many 2022-09-13 16:44:40 +02:00
Mihai Fekete
a68181d03a [MIG] [13.0] Migrate base_comment_template from account_invoic_reporting. 2022-09-13 16:44:40 +02:00
Pierre Verkest
744563b661 [IMP] base_comment_template: black, isort, prettier 2022-09-13 16:44:38 +02:00
Pedro M. Baeza
78d335f033 [FIX] base_comment_template: Make field truly company dependent
Previous field declaration was incorrect due to a typo, leading to non applying the
company dependent features.

Now everything is correct and the migration scripts care of moving data properly.
2022-09-13 16:44:37 +02:00
Ivan Todorovich
1f665aa7ce [IMP] base_comment_template multi company rules
[IMP] Move comment_template_id from account_invoice_comment_template and make it company_dependant

[IMP] base_comment_template: Add test
2022-09-13 16:44:35 +02:00