[11.0][ADD] stock_request_tier_validation (#528)

This commit is contained in:
hveficent
2019-01-28 16:08:02 +01:00
committed by Surachet Saejueng
parent e100181186
commit eedc76863c
20 changed files with 923 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# 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"
_inherit = ['stock.request', '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