[refactor] [frappe 5.0]

This commit is contained in:
Rushabh Mehta
2014-09-09 16:15:35 +05:30
parent ed37cef32a
commit c0bb453b88
55 changed files with 80 additions and 655 deletions

View File

@@ -18,6 +18,10 @@ class BuyingController(StockController):
"other_charges": "templates/print_formats/includes/taxes.html",
}
def get_feed(self):
return _("From {0} | {1} {2}").format(self.supplier_name, self.currency,
self.grand_total_import)
def validate(self):
super(BuyingController, self).validate()
if getattr(self, "supplier", None) and not self.supplier_name: