-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] sale_planned_consumed_date: Migration to 17.0
- Loading branch information
1 parent
e411cf1
commit de2b123
Showing
5 changed files
with
13 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
{ | ||
"name": "Sale planned consumed date", | ||
"Summary": "Use the commitment date as planned consumed date by customer.", | ||
"version": "14.0.0.1.0", | ||
"version": "17.0.1.0.0", | ||
"development_status": "Beta", | ||
"author": "Pierre Verkest <[email protected]>, Odoo Community Association (OCA)", | ||
"author": "Pierre Verkest <[email protected]>, " | ||
"Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/stock-logistics-workflow", | ||
"category": "Warehouse Management", | ||
"depends": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Copyright 2024 Foodles (https://www.foodles.co) | ||
# Copyright 2024-2025 Foodles (https://www.foodles.co) | ||
# @author Pierre Verkest <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from odoo import fields | ||
from odoo.tests.common import SavepointCase | ||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class SaleOrderPlannedConsumedDateTest(SavepointCase): | ||
class SaleOrderPlannedConsumedDateTest(TransactionCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
|
@@ -40,7 +40,7 @@ def test_confirm_sale_order_propagate_commitment_date_as_planned_consumed_date( | |
self.order.action_confirm() | ||
delivery = self.order.picking_ids | ||
self.assertEqual( | ||
delivery.move_lines.planned_consumed_date, | ||
delivery.move_ids.planned_consumed_date, | ||
fields.Datetime.from_string("2024-02-02"), | ||
) | ||
|
||
|
@@ -51,5 +51,5 @@ def test_confirm_sale_order_without_commitment_date( | |
self.order.action_confirm() | ||
delivery = self.order.picking_ids | ||
self.assertFalse( | ||
delivery.move_lines.planned_consumed_date, | ||
delivery.move_ids.planned_consumed_date, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
odoo-addon-stock-move-planned-consumed-date @ git+https://github.com/OCA/stock-logistics-workflow@refs/pull/1850/head#subdirectory=setup/stock_move_planned_consumed_date | ||
odoo-addon-stock-restrict-by-planned-consumed-date @ git+https://github.com/OCA/stock-logistics-workflow@refs/pull/1851/head#subdirectory=setup/stock_restrict_by_planned_consumed_date |