6 Commits

Author SHA1 Message Date
Pedro M. Baeza
010f33c696 [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.
2024-05-03 09:51:54 -06:00
Víctor Martínez
29842b1cb4 [IMP] base_comment_template: Refactor code and convert to Many2Many 2024-05-03 09:51:54 -06:00
Mihai Fekete
9daf0f6237 [MIG] [13.0] Migrate base_comment_template from account_invoic_reporting. 2024-05-03 09:51:54 -06:00
Pierre Verkest
fa2a677411 [IMP] base_comment_template: black, isort, prettier 2024-05-03 09:51:54 -06:00
Pedro M. Baeza
0610dc32ab [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.
2024-05-03 09:51:54 -06:00
Ivan Todorovich
1324c5826f [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
2024-05-03 09:51:54 -06:00