Skip to content

Commit

Permalink
[14.0][MIG] product_analytic: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Reyes4711-S73 committed May 13, 2021
1 parent dd9e350 commit 82b7659
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion product_analytic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Product Analytic",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "Add analytic account on products and product categories",
Expand Down
2 changes: 1 addition & 1 deletion product_analytic/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AccountMoveLine(models.Model):
@api.onchange("product_id")
def _onchange_product_id(self):
res = super()._onchange_product_id()
inv_type = self.move_id.type
inv_type = self.move_id.move_type
if self.product_id and inv_type:
ana_accounts = (
self.product_id.product_tmpl_id._get_product_analytic_accounts()
Expand Down
4 changes: 2 additions & 2 deletions product_analytic/tests/test_account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_create_in(self):
{
"partner_id": self.partner.id,
"journal_id": self.journal_purchase.id,
"type": "in_invoice",
"move_type": "in_invoice",
"invoice_line_ids": [
(
0,
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_create_out(self):
{
"partner_id": self.partner.id,
"journal_id": self.journal_sale.id,
"type": "out_invoice",
"move_type": "out_invoice",
"invoice_line_ids": [
(
0,
Expand Down

0 comments on commit 82b7659

Please sign in to comment.