doclist.py: don't change docstatus while saving if it is already 2
This commit is contained in:
parent
b204cbb708
commit
40adbbd0c7
1 changed files with 2 additions and 1 deletions
|
|
@ -145,7 +145,8 @@ class DocList:
|
|||
|
||||
d.modified_by = user
|
||||
d.modified = ts
|
||||
d.docstatus = self.to_docstatus
|
||||
if d.docstatus != 2: # don't update deleted
|
||||
d.docstatus = self.to_docstatus
|
||||
|
||||
def prepare_for_save(self, check_links):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue