diff options
| author | jem-odoo <jem@openerp.com> | 2019-08-22 07:01:14 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-08-22 07:37:23 +0000 |
| commit | 8d0aee229364e9db36d5406b4b7a377f146e5f7c (patch) | |
| tree | c42879781691a3244b0fe9777deb5c2346f91fc3 /addons/hr_expense/tests | |
| parent | a2c52e9efd5f97aea56b997f015862840fb0f55e (diff) | |
[IMP] hr_expense: multicompany hard constraint
This commit provides hard constraints (SQL level) for expense to work in multi company
environement. This is related to a R&D task, the rest of the code need to be adapt, but
freeze is coming.
As expense implies accounting entries, it is required to generate them in the right
company, the company field should then be required.
Task-1999686
closes odoo/odoo#35953
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/hr_expense/tests')
| -rw-r--r-- | addons/hr_expense/tests/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_expense/tests/common.py b/addons/hr_expense/tests/common.py index 7c40688db48..b045a539a1a 100644 --- a/addons/hr_expense/tests/common.py +++ b/addons/hr_expense/tests/common.py @@ -45,7 +45,7 @@ class TestExpenseCommon(TestAccountNoChartCommon): 'name': 'Purchase Journal - Test', 'code': 'HRTPJ', 'type': 'purchase', - 'company_id': cls.env.user.company_id.id, + 'company_id': cls.env.company.id, }) cls.expense_sheet = cls.env['hr.expense.sheet'].create({ 'name': 'Expense for Johnny Employee', |
