Merge pull request #6281 from nabinhait/notifications
Notifications filters for DN, PR and PI
This commit is contained in:
commit
d223a03814
@ -22,12 +22,21 @@ def get_notification_config():
|
|||||||
"docstatus": ("<", 2)
|
"docstatus": ("<", 2)
|
||||||
},
|
},
|
||||||
"Journal Entry": {"docstatus": 0},
|
"Journal Entry": {"docstatus": 0},
|
||||||
"Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
|
"Sales Invoice": {
|
||||||
"Purchase Invoice": {"docstatus": 0},
|
"outstanding_amount": (">", 0),
|
||||||
|
"docstatus": ("<", 2)
|
||||||
|
},
|
||||||
|
"Purchase Invoice": {
|
||||||
|
"outstanding_amount": (">", 0),
|
||||||
|
"docstatus": ("<", 2)
|
||||||
|
},
|
||||||
"Leave Application": {"status": "Open"},
|
"Leave Application": {"status": "Open"},
|
||||||
"Expense Claim": {"approval_status": "Draft"},
|
"Expense Claim": {"approval_status": "Draft"},
|
||||||
"Job Applicant": {"status": "Open"},
|
"Job Applicant": {"status": "Open"},
|
||||||
"Delivery Note": {"docstatus": 0},
|
"Delivery Note": {
|
||||||
|
"status": ("not in", ("Completed", "Closed")),
|
||||||
|
"docstatus": ("<", 2)
|
||||||
|
},
|
||||||
"Stock Entry": {"docstatus": 0},
|
"Stock Entry": {"docstatus": 0},
|
||||||
"Material Request": {
|
"Material Request": {
|
||||||
"docstatus": ("<", 2),
|
"docstatus": ("<", 2),
|
||||||
@ -40,7 +49,10 @@ def get_notification_config():
|
|||||||
"status": ("not in", ("Completed", "Closed")),
|
"status": ("not in", ("Completed", "Closed")),
|
||||||
"docstatus": ("<", 2)
|
"docstatus": ("<", 2)
|
||||||
},
|
},
|
||||||
"Purchase Receipt": {"docstatus": 0},
|
"Purchase Receipt": {
|
||||||
|
"status": ("not in", ("Completed", "Closed")),
|
||||||
|
"docstatus": ("<", 2)
|
||||||
|
},
|
||||||
"Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
|
"Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
|
||||||
"BOM": {"docstatus": 0},
|
"BOM": {"docstatus": 0},
|
||||||
"Timesheet": {"status": "Draft"}
|
"Timesheet": {"status": "Draft"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user