Skip to content

Commit

Permalink
[MIG] account_analytic_tag_default: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminSForgeFlow committed Mar 21, 2022
1 parent 257db21 commit ffc1f31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion account_analytic_tag_default/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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)

0 comments on commit ffc1f31

Please sign in to comment.