added repost funtion in stock_ledger
This commit is contained in:
parent
b32c5f2ae1
commit
e60de1a33b
@ -235,3 +235,10 @@ class DocType:
|
||||
sle_obj.validate()
|
||||
sle.save(new = 1)
|
||||
return sle.name
|
||||
|
||||
def repost(self):
|
||||
"""
|
||||
Repost everything!
|
||||
"""
|
||||
for wh in sql("select name from tabWarehouse"):
|
||||
get_obj('Warehouse', wh[0]).repost_stock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user