mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
(cherry picked from commit a37c99a23d)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -54,9 +54,11 @@ class RepostItemValuation(Document):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def restart_reposting(self):
|
def restart_reposting(self):
|
||||||
self.set_status('Queued')
|
self.set_status('Queued', write=False)
|
||||||
frappe.enqueue(repost, timeout=1800, queue='long',
|
self.current_index = 0
|
||||||
job_name='repost_sle', now=True, doc=self)
|
self.distinct_item_and_warehouse = None
|
||||||
|
self.items_to_be_repost = None
|
||||||
|
self.db_update()
|
||||||
|
|
||||||
def deduplicate_similar_repost(self):
|
def deduplicate_similar_repost(self):
|
||||||
""" Deduplicate similar reposts based on item-warehouse-posting combination."""
|
""" Deduplicate similar reposts based on item-warehouse-posting combination."""
|
||||||
|
|||||||
Reference in New Issue
Block a user