Skip to content

Commit

Permalink
[MIG] stock_landed_costs_analytic: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rov-adhoc committed May 23, 2024
1 parent add5919 commit 3e2e1cd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stock_landed_costs_analytic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This module adds an analytic account and analytic tags on landed costs
lines so that on landed costs validation account moves get analytic
account and analytic tags values from landed costs lines.""",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
Expand Down
1 change: 1 addition & 0 deletions stock_landed_costs_analytic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import stock_landed_cost_lines
from . import stock_valuation_adjustment_lines
from . import stock_landed_cost
10 changes: 10 additions & 0 deletions stock_landed_costs_analytic/models/stock_landed_cost.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from odoo import api, models


class StockLandedCost(models.Model):
_name = "stock.landed.cost"
_inherit = "stock.landed.cost"

@api.model_create_multi
def create(self, vals_list):
return super().create(vals_list)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StockValuationAdjustmentLines(models.Model):
def _create_account_move_line(
self, move, credit_account_id, debit_account_id, qty_out, already_out_account_id
):
res = super(StockValuationAdjustmentLines, self)._create_account_move_line(
res = super()._create_account_move_line(
move, credit_account_id, debit_account_id, qty_out, already_out_account_id
)
cost_line = self.cost_line_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestStockLandedCostsAnalytic(TransactionCase):
def setUp(self):
super(TestStockLandedCostsAnalytic, self).setUp()
super().setUp()
self.Product = self.env["product.product"]
self.Picking = self.env["stock.picking"]
self.LandedCost = self.env["stock.landed.cost"]
Expand Down Expand Up @@ -78,6 +78,7 @@ def setUp(self):
"name": "Move Test",
"product_id": self.product.id,
"product_uom_qty": 5,
"quantity": 5,
"product_uom": self.ref("uom.product_uom_unit"),
"location_id": self.supplier_location.id,
"location_dest_id": self.customer_location.id,
Expand Down

0 comments on commit 3e2e1cd

Please sign in to comment.