Merge pull request #16790 from crossxcell99/master

fix: call base class onload method
This commit is contained in:
Rushabh Mehta 2019-02-27 08:31:14 +05:30 committed by GitHub
commit 76f36f68d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ class PurchaseInvoice(BuyingController):
}]
def onload(self):
super(PurchaseInvoice, self).onload()
supplier_tds = frappe.db.get_value("Supplier", self.supplier, "tax_withholding_category")
self.set_onload("supplier_tds", supplier_tds)