mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
15 lines
443 B
Python
15 lines
443 B
Python
# Copyright (C) 2023 ForgeFlow S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
|
|
from odoo import models
|
|
|
|
|
|
class QuantPackage(models.Model):
|
|
_inherit = "stock.quant.package"
|
|
|
|
def _allowed_to_move_between_transfers(self):
|
|
res = super(QuantPackage, self)._allowed_to_move_between_transfers()
|
|
return res and self.location_id != self.env.ref(
|
|
"stock.stock_location_customers"
|
|
)
|