[FIX] contract: multi-company assignment notification

Steps to reproduce the problem:

1. Log in as Mitchell Admin.
2. Create contract CNT-A for company CMP-A, assigned to Marc Demo.
3. Create contract CNT-B for company CMP-B, assigned to Marc Demo.
4. Run cron to create recurring invoices.

Actual results:

- Odoo sends automated assignment emails to Marc Demo, which indicate the name of the company activated for `__system__` user whlie the cron was being executed.

Expected results after this patch:

- Odoo sends automated assignment emails to Marc Demo, which indicate the invoice company.

@Tecnativa TT24657
This commit is contained in:
Jairo Llopis
2020-07-28 10:30:40 +02:00
committed by Christopher Rogos
parent 3483169017
commit 6accadb475
6 changed files with 32 additions and 2 deletions

View File

@@ -13,3 +13,4 @@ from . import contract_tag
from . import res_company
from . import res_config_settings
from . import contract_terminate_reason
from . import ir_ui_view