diff options
| author | Toufik Benjaa <tbe@odoo.com> | 2018-05-16 14:54:55 +0200 |
|---|---|---|
| committer | Toufik Benjaa <tbe@odoo.com> | 2018-05-16 16:38:26 +0200 |
| commit | adfab80c1742a5fb96023742d28d79e0b44c9d40 (patch) | |
| tree | 2eaa7031fc8d29f1acb1168036ecc9491c40f62b /addons/test_mail/data/test_mail_data.py | |
| parent | 69714fbeee479cd3e0f89de39b3687c183791fc0 (diff) | |
[FIX] account: If set, use analytic account's company on line creation
- When creating analytic account lines when posting account moves, the lines' company id were set to the current user's company.
If the analytic account has a company set, the lines must be set on the same company (due to a python constraint).
So when creating the lines, we now check if the analytic account has a company, if so, we use it to create the lines.
Diffstat (limited to 'addons/test_mail/data/test_mail_data.py')
0 files changed, 0 insertions, 0 deletions
