Skip to content

Commit

Permalink
Merge PR #159 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by jbaudoux
  • Loading branch information
OCA-git-bot committed Jan 10, 2025
2 parents c434f5b + 63ca26d commit 99d6b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shipment_advice/models/shipment_advice.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2021 Camptocamp SA
# Copyright 2024 Michael Tietz (MT Software) <[email protected]>
# Copyright 2025 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import _, api, fields, models
Expand Down Expand Up @@ -383,7 +384,7 @@ def _validate_picking(self, picking, backorder_policy="create_backorder"):
wiz.pick_ids = picking
wiz.with_context(button_validate_picking_ids=picking.ids).process()
elif not picking._check_backorder():
picking._action_done()
picking.with_context(skip_backorder=True).button_validate()
except UserError as error:
self.write(
{
Expand Down
1 change: 1 addition & 0 deletions shipment_advice/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* `Trobz <https://trobz.com>`_:
* Dung Tran <[email protected]>
* Michael Tietz (MT Software) <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>

Design
~~~~~~
Expand Down

0 comments on commit 99d6b87

Please sign in to comment.