Skip to content

Commit

Permalink
[MIG] sale_stock_product_pack: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-zanotti committed Jul 29, 2024
1 parent 27258ec commit 4bfde23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sale_stock_product_pack/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Sale Stock Product Pack",
"summary": "Compatibility module for packs that are storable products",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"development_status": "Beta",
"category": "Sale",
"website": "https://github.com/OCA/product-pack",
Expand Down
7 changes: 4 additions & 3 deletions sale_stock_product_pack/tests/test_sale_stock_product_pack.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2021 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common
from odoo.tests import Form, TransactionCase


class TestSaleStockProductPack(common.SavepointCase):
class TestSaleStockProductPack(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand All @@ -30,7 +30,8 @@ def test_delivered_quantities(self):
for line in self.sale.picking_ids.move_ids.filtered(
lambda x: x.product_id != self.product_pack
):
line.quantity_done = line.product_uom_qty
line.quantity = line.product_uom_qty
self.sale.picking_ids.move_ids.picked = True
self.sale.picking_ids._action_done()
# All components delivered, all the pack quantities should be so
# TODO: it needs to compute twice. In view it does it fine.
Expand Down

0 comments on commit 4bfde23

Please sign in to comment.