Skip to content

[18.0][MIG] edi_purchase_edifact_oca: Migration to 18.0#2

Closed
P-H-Phuc wants to merge 3 commits into18.0from
18.0-mig-edi_purchase_edifact_oca
Closed

[18.0][MIG] edi_purchase_edifact_oca: Migration to 18.0#2
P-H-Phuc wants to merge 3 commits into18.0from
18.0-mig-edi_purchase_edifact_oca

Conversation

@P-H-Phuc
Copy link
Owner

UN/EDIFACT
United Nations rules for Elec­tronic Data Interchange for Administration,
Commerce and Transport

This module will support exporting and confirming orders in EDIFACT
format.

https://www.stedi.com/edi/edifact/D01B/messages/ORDERS
https://www.stedi.com/edi/edifact/D96A/messages/ORDERS
https://www.stedi.com/edi/edifact/D01B/messages/DESADV
https://www.stedi.com/edi/edifact/D96A/messages/DESADV

@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-edi_purchase_edifact_oca branch 2 times, most recently from 37c8988 to 81d1807 Compare August 11, 2025 05:21
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-edi_purchase_edifact_oca branch 3 times, most recently from 7ba81e0 to c2edcc9 Compare August 11, 2025 10:54
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-edi_purchase_edifact_oca branch from c2edcc9 to 06f11f0 Compare August 11, 2025 11:03
Copy link

@thienvh332 thienvh332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where’s the module’s development history? Did you hide it somewhere? 😆

for move in picking.move_lines:
move.quantity_done = move.product_uom_qty
self._update_qty_done_package(picking.move_lines)
picking = self.env["stock.picking"].browse(picking.id)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what?

Suggested change
picking = self.env["stock.picking"].browse(picking.id)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration to 18.0 from edi repo , how to include histories in edi-framework repo?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

picking = self.env["stock.picking"].browse(picking.id) I added it to debug and forgot to remove it

)
self.assertEqual(sum_quantity_done, 2.0)
sum_quantity_done = sum(self.purchase.order_line.mapped("move_ids.quantity"))
self.assertEqual(sum_quantity_done, 14.0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If quantity_done is 14, it no longer matches the intended meaning of this test case. This is a consequence of changing setUp to setUpClass

from odoo.addons.edi_oca.tests.common import EDIBackendTestMixin


@tagged("at_install", "-post_install")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tag is the default one, isn’t it? What’s the difference?

self.product_1 = self.env.ref("product.product_product_1")
self.product_1.default_code = "FURN_66668"
self.product_1.type = "product"
self.product_1.type = "consu"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this in a [DON'T MERGE] commit? It should be moved to a [MIG] commit to avoid losing it during the merge.

self.product_3 = self.env.ref("product.product_product_5")
self.product_3.default_code = "FURN_667777"
self.product_3.type = "product"
self.product_3.type = "consu"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

name="order_file"
filename="order_filename"
attrs="{'readonly': [('import_type', '=', False)]}"
readonly="not import_type"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

"name": "EDI PURCHASE EDIFACT OCA",
"summary": "Create and send EDIFACT order files",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need

@P-H-Phuc
Copy link
Owner Author

Replace by PR#4

@P-H-Phuc P-H-Phuc closed this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants