[FIX] Conflict with stock_request onchange method

The onchange method in the stock_request module is no longer needed so this overrides that to do nothing.
This commit is contained in:
Patrick Wilson
2020-04-16 16:00:51 -05:00
committed by Kitti U
parent 648776327c
commit 10ba1ac8c5

View File

@@ -26,6 +26,11 @@ class StockRequestOrder(models.Model):
if stock_request.route_id:
stock_request.route_id = False
@api.onchange('warehouse_id')
def onchange_warehouse_id(self):
# Onchange no longer needed
pass
def change_childs(self):
super().change_childs()
if not self._context.get("no_change_childs", False):