Skip to content

Commit

Permalink
[MIG] sale_planned_consumed_date: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregaldeano committed Jan 30, 2025
1 parent e411cf1 commit de2b123
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 39 deletions.
5 changes: 3 additions & 2 deletions sale_planned_consumed_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
18 changes: 2 additions & 16 deletions sale_planned_consumed_date/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__display_name
msgid "Display Name"
msgstr "Libellé"

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__id
msgid "ID"
msgstr ""

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line____last_update
msgid "Last Modified on"
msgstr "Dernière date de modification le"

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__planned_consumed_date
msgid "Planned consumed date"
Expand Down
17 changes: 1 addition & 16 deletions sale_planned_consumed_date/i18n/sale_planned_consumed_date.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -13,21 +13,6 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__display_name
msgid "Display Name"
msgstr ""

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__id
msgid "ID"
msgstr ""

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_planned_consumed_date
#: model:ir.model.fields,field_description:sale_planned_consumed_date.field_sale_order_line__planned_consumed_date
msgid "Planned consumed date"
Expand Down
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()
Expand Down Expand Up @@ -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"),
)

Expand All @@ -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,
)
2 changes: 2 additions & 0 deletions test-requirements.txt
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

0 comments on commit de2b123

Please sign in to comment.