feat: unlink advance payment entry on cancelation of order

This commit is contained in:
Rohit Waghchaure
2019-04-01 00:40:38 +05:30
parent 48bca9fbf2
commit 5fa9a7a1b4
7 changed files with 78 additions and 10 deletions

View File

@@ -531,6 +531,8 @@ class BuyingController(StockController):
update_last_purchase_rate(self, is_submit = 1)
def on_cancel(self):
super(BuyingController, self).on_cancel()
if self.get('is_return'):
return