Skip to content

Commit e0c34ed

Browse files
committed
[IMP] stock_move_priority_picking_assign: Allows to modify moves priority through picking one
1 parent 7586a22 commit e0c34ed

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
from . import stock_move
2-
from . import stock_picking_type
1+
from . import stock_move, stock_picking, stock_picking_type
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2024 ACSONE SA/NV
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
from odoo import models
4+
5+
6+
class StockPicking(models.Model):
7+
8+
_inherit = "stock.picking"
9+
10+
def write(self, vals):
11+
if "priority" in vals:
12+
self.move_ids.write({"priority": False})
13+
return super().write(vals)

0 commit comments

Comments
 (0)