Commit Graph

13 Commits

Author SHA1 Message Date
Pedro M. Baeza
d911054306 [IMP] base_comment_template: Avoid to load full language in tests
There's no need of loading each of the modules' translations, speeding
up this test execution a lot.
2023-04-20 09:12:17 +02:00
Pedro M. Baeza
bbd3e0a2cb [FIX] base_comment_template: Consider multi-company and partners
In a multi-company context, if you put a template with company_id set,
this template is trying to be assigned to any document, no matter which
company it belongs, as it runs in a sudo environment, or at least, you
can have several companies seen at the same time.

We add the company discriminant for avoiding this problem.

Furthermore, the previous code was adding a domain where the right
part may be `False` with the operator `in`, provoking an unexpected
behavior in the search.

This has been fixed stating directly the expected domain.

TT42591
2023-04-20 09:05:57 +02:00
Mihai Fekete
9931623c40 [14.0] [FIX] Fix base comment template rendering. 2022-05-17 16:55:58 +03:00
Víctor Martínez
85f9bc918e [IMP] base_comment_template: Adapt to 14.0 2021-05-24 08:18:40 +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
39d1a89ce5 [FIX] base_comment_template: Fix tests: test_company_general_template 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
Ivan Todorovich
a4f010ed53 [IMP] account_invoice_comment_template: Move comment_template_id field to the Invoicing tab
[IMP] account_invoice_comment_template: rename partner field name from comment_template_id to invoice_comment_template_id

[IMP] account_invoice_comment_template: Make partner field company_dependant and move domain definition of invoice fields from the view to the model

[MOV] account_invoice_comment_template: comment_template_id to base_comment_template

[IMP] account_invoice_comment_template: Translate templates when partner changes
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