mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
17 lines
530 B
Python
17 lines
530 B
Python
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from odoo import api, models
|
|
|
|
|
|
class StockRequest(models.Model):
|
|
_name = "stock.request.order"
|
|
_inherit = ['stock.request.order', 'tier.validation']
|
|
_state_from = ['draft']
|
|
_state_to = ['open']
|
|
|
|
@api.model
|
|
def _get_under_validation_exceptions(self):
|
|
res = super(StockRequest, self)._get_under_validation_exceptions()
|
|
res.append('route_id')
|
|
return res
|