[price list] on deletion of price list, delete all item price record for the same price list

This commit is contained in:
Nabin Hait 2013-05-20 18:32:06 +05:30
parent 17c790cdbe
commit a35466b008

View File

@ -33,3 +33,6 @@ class DocType:
msgprint(_("""Please check "Valid For All Countries" or \
enter atlease one row in the "Countries" table."""), raise_exception=True)
def on_trash(self):
webnotes.conn.sql("""delete from `tabItem Price` where price_list_name = %s""",
self.doc.name)