[IMP] stock_request_tier_validation: black, isort

This commit is contained in:
ps-tubtim
2020-03-30 18:52:08 +07:00
committed by Surachet Saejueng
parent f401fa58e2
commit 90145cb3eb
9 changed files with 228 additions and 167 deletions

View File

@@ -5,12 +5,12 @@ from odoo import api, models
class StockRequest(models.Model):
_name = "stock.request"
_inherit = ['stock.request', 'tier.validation']
_state_from = ['draft']
_state_to = ['open']
_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')
res.append("route_id")
return res