diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-05-19 10:19:45 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-05-26 15:50:11 +0200 |
| commit | 4afa747fa1bc99e5626636541a2dabb22c7f22cd (patch) | |
| tree | 4de41548363a800da127e6e988166ad825fcb1e2 /odoo/addons/test_main_flows/tests/test_flow.py | |
| parent | 8f578637076d4b65de222aa092ce738391ce5260 (diff) | |
[IMP] *: make ir.property methods private
Should only interact with them via python code in a controlled
environment, no direct call with RPC
Diffstat (limited to 'odoo/addons/test_main_flows/tests/test_flow.py')
| -rw-r--r-- | odoo/addons/test_main_flows/tests/test_flow.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odoo/addons/test_main_flows/tests/test_flow.py b/odoo/addons/test_main_flows/tests/test_flow.py index 4aaca90ed4d..6d2cfab311b 100644 --- a/odoo/addons/test_main_flows/tests/test_flow.py +++ b/odoo/addons/test_main_flows/tests/test_flow.py @@ -37,11 +37,11 @@ class BaseTestUi(odoo.tests.HttpCase): }) Property = self.env['ir.property'] - Property.set_default('property_account_receivable_id', 'res.partner', a_recv, self.env.company) - Property.set_default('property_account_payable_id', 'res.partner', a_pay, self.env.company) - Property.set_default('property_account_position_id', 'res.partner', False, self.env.company) - Property.set_default('property_account_expense_categ_id', 'product.category', a_expense, self.env.company) - Property.set_default('property_account_income_categ_id', 'product.category', a_sale, self.env.company) + Property._set_default('property_account_receivable_id', 'res.partner', a_recv, self.env.company) + Property._set_default('property_account_payable_id', 'res.partner', a_pay, self.env.company) + Property._set_default('property_account_position_id', 'res.partner', False, self.env.company) + Property._set_default('property_account_expense_categ_id', 'product.category', a_expense, self.env.company) + Property._set_default('property_account_income_categ_id', 'product.category', a_sale, self.env.company) self.expenses_journal = self.env['account.journal'].create({ 'name': 'Vendor Bills - Test', |
