mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
14 lines
394 B
Python
14 lines
394 B
Python
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
|
|
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
|
|
|
from odoo import models
|
|
|
|
|
|
class StockLocation(models.Model):
|
|
_inherit = 'stock.location'
|
|
|
|
def should_bypass_reservation(self):
|
|
if self.env.context.get('mrp_subcontracting_bypass_reservation'):
|
|
return True
|
|
return super().should_bypass_reservation()
|