fix: default source for letter head to be image
This commit is contained in:
parent
ddefbf9dfc
commit
fc80532a80
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ from frappe.model.document import Document
|
|||
class LetterHead(Document):
|
||||
def before_insert(self):
|
||||
# for better UX, let user set from attachment
|
||||
self.set_from_attachment = 1
|
||||
self.source = 'Image'
|
||||
|
||||
def validate(self):
|
||||
self.set_image()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue