Commit Graph

16 Commits (dba79e44f858ee6be68ae7cb2fbb548172a43ff4)

Author SHA1 Message Date
João Marques fee0f18049 [FIX] base_comment_template: Filter domain correctly
1. Safe eval domain before checking if it is defined. This makes [] be "False" on the first check, and provides the proper use case for when the domain is empty
2. Use filtered_domain in record instead of a search in self. When on a compute, we are on a NewId context, so the search would always fail

TT29309
2021-05-25 09:04:26 +01:00
Víctor Martínez 85f9bc918e [IMP] base_comment_template: Adapt to 14.0 2021-05-24 08:18:40 +02:00
Pedro M. Baeza 34333c4216 [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.
2021-05-17 08:05:33 +02:00
Víctor Martínez 19b7692ee8 [IMP] base_comment_template: Refactor code and convert to Many2Many 2021-05-17 08:05:14 +02:00
Víctor Martínez e8b603793f [IMP] base_comment_template: Add function to get_comment_template records 2021-05-17 08:05:14 +02:00
Carlos Roca 8fef4ecdba [IMP] base_comment_template: Improved sentences on fields 2021-05-17 08:05:14 +02:00
teodoralexandru@nexterp.ro e1011fa519 [IMP] base_comment_template: Code refactorization 2021-05-17 08:05:14 +02:00
Mihai Fekete 2c3e562dde [MIG] [13.0] Migrate base_comment_template from account_invoic_reporting. 2021-05-17 08:05:14 +02:00
Pierre Verkest 8b0cc159e2 [MIG] base_comment_template: Migration to 14.0 add unit test 2021-01-28 09:45:25 +01:00
Pierre Verkest 85e13a0bf7 [IMP] base_comment_template: black, isort, prettier 2021-01-26 16:00:00 +01:00
Pedro M. Baeza 9b738976fe [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.
2021-01-26 16:00:00 +01:00
Ivan Todorovich e7d0910671 [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
2021-01-26 16:00:00 +01:00
Raf Ven d1d8747f18 [MIG] base_comment_template: Migration to 12.0 2021-01-26 16:00:00 +01:00
xavierjimenez d49a9ce9cd [MIG] base_comment_template: Migration to 11.0 2021-01-26 16:00:00 +01:00
Cedric Le Brouster 4495bd9e1e [MIG] base_comment_template, invoice_comment_template: Migration to 10.0
Port modules base_comment_template and invoice_comment_template to V10
2021-01-26 16:00:00 +01:00
leNeo 0e95b7b6bc [MIG] base_comment_template to 9.0 2021-01-26 16:00:00 +01:00