We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7586a22 commit e0c34edCopy full SHA for e0c34ed
stock_move_priority_picking_assign/models/__init__.py
@@ -1,2 +1 @@
1
-from . import stock_move
2
-from . import stock_picking_type
+from . import stock_move, stock_picking, stock_picking_type
stock_move_priority_picking_assign/models/stock_picking.py
@@ -0,0 +1,13 @@
+# Copyright 2024 ACSONE SA/NV
+# 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