OCA_Reporting_engine_17.0/base_comment_template/models
Pedro M. Baeza dea48a328a [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-17 21:10:00 +02:00
..
__init__.py [IMP] base_comment_template: Refactor code and convert to Many2Many 2021-05-04 08:04:32 +02:00
base_comment_template.py [FIX] base_comment_template: Incorrect m2m column names + script + avoid FK constraint 2021-05-15 16:58:39 +02:00
comment_template.py [FIX] base_comment_template: Consider multi-company and partners 2023-04-17 21:10:00 +02:00
ir_model.py [IMP] base_comment_template: Improved sentences on fields 2021-02-10 10:14:37 +01:00
res_partner.py [FIX] base_comment_template: Incorrect m2m column names + script + avoid FK constraint 2021-05-15 16:58:39 +02:00