From ffc1f31cb72a5ac7855b99bf2fe642d1123f4795 Mon Sep 17 00:00:00 2001 From: Jasmin Solanki Date: Mon, 21 Mar 2022 15:15:23 +0530 Subject: [PATCH] [MIG] account_analytic_tag_default: Migration to 14.0 --- account_analytic_tag_default/__manifest__.py | 2 +- .../tests/test_account_analytic_tag_default.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/account_analytic_tag_default/__manifest__.py b/account_analytic_tag_default/__manifest__.py index 0426ec5aab..87a84fb69f 100644 --- a/account_analytic_tag_default/__manifest__.py +++ b/account_analytic_tag_default/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Account Analytic Tag Default", "summary": "Set default tags on analytic accounts.", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-analytic", diff --git a/account_analytic_tag_default/tests/test_account_analytic_tag_default.py b/account_analytic_tag_default/tests/test_account_analytic_tag_default.py index fd78100849..463537ab09 100644 --- a/account_analytic_tag_default/tests/test_account_analytic_tag_default.py +++ b/account_analytic_tag_default/tests/test_account_analytic_tag_default.py @@ -37,9 +37,9 @@ def setUp(self): ) def test_01_create_entry_no_tags(self): - invoice = self.move_obj.with_context(default_type="out_invoice").create( + invoice = self.move_obj.with_context(default_move_type="out_invoice").create( { - "type": "out_invoice", + "move_type": "out_invoice", "company_id": self.company.id, "journal_id": self.journal.id, "partner_id": self.partner1.id, @@ -65,9 +65,9 @@ def test_01_create_entry_no_tags(self): self.assertEqual(invoice.invoice_line_ids.analytic_tag_ids, self.tag_03) def test_02_create_entry_with_different_tags(self): - invoice = self.move_obj.with_context(default_type="out_invoice").create( + invoice = self.move_obj.with_context(default_move_type="out_invoice").create( { - "type": "out_invoice", + "move_type": "out_invoice", "company_id": self.company.id, "journal_id": self.journal.id, "partner_id": self.partner1.id, @@ -82,10 +82,10 @@ def test_02_create_entry_with_different_tags(self): "quantity": 1.0, "product_id": self.ref("product.product_product_3"), "analytic_account_id": self.test_analytic_account.id, - "analytic_tag_ids": [(6, 0, self.tag_02.ids)], }, ) ], } ) + invoice.invoice_line_ids.write({"analytic_tag_ids": [(6, 0, self.tag_02.ids)]}) self.assertEqual(invoice.invoice_line_ids.analytic_tag_ids, self.tag_02)