-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by jbaudoux
- Loading branch information
Showing
2 changed files
with
3 additions
and
1 deletion.
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 |
---|---|---|
@@ -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 | ||
|
@@ -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( | ||
{ | ||
|
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,6 +4,7 @@ | |
* `Trobz <https://trobz.com>`_: | ||
* Dung Tran <[email protected]> | ||
* Michael Tietz (MT Software) <[email protected]> | ||
* Jacques-Etienne Baudoux <[email protected]> | ||
|
||
Design | ||
~~~~~~ | ||
|