Commit graph

74 commits

Author SHA1 Message Date
Rucha Mahabal
1a8e8437a2 fix: Breadcrumb and Desk Page for Video DocType 2020-04-20 20:04:08 +05:30
Shivam Mishra
c67ecbc6ba feat: update desk pages 2020-04-01 11:25:15 +05:30
Suraj Shetty
0088f27f71
Merge branch 'develop' into setup-wizard-dev 2020-03-12 18:29:31 +05:30
Shivam Mishra
6461a01fc5 feat: update doctype 2020-03-12 16:33:37 +05:30
Shivam Mishra
d3b0df0d40 feat: set is_standard 2020-03-12 11:31:00 +05:30
Shivam Mishra
af475a7d5d fix (cleanup): remove incomplete dependencies data 2020-03-05 11:31:19 +05:30
Shivam Mishra
1830a00a7f feat: added tools page 2020-03-02 18:49:57 +05:30
Shivam Mishra
8627cce88e feat: added in_setup_wizard flag 2020-02-19 12:45:04 +05:30
Suraj Shetty
8d496c7055
fix: Invalid syntax 2020-02-03 16:03:13 +05:30
Suraj Shetty
7a4ee06acf
fix: Translatable string for error 2020-02-03 15:58:26 +05:30
Rucha Mahabal
70bf6f3bc8 fix: change mutliline error message to single line for translations 2020-02-03 15:39:32 +05:30
Rucha Mahabal
d1942838d1 fix: handle PermissionError for auto repeat email notifications 2020-02-03 14:51:29 +05:30
Rucha Mahabal
dc13938667 fix: auto repeat test 2020-02-03 13:00:28 +05:30
Rucha Mahabal
4dc2fb47b9
fix: set initial auto repeat day count to max (#9387) 2020-01-31 14:40:13 +05:30
Suraj Shetty
dee4a7336c fix(translations): Incorrect syntax 2020-01-29 15:22:35 +05:30
Rucha Mahabal
0778c337ae fix(Auto Repeat): derive next date from start date and offset (#9177) 2019-12-31 18:51:09 +05:30
Suraj Shetty
7107409531
Merge version-12-hotfix to develop (#9095)
* fix: REST API utf-8 decoding on creates/updates

Creating or updating a document via the REST API would generate an error of:

`TypeError: the JSON object must be str, not 'bytes'`

Because get_data() returns bytes which must be explicitly converted to a string before parsing as JSON.

Defect introduced by efe94886a and a71a92341e

* fix(patch): Handle failures in while making Prepared Report attachments private

* case insensitive search for postgres

* convert operator to lowercase while checking

* fix: Pass prepared_report_name as filter if exists

* fix: Add input to multiselect_list control

* fix(reportview): convert to unicode conditionally

fixes TypeError: decoding str is not supported

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 57, in application
    response = 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 1038, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 511, in wrapper_fn
    retval = fn(*args, **get_newargs(fn, kwargs))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/reportview.py", line 177, in export_query
    frappe.response['result'] = text_type(f.read(), 'utf-8')
TypeError: decoding str is not supported

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: remove useless encode

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Allow Rename in Website Route Meta

* fix: Add Visit Web Page button in form

* fix: next schedule date should be on or after current date

* test: next schedule date

* fix: Change modified by

* fix: do not allow bulk update for core, single doctypes and doctypes from inactive domains

* fix: switch to safe_decode

* test: Fix list_view test by removing clear-cache code (#8941)

* test: Fix listview test by waiting for clear-cache

* test: Move wait to list_view.js

* test: Try removing clear-cache

* fix(integration): Social Login Key (#8940)

add missing field

* fix: don't set filter for restrict_to_domain in Bulk Update Tool

* fix: query report chart options

* fix: Default and company address fixes

* fix: revert changes made to get_default_address function

* fix: Remove changes in notifications

* fix: list view group by filter ambiguous column name

* fix: changelog modal ui

* test: list view child table filter with created by filter

* fix: not able to download XML file

* fix(security): invalidate reset_password_key on password reset

currently there is no way to invalidate reset_password_key on updating
password through the user settings. so whenever the user sets a new
password we'll invalidate the reset_password_key, so that existing links
to reset user passwords cannot be used.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Pin faker version to avoid test failures

* perf: optimise globals search

* fix: add index on child table

* fix: do not pop item from list

* fix: dont add index for global search doctype

* fix: rename function to set

* tests: fix results being return

* fix: codacy fixes

* fix: Code cleanup

- Pass values so that db cursor can handle escaping

* fix: Convert list to tuple

* style: added semi-colon

* fix: add default role on sign up via SSO

* fix(autocomplete): parse options (#8999)

* fix(autocomplete): parse options

* fix: add ignore validation flag

* fix: minor change

* fix(email): try to encode email part to utf-8 (#8964)

fixes issues with class objects other than str

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 281, in receive
    communication = self.insert_communication(msg, args=args)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 338, in insert_communication
    email = Email(raw)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 372, in __init__
    self.parse()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 393, in parse
    self.process_part(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 445, in process_part
    self.text_content += self.get_payload(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 489, in get_payload
    charset = self.get_charset(part)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py", line 484, in get_charset
    charset = chardet.detect(frappe.safe_encode(part))['encoding']
  File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/chardet/__init__.py", line 34, in detect
    '{0}'.format(type(byte_str)))
TypeError: Expected object of type bytes or bytearray, got: <class 'email.message.Message'>

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: Ambiguous column error when going to next doc (#9005)

fix: Ambiguous column error when going to next doc

Co-authored-by: Prssanna Desai <prssud@gmail.com>

* fix(patch): auto commit on more than 10000 writes

fixes issue where patch fails with:

frappe.exceptions.ValidationError: Too many writes in one request. Please send smaller requests

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* revert: changes in currency formatting  (#9003)

* fix: reverted currency formatting

* ux: added description for currency's number format
* It doesn't have any effect on how the currency is formatted.

* fix: revert json changes in currency master

* fix(filters): set default id to empty string instead of 0 (#9014)

fixes issue where "undefined" value gets set to 0 in postgres, which causes ProgrammingError since the expected value is of type str and not int

* revert: changes in currency formatting  (#9003)

* fix: reverted currency formatting

* ux: added description for currency's number format
* It doesn't have any effect on how the currency is formatted.

* fix: revert json changes in currency master

* feat: add doc for email linking

* fix: missing commits while reverting currency changes

* fix(file): Public-private issue (#9032)

* fix: Pass file's is_private for doc creation

* fix: File is_private and file_url mismatch

* fix: Check if file_url exists

* fix: Validation check

* fix(postgres): Convert is_private to int

* fix: File path for content_hash

* fix: Show default currency as a fallback for currency fieldtype (#8992)

* fix: Show default currency as a fallback for currency fieldtype

* test: Add a test for currency formatting

* fix: Add a patch to fix all user's home settings (#9040)

* fix: Add a patch to fix all user's home settings

* fix: Remove limit

* fix: Allow field of submitted doc to edit if field has allow_on_submit enabled

* test: Add test to check if field is editable

* fix: Typo

* test: Add assert statement for value

* test: Clear cache after creating doctype

* fix: Codacy

* fix checkbox behavior in rtl view when clicking on label to check (#8898)

* fix checkbox behavior in rtl view when clicking on label to check

* fix: Undo changes in desk.css

* fix: Empty row validation

* style: Fix code formatting

* fix: Terminate regex

* fix: don't validate email for standard filters

* fix: before setting user default value, if fieldtype is Link check if doc exists

* Revert "fix: user default value for Link fields"

* before setting user default value, if fieldtype is Link check if doc exists

* fix: Remove Attachment on remove

* fix: minor changes

* style: fix Codacy issue

There should be no space before ','. (comma-spacing)

* fix: rfc5322 compliance for python3 (#9056)

* start of tests

* rfc compliant emails for frappe.

* fix for deepsource

* fix length of strings.

* fix bug that I'm not sure where it came from?

* codacy and deepsource issues trying to keep them happy

* take a punt in the dark

* fix: use SMTPUTF8 instead of SMTP and other minor fixes

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* fix: patch home_settings_for_all_users

* style: Fix Codacy

* fix: KeyError: 'hidden_modules'

* fix: TypeError in home_settings patch

Convert set to list

* refactor: override style for changelog modal

* Merge V12-pre-release to version-12-hotfix (#9094)

Merge V12-pre-release to version-12-hotfix

Co-authored-by: null <rohitw1991@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
Co-authored-by: Vishal Dhayagude <vishaldhayagude09@gmail.com>
Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
Co-authored-by: null <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: null <sahilkhan28297@gmail.com>

* Revert queue.py

Co-authored-by: Ben Knowles <benknowles@users.noreply.github.com>
Co-authored-by: Aditya Hase <aditya@adityahase.com>
Co-authored-by: Shridhar Patil <shridharpatil2792@gmail.com>
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
Co-authored-by: Himanshu <himanshuwarekar@yahoo.com>
Co-authored-by: Rohan <Alchez@users.noreply.github.com>
Co-authored-by: Mangesh-Khairnar <mkhairnar10@gmail.com>
Co-authored-by: Prssanna Desai <prssud@gmail.com>
Co-authored-by: Saqib <thefalconx33@gmail.com>
Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Ammar Hararah <ammarkharara@gmail.com>
Co-authored-by: Vishal Dhayagude <vishdha@users.noreply.github.com>
Co-authored-by: sahil28297 <37302950+sahil28297@users.noreply.github.com>
2019-12-23 12:24:52 +05:30
prssanna
1555ef360b fix: reopen all todos if close condition is not satisfed 2019-12-10 16:09:39 +05:30
prssanna
aa8f0d5c41 fix: reopen todo only when assignment rule condition is satisfied 2019-12-10 14:39:15 +05:30
Rucha Mahabal
f4b68b4c25 test: next schedule date 2019-11-29 18:27:42 +05:30
Rucha Mahabal
ace5ddad87 fix: next schedule date should be on or after current date 2019-11-29 18:27:18 +05:30
Rucha Mahabal
6d9d110a6a fix: ignore validations for frappe.flags.in_patch 2019-10-30 19:49:59 +05:30
Himanshu
09b8750d47
Update frappe/automation/doctype/assignment_rule/assignment_rule.py
Co-Authored-By: Shivam Mishra <scmmishra@users.noreply.github.com>
2019-10-02 23:53:13 +05:30
Himanshu Warekar
87b6b71f44 test: new test cases 2019-09-27 18:55:00 +05:30
Himanshu Warekar
9c432ccb74 fix:check if days are repeated 2019-09-26 09:02:29 +05:30
Himanshu Warekar
71ec11e3ee chore: rename fieldname 2019-09-21 17:42:38 +05:30
Himanshu Warekar
19ff2489f1 feat: assignment rule days 2019-09-21 17:25:56 +05:30
Shivam Mishra
755721d01b fix: ignore permission for reopening assignments (#8432) 2019-09-16 21:50:40 +05:30
Shivam Mishra
124a218bbf fix: added null check for conditions 2019-09-16 13:24:16 +05:30
Anurag Mishra
a250e99377
refactor: assignment rule and todo (#8420)
* refactor: assignment rule and todo

* fix: updated query and enabled background jobs

* refactor: use ORM instead of SQL

* style: remove print statement

* refactor: minor change in tests

* style: updated query for getting todo
2019-09-13 17:13:05 +05:30
Suraj Shetty
99b3651a06 fix: Use .get() to avoid attribute error (#8379) 2019-09-09 10:31:30 +05:30
Rucha Mahabal
adf662a3f8 fix: codacy fix 2019-08-28 22:05:35 +05:30
Rucha Mahabal
25874573e1 fix: email notification in auto repeat 2019-08-28 20:29:36 +05:30
Rucha Mahabal
e0bb24bcd4 fix: auto repeat date and unlink id 2019-08-19 13:47:48 +05:30
Rucha Mahabal
47ed1f88ad fix: date fix 2019-07-26 18:00:05 +05:30
Rucha Mahabal
f03bfb0fc5 fix: end date for auto repeat 2019-07-26 12:44:32 +05:30
Rucha Mahabal
41322e871d fix: added default parameters in make_auto_repeat 2019-07-26 12:01:10 +05:30
Faris Ansari
7193e01ed7 fix: Cleanup notify on error 2019-07-17 12:40:22 +05:30
Faris Ansari
26bb7e4237 fix: Form UX
- Fetch contacts
- Message to enable Auto Repeat
2019-07-17 11:55:45 +05:30
Faris Ansari
b11cda2fff fix: Remove naming_series field, use autoname 2019-07-17 11:54:46 +05:30
Rucha Mahabal
8d7f3fde45 fix: testcases fixes 2019-07-15 18:08:11 +05:30
Rucha Mahabal
153a6068e6 testcases fixes 2019-07-15 17:25:02 +05:30
Rucha Mahabal
91ef76bf24 fix: codacy fixes 2019-07-15 15:50:59 +05:30
Rucha Mahabal
02ec1acecc fix: codacy fixes 2019-07-15 15:30:40 +05:30
Rucha Mahabal
98b6602726 fix: testcases and code structure 2019-07-15 15:13:28 +05:30
Rucha Mahabal
d11249fe24 fix: next schedule date logic 2019-07-12 15:19:20 +05:30
Rucha Mahabal
8284117da6 fix: next schedule date logic 2019-07-12 15:17:44 +05:30
Rucha Mahabal
8c518f6dd2 codacy fixes 2019-07-10 14:06:40 +05:30
Rucha Mahabal
20cc919002 moved Auto Repeat doctype from Desk to Automation module 2019-07-10 13:57:15 +05:30
Aditya Hase
8705ddfb0a fix(assignment-rule): Notify user on assignment (#7732) 2019-06-20 11:24:03 +05:30