Commit graph

23078 commits

Author SHA1 Message Date
vishal
e7e155ee58 fix:ldap check prevent for login screen 2020-01-10 12:57:04 +05:30
mergify[bot]
2f0ea26512
Merge pull request #9219 from prssanna/leaderboard-link
fix: change leaderboard link
2020-01-10 07:17:27 +00:00
prssanna
2f892f5ec0 fix: change leaderboard link 2020-01-10 12:06:12 +05:30
Ben Knowles
ec53a57f4b fix: skip single doctype when rebuilding search index (#9187) 2020-01-10 00:34:03 +05:30
mergify[bot]
dcf7dd5540
Merge pull request #9215 from netchampfaris/new-import-date-format
fix: Guess date format correctly from column
2020-01-09 14:47:53 +00:00
mergify[bot]
1eac56a8f4
Merge pull request #9203 from hrwX/tags_caching
fix: use _user_tags instead of Tag Link
2020-01-09 14:35:00 +00:00
Faris Ansari
fe86aed1bc fix: Guess date format correctly from column 2020-01-09 15:13:22 +05:30
mergify[bot]
cf65112dbf
Merge pull request #8766 from gavindsouza/rename-doc-fix
fix(security): don't allow ignore_permissions in frappe.rename_doc
2020-01-09 08:13:23 +00:00
mergify[bot]
4d1733506a
Merge pull request #9212 from Alchez/dev-kanban-missing-data
fix: missing column data for Kanban board (develop)
2020-01-09 03:55:04 +00:00
mergify[bot]
3a9f8a1b8b
Merge pull request #9214 from ernestoruiz89/patch-8
fix: add translation function to string "Home" (develop)
2020-01-09 03:48:14 +00:00
Gavin D'souza
aa07305b90 Merge branch 'develop' of github.com:frappe/frappe into rename-doc-fix 2020-01-08 23:15:45 +05:30
Gavin D'souza
ee459d23f0 fix: pop ignore_permissions flag via whitelisted frappe.rename_doc 2020-01-08 23:12:56 +05:30
Ernesto Ruiz
57ea150cc7
fix: add translation function to string "Home" (develop)
fix: add translation function to string "Home" (develop)
2020-01-08 09:49:20 -06:00
mergify[bot]
94d0427efc
Merge pull request #9167 from prssanna/workflow-fix
fix: update docstatus of documents if docstatus value is changed in w…
2020-01-08 08:23:15 +00:00
mergify[bot]
1da20e6ebe
Merge pull request #9104 from gavindsouza/merge-docs-warn
fix(UX): Warn user about irreversible change while merging documents
2020-01-08 05:36:05 +00:00
Suraj Shetty
160d495743
style: Update docstring and fix formatting 2020-01-08 09:37:06 +05:30
Rohan Bansal
ade6794b3e fix: missing column datafor Kanban board 2020-01-07 17:32:18 +05:30
mergify[bot]
25a602642f
Merge pull request #9191 from nextchamp-saqib/query-report-fix
fix: load latest custom report instead of latest reference report
2020-01-07 08:51:25 +00:00
mergify[bot]
014fbccdba
Merge pull request #9205 from surajshetty3416/fix-report-save-error
fix(report): Save error
2020-01-07 08:49:56 +00:00
mergify[bot]
49b8de2b30
Merge pull request #9209 from Alchez/dev-webhook-clones
fix: allow multiple webhooks for identical doctype triggers (develop)
2020-01-07 08:14:33 +00:00
Gavin D'souza
ef54a4ec5d fix: frappe.confirm fixes 2020-01-07 13:05:47 +05:30
prssanna
3cce101c2d test: add test to check if document status is updated 2020-01-07 00:58:43 +05:30
Rohan Bansal
9acd30c306 fix: allow multiple webhooks for identical doctype triggers 2020-01-06 16:42:44 +05:30
mergify[bot]
e85c152d1c
Merge pull request #9206 from netchampfaris/web-search-scope
fix: Persist scope search in search page
2020-01-06 09:42:11 +00:00
Faris Ansari
1e0f56bac7 fix: Persist scope search in search page 2020-01-06 13:34:31 +05:30
mergify[bot]
6763ee7712
Merge pull request #9198 from gavindsouza/build-refact
refactor(build): updated variable names, namespaces + style fixes
2020-01-06 05:53:18 +00:00
Suraj Shetty
e9f0e2b4c7 fix: Save error 2020-01-06 10:39:09 +05:30
mergify[bot]
84c04baa4a
Merge pull request #9199 from Thunderbottom/email-server-ref-fix
fix(email): define email_server before condition
2020-01-05 18:58:50 +00:00
Himanshu Warekar
5754ef750b fix: use _user_tags instead of Tag Link 2020-01-05 22:09:20 +05:30
prssanna
04e7b7a96b fix: compare docs by state as key 2020-01-05 15:59:38 +05:30
sahil28297
5ef0c80ee4
Merge pull request #9201 from Thunderbottom/email-account-com-fix
fix(email): check if communication hasattr for attachment
2020-01-05 12:49:54 +05:30
Chinmay D. Pai
fb511b1dfd
fix(email): check if communication hasattr for attachment
fixes issue where previous communication has no attribute _attachments
before it fails, causing the following error:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 99, in execute_job
    method(**kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 724, in pull_from_email_account
    email_account.receive()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 295, in receive
    attachments = [d.file_name for d in communication._attachments]
AttributeError: 'Communication' object has no attribute '_attachments'

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-05 00:35:06 +05:30
Suraj Shetty
0e5e3497b1
fix: as_table msgprint (#9174)
* chore: improve readability

* fix: as_table msgprint

- fix as_table msgprint style and functionality
- Make table creation code more readable
- Make a text translatable

* style: Fix few deepsource issues

* style: Fix few deepsource issues

fix indentation

* fix: Incorrect assignment

* fix: Scrub URLs only for html format

* fix(typo): msg -> message

Co-authored-by: Raffael Meyer <meyer.raffael@gmail.com>
2020-01-04 21:05:02 +05:30
Suraj Shetty
18d8e65cca
fix: Make background jobs logging quieter if quite flag is pass… (#9200) 2020-01-04 19:12:59 +05:30
mergify[bot]
7171a2bb27
Merge pull request #9189 from Thunderbottom/email-encode-fix
fix(email): safe_encode to avoid smtp ascii encoding issue
2020-01-04 08:30:19 +00:00
Gavin D'souza
9dc172692d feat: added apps installed on site in console ns
chore: dropped deprecated commands
style: whitespacing and new line fixes
2020-01-04 13:44:37 +05:30
Chinmay D. Pai
ba9d6020e6
chore: check if email_server exists before handling bad emails
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-04 12:19:57 +05:30
Chinmay D. Pai
68659c5519
fix(email): define email_server before condition
fixes issue where email_server is unhandled in test

Traceback (most recent call last):
  File "/home/chnmy/workspace/frappe/benches/master-bench/apps/frappe/frappe/email/doctype/email_account/test_email_account.py", line 44, in test_unread_notification
    self.test_incoming()
  File "/home/chnmy/workspace/frappe/benches/master-bench/apps/frappe/frappe/email/doctype/email_account/test_email_account.py", line 35, in test_incoming
    email_account.receive(test_mails=test_mails)
  File "/home/chnmy/workspace/frappe/benches/master-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 291, in receive
    self.handle_bad_emails(email_server, uid, msg, frappe.get_traceback())
UnboundLocalError: local variable 'email_server' referenced before assignment

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-04 11:51:49 +05:30
Gavin D'souza
16c4c8f202 fix(install): bench jupyter 2020-01-04 11:09:33 +05:30
Gavin D'souza
3418e84466 refactor: updated variable name + style fixes 2020-01-04 10:53:53 +05:30
mergify[bot]
1549399c55
Merge pull request #9197 from hrwX/smtp-fx
fix(email): define _email_account before assignment
2020-01-04 04:21:53 +00:00
Himanshu Warekar
1b4ecdf792 fix: unreferenced variable 2020-01-04 09:26:23 +05:30
mergify[bot]
ceeea6180f
Merge pull request #9193 from surajshetty3416/disable-testing-by-default
chore: Disable testing for all sites by default
2020-01-03 18:17:59 +00:00
Chinmay D. Pai
250c44bed8
chore: pass email_body test
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-03 23:14:08 +05:30
Suraj Shetty
58825e89a8 feat: Disable testing for all sites by default
To avoid accidental test execution on production sites
2020-01-03 22:08:06 +05:30
thefalconx33
db8c19ee52 fix: load latest custom report instead of latest reference report 2020-01-03 15:08:59 +05:30
Chinmay D. Pai
ce2a0854db
fix(email): safe_encode to avoid smtp ascii encoding issue
fixes issue where smtplib fails to encode the mail as ascii

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1042, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 801, in reset_password
    user.reset_password(send_email=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 234, in reset_password
    self.password_reset_mail(link)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 253, in password_reset_mail
    "password_reset", {"link": link}, now=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 298, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 476, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 162, in send
    print_letterhead=print_letterhead)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 185, in add
    send_one(email_queue.name, now=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 475, in send_one
    raise e
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 415, in send_one
    smtpserver.sess.sendmail(email.sender, recipient.recipient, message)
  File "/usr/lib64/python3.6/smtplib.py", line 855, in sendmail
    msg = _fix_eols(msg).encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 335-339: ordinal not in range(128)

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-03 14:56:15 +05:30
Mohammed Safwat Abu Kwaik
4ac83a0cc8 fix: allow setting custom database schema in site_config (#9182)
* Update database.py

* Update frappe/database/postgres/database.py

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-01-02 22:20:04 +05:30
Gavin D'souza
9bf4221d45 fix: new_name variable undefined for document which cant be renamed 2020-01-02 13:02:46 +05:30
mergify[bot]
9a63bdf337
Merge pull request #9184 from gavindsouza/build-symlinks-fix
fix: bench build broken assets symlinks
2020-01-02 05:07:00 +00:00