[price list] on deletion of price list, delete all item price record for the same price list
This commit is contained in:
parent
17c790cdbe
commit
a35466b008
@ -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)
|
Loading…
Reference in New Issue
Block a user