diff options
| author | qdp-odoo <qdp@odoo.com> | 2020-03-02 13:54:12 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-03-26 13:22:58 +0000 |
| commit | 847889b49768db290f86ab5c5f48e8134fa29266 (patch) | |
| tree | 62d0d4f0b317b5e13dcfc319d013bf90abb807af /addons/point_of_sale/tests | |
| parent | 4a93f93e405a2e2a6bcb538eeb12e6507ceaa99a (diff) | |
[FIX] analytic, account: multi company fixes
added _check_company_auto and check_company attributes on relevant objects
Was task 2206523
closes odoo/odoo#46586
Related: odoo/enterprise#8986
Related: odoo/upgrade#993
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/tests')
| -rw-r--r-- | addons/point_of_sale/tests/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/point_of_sale/tests/common.py b/addons/point_of_sale/tests/common.py index f1bb6ba1101..8d0601b0c96 100644 --- a/addons/point_of_sale/tests/common.py +++ b/addons/point_of_sale/tests/common.py @@ -139,8 +139,8 @@ class TestPointOfSaleCommon(StockAccountTestCommon): {'taxes_id': [(6, 0, [account_tax_05_incl.id, account_tax_05_incl_chicago.id])]}) # Set account_id in the generated repartition lines. Automatically, nothing is set. - invoice_rep_lines = (account_tax_05_incl | account_tax_05_incl_chicago | account_tax_10_incl).mapped('invoice_repartition_line_ids') - refund_rep_lines = (account_tax_05_incl | account_tax_05_incl_chicago | account_tax_10_incl).mapped('refund_repartition_line_ids') + invoice_rep_lines = (account_tax_05_incl | account_tax_10_incl).mapped('invoice_repartition_line_ids') + refund_rep_lines = (account_tax_05_incl | account_tax_10_incl).mapped('refund_repartition_line_ids') # Expense account, should just be something else than receivable/payable (invoice_rep_lines | refund_rep_lines).write({'account_id': cls.a_expense.id}) |
