Controller init args fix (#11015)

* Controller init args fix

* cleanup useless code
This commit is contained in:
Nabin Hait
2017-10-02 15:59:27 +05:30
committed by GitHub
parent 1f10d693e9
commit 7eba1a35d3
16 changed files with 35 additions and 38 deletions

View File

@@ -20,8 +20,8 @@ form_grid_templates = {
}
class PurchaseOrder(BuyingController):
def __init__(self, arg1, arg2=None):
super(PurchaseOrder, self).__init__(arg1, arg2)
def __init__(self, *args, **kwargs):
super(PurchaseOrder, self).__init__(*args, **kwargs)
self.status_updater = [{
'source_dt': 'Purchase Order Item',
'target_dt': 'Material Request Item',