Commit graph

32562 commits

Author SHA1 Message Date
Leela vadlamudi
4743a04a8e
Merge pull request #13121 from frappe/repr_doctype
feat(DX): Add simple __repr__ for DocTypes
2021-05-07 10:12:56 +05:30
Suraj Shetty
4fb545fb8c fix: Quill Table border color 2021-05-07 09:30:59 +05:30
Suraj Shetty
5fabd51a03 fix: Summary Item width 2021-05-07 09:30:31 +05:30
Leela vadlamudi
5e9c176927
Merge pull request #13131 from leela/use-getfullargspec
refactor: replace inspect.getargspec with getfullargspec
2021-05-07 08:03:51 +05:30
Leela vadlamudi
d1a2ebb13e
Merge pull request #13122 from leela/sending-email-refactoring-1
refactor: Send mail functionality
2021-05-07 07:46:48 +05:30
leela
72ca7e9753 refactor: remove six dependency 2021-05-07 07:42:04 +05:30
leela
6c85c36630 refactor: Remove deprecated inspect.getargspec
Replace deprecated inspect.getargspec with inspect.getfullargspec.
* inspect.getargspec does not support kw only args aswell as type
annotations.
* replace with inspect.getfullargspec, that supports kw only args.
2021-05-07 07:42:01 +05:30
mergify[bot]
525fb8068b
Merge pull request #13147 from ankush/assertEquals_deprecation
chore: replace assertEquals with alias assertEqual
2021-05-07 01:23:09 +00:00
Ankush Menat
7933b9c825
chore: replace assertNotEquals with assertNotEqual 2021-05-06 21:23:04 +05:30
Ankush Menat
a077466b1e
chore: replace assertEquals with alias assertEqual
`assertEquals` has been deprecated, while not fully removed it will
still keep giving warnings in tests / CI.

ref: https://docs.python.org/3/library/unittest.html#deprecated-aliases
2021-05-06 21:16:22 +05:30
Ankush Menat
4210299ab4
test: add test for creating new app 2021-05-06 19:26:14 +05:30
Ankush Menat
c48a8e933f
fix: remove six.moves.input and use builtin.input
reason: py2 support no longer required and six makes mocking/testing
complicated.
2021-05-06 19:26:06 +05:30
Nabin Hait
e22288ec8d fix: Fixed merge conflict 2021-05-06 19:16:55 +05:30
Nabin Hait
10c8e3430c Merge branch 'version-13-pre-release' into version-13 2021-05-06 19:15:43 +05:30
Nabin Hait
abc49ef960 bumped to version 13.2.1 2021-05-06 19:35:43 +05:50
Suraj Shetty
5ccccf104d chore: Track before test time 2021-05-06 17:39:19 +05:30
shariquerik
f46c3b59a6 fix: sider fix 2021-05-06 17:26:54 +05:30
shariquerik
47d1f3d50a test: uncomment 2021-05-06 17:24:12 +05:30
shariquerik
bc08459ca7 test: Test case for revert series 2021-05-06 17:22:59 +05:30
mergify[bot]
09bbc44e12
Merge pull request #13140 from ankush/hooks_format
fix: hook format for user_data_fields
2021-05-06 11:38:50 +00:00
Nabin Hait
a280547c22
perf: Performance enhancement on creation of custom fields from setup wizard (#13139) 2021-05-06 17:05:55 +05:30
Gavin D'souza
87ed7796de fix: Use older logic to set module_name and custom vars 2021-05-06 16:56:50 +05:30
Gavin D'souza
877f9d08df fix: Use fallback values if doctype values unset 2021-05-06 16:56:50 +05:30
Gavin D'souza
843c544117 refactor: Rename function and add docstring
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-05-06 16:56:50 +05:30
Gavin D'souza
05712abc60 fix: Check for db value if cache doesn't exist
in get_controller, if cached value doesn't exist for a DocType in the
frappe.db.value_cache, then query the db as fallback before the final
fallback of assuming module as Core and non custom
2021-05-06 16:56:49 +05:30
Gavin D'souza
a3b79081d6 fix: Use Document in case get_controller raises import errors 2021-05-06 16:56:49 +05:30
Gavin D'souza
ce4253c631 fix: Ignore 'special' DocTypes to avoid breaking changes
eg:

Fieldname 'Delete' conflicting with a controller method of the name delete in Custom DocPerm
Fieldname 'Delete' conflicting with a controller method of the name delete in DocPerm
Fieldname 'Precision' conflicting with a controller method of the name precision in Custom Field
Fieldname 'Precision' conflicting with a controller method of the name precision in Customize Form Field
Fieldname 'Precision' conflicting with a controller method of the name precision in DocField
2021-05-06 16:56:49 +05:30
Gavin D'souza
78e1297392 chore: Drop dead file 2021-05-06 16:56:49 +05:30
Gavin D'souza
c652c7b7f5 feat: Validate field name conflicts in DocType.validate
# Conflicts:
#	frappe/core/doctype/doctype/doctype.py
2021-05-06 16:56:49 +05:30
Gavin D'souza
255a959a3e chore: Rename function to validate conflicting methods and properties 2021-05-06 16:56:49 +05:30
Gavin D'souza
9aa2f366dd fix: Don't execute dynamic properties to check if conflicts exist 2021-05-06 16:56:49 +05:30
gavin
e9d6378e5c
Merge pull request #13129 from gavindsouza/misc-fixes-py3
fix: Misc fixes
2021-05-06 16:54:24 +05:30
Ankush Menat
2548bca187
fix: hook format for user_data_fields 2021-05-06 16:48:59 +05:30
shariquerik
483cd85eba fix: Revert naming for custom naming series 2021-05-06 16:44:18 +05:30
Suraj Shetty
3e7b48438c chore: Debug 2021-05-06 15:12:08 +05:30
mergify[bot]
585b123bd7
Merge pull request #13134 from ankush/hooks_template_fixes
fix: missing comma and uncommented code in hooks.py template
2021-05-06 09:32:55 +00:00
Suraj Shetty
b64ca5eb2f test: Fix dependency 2021-05-06 14:52:51 +05:30
Suraj Shetty
ba88b2cdb9 fix: Handle exception 2021-05-06 14:52:32 +05:30
Suraj Shetty
aab2aca089 ci: Enable coveralls 2021-05-06 14:52:00 +05:30
Suraj Shetty
c1ea512b3a feat: Indicate slow tests 2021-05-06 14:51:27 +05:30
Suraj Shetty
aaadb71e79 perf: Make saving of System Settings faster 2021-05-06 14:49:40 +05:30
Suraj Shetty
8875848355 perf(test): Reduce token expiry wait time for test
- Also, reduce lock_interval
2021-05-06 14:49:19 +05:30
Ankush Menat
9e39249059
fix: comment user_data_fields and fix structure 2021-05-06 14:01:56 +05:30
Ankush Menat
aba315daf8
fix: missing comma in hooks template 2021-05-06 14:01:39 +05:30
Suraj Shetty
8d491348a3
Merge branch 'develop' into repr_doctype 2021-05-06 12:45:01 +05:30
Faten Elhariry
e4744724a0
fix: RTL styling (#13107)
Co-authored-by: unknown <Administrator@DESKTOP-TKAA1PU.mans.edu.eg>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-05-06 11:37:54 +05:30
leela
59bfc12da6 refactor: Cleaned Email Queue sendmail functionality
* Sending mail works independently
* You can send a mail by calling Queue_doc.send()
* Used context manager to track exceptions while sending mails
2021-05-06 10:08:50 +05:30
leela
5de39e468e refactor: Add Email Account link into Email Queue 2021-05-06 10:08:50 +05:30
Ankush Menat
adbf267212
feat(DX): Add __repr__ and __str__ for DocTypes
- Show doctype and name
- if docstatus != 0, show docstatus
- if child doctype, show parent
2021-05-05 19:45:33 +05:30
Gavin D'souza
0ad122421d fix: Don't hide warnings unnecessarily 2021-05-05 18:51:51 +05:30