Skip to content

[19.0][MIG] despatch_advice_import: Migration to 19.0#1332

Open
yankinmax wants to merge 19 commits into
OCA:19.0from
camptocamp:19.0-mig-despatch_advice_import
Open

[19.0][MIG] despatch_advice_import: Migration to 19.0#1332
yankinmax wants to merge 19 commits into
OCA:19.0from
camptocamp:19.0-mig-despatch_advice_import

Conversation

@yankinmax
Copy link
Copy Markdown
Contributor

@yankinmax yankinmax commented Apr 24, 2026

@OCA-git-bot OCA-git-bot added series:19.0 mod:despatch_advice_import Module despatch_advice_import labels Apr 24, 2026
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch from 133df4e to d4ac9f8 Compare April 27, 2026 11:14
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch from d4ac9f8 to 1662210 Compare April 27, 2026 11:24
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch from 1662210 to d27323a Compare April 27, 2026 15:04
Copy link
Copy Markdown
Contributor

@vvrossem vvrossem left a comment

Choose a reason for hiding this comment

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

Code LGTM

Comment thread despatch_advice_import/wizard/despatch_advice_import.py Outdated
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch 2 times, most recently from a4d9299 to e101f20 Compare April 28, 2026 11:56
Comment thread test-requirements.txt Outdated
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch from e101f20 to 4538270 Compare April 29, 2026 11:18
@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @OCA/edi-maintainers can you pls take a look and possibly trigger merge?

Copy link
Copy Markdown
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG overall.
@jbaudoux ping

@@ -1,2 +0,0 @@
The migration of this module from 10.0 to 16.0 was financially supported
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do not remove this

mymage and others added 4 commits May 4, 2026 18:14
Currently translated at 100.0% (35 of 35 strings)

Translation: edi-16.0/edi-16.0-despatch_advice_import
Translate-URL: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-despatch_advice_import/it/
- Fix cancellation of backorder moves with stock_picking_restrict_cancel_printed module
- Always skip backorder wizard when validating the picking
- Don't call validate when all moves are canceled
@yankinmax yankinmax force-pushed the 19.0-mig-despatch_advice_import branch from 4538270 to e14ad39 Compare May 4, 2026 15:14
Comment on lines +270 to +284
self._process_picking_done(lines[0].move_ids[0])

def _process_picking_done(self, move: models.Model):
"""Validate the receipt once all line-level changes are applied.

:param move: A stock move belonging to the picking that should be validated.
:return: True when the picking only contains canceled moves, else None.
"""
picking = move.picking_id
if all(line.state == "cancel" for line in picking.move_ids):
return True
# skip backorder wizard
picking.with_context(
skip_immediate=True, skip_backorder=True, skip_sms=True, skip_expired=True
).button_validate()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️
We do not want to validate the incoming picking on the reception of despatch advice. I'm not sure if this must be configurable in the module or if it just shouldn't be here at all.

If that is really needed, IMO we should have a "post process hook" in this module that can be redefined in another module to process the picking as done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There have been changes in the migration commit to v16 that are out of the scope of the migration and that should be reverted. Validing the picking makes no sense and some other features like having one picking per reception date seems to have been lost

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello @jbaudoux I see your point.
Can you probably specify the workflow of this module as I just did a technical migration and completely not familiar with the module itself?
That way I could revert to the main ideas of the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.