Suraj Shetty
a7fb1816aa
refactor: Remove unused and redundant code
2021-08-19 15:27:25 +05:30
Saqib Ansari
e742719c56
Merge branch 'develop' of https://github.com/frappe/frappe into frappe-scanner
2021-08-10 19:46:05 +05:30
Saqib Ansari
51e45de747
feat: Barcode option for data fields
2021-08-09 17:55:47 +05:30
Leela vadlamudi
40362c0ac5
Merge pull request #13861 from leela/amended-doc-naming
...
refactor: set amended docname to original docname
2021-08-09 17:22:55 +05:30
leela
80d111baf2
refactor: set amended docname to original docname
...
Currently, whenever a document is amended it's name is set
to name-X(X is a counter) when amended again and so on. In this PR,
we have postfixed all cancelled document names with '-CAN' and new
cancelled documents gets a name as original_name-CANC-X.
so that amended docs can use the original name instead of name-X.
2021-08-09 14:59:07 +05:30
Suraj Shetty
a1a18a917e
Merge pull request #13883 from frappe/db-set-no-reload-doc-before-save
...
fix: do not reset doc_before_save on db_set
2021-08-09 14:34:01 +05:30
Saif
7400d7ca37
fix: do not reset doc_before_save on db_set
2021-08-07 13:09:28 +05:00
Ankush Menat
1ffb0b1d7c
fix: validate code fields of children too
2021-08-06 12:52:12 +05:30
Ankush
257723cb0a
feat: PythonExpression and Python option with syntax validation for Code field types ( #13707 )
...
* feat: `PythonExpression` and `Python` options for `Code` fields
* fix: check python expressions in assignment rule
* fix: replace server script syntax validation
* fix: validate condition in workflow transition
Add PythonExpression in Options.
2021-08-06 04:10:09 +00:00
mergify[bot]
e8770a6a6e
Merge pull request #13823 from deepeshgarg007/custom_internal_links
...
feat: Internal link support in custom document links
2021-08-05 15:35:07 +00:00
Deepesh Garg
4c400bd6c9
test: Custom internal links addition
2021-08-04 17:10:33 +05:30
Deepesh Garg
2197e82107
Merge branch 'develop' of https://github.com/frappe/frappe into custom_internal_links
2021-08-03 21:23:28 +05:30
Shariq Ansari
fd99f4bb61
Merge branch 'frappe:develop' into icon-picker
2021-08-03 12:47:44 +05:30
Deepesh Garg
252850be98
fix: Internal link support for custom document links
2021-07-31 15:46:54 +05:30
saxenabhishek
7671e78487
style: minor fixes and improvements
2021-07-30 11:29:41 +05:30
saxenabhishek
45d1afe739
refactor: move rename, change_column_type, DESC to db
2021-07-30 11:00:35 +05:30
saxenabhishek
43b0d31cf8
refactor: qb in delete_fields
2021-07-30 11:00:34 +05:30
Leela vadlamudi
32a266927f
Merge pull request #13800 from leela/revert-amend-doc-feat
...
Revert "refactor: set amended docname to original docname"
2021-07-30 06:45:59 +05:30
Gavin D'souza
01d275f667
style: Format code for better readability
...
* Remove trailing whitespaces
* Format code to fit module conventions
* Add appropriate new lines between imports, classes, fn defs, etc
* Added comments, docstrings & module headers
2021-07-28 18:55:27 +05:30
leela
b719e1481d
Revert "refactor: set amended docname to original docname"
...
This reverts commit d459847ae3 .
2021-07-28 17:00:12 +05:30
Gavin D'souza
a02848849d
Merge branch 'develop' of github.com:frappe/frappe into at-queries
2021-07-28 16:00:46 +05:30
Aradhya-Tripathi
84ff1d0af9
style: removed frappe.db.sql comments
2021-07-28 13:48:01 +05:30
Aradhya-Tripathi
538ef2168b
fix: removed wrong queries
2021-07-24 22:58:12 +05:30
Aradhya-Tripathi
2f3371d873
refactor: Moved raw queries to frappe orm
2021-07-23 23:14:24 +05:30
Aradhya-Tripathi
1204ae8ce4
fix: fixed spacing and ui tests
2021-07-23 10:45:54 +05:30
Aradhya-Tripathi
8feb430371
refactor: Moved raw queries to frappe orm
2021-07-21 23:32:18 +05:30
Aradhya-Tripathi
eb7e95ae26
refactor: using frappe orm
2021-07-21 19:19:06 +05:30
leela
d459847ae3
refactor: set amended docname to original docname
...
Currently, whenever a document is amended it's name is set
to name-X(X is a counter) when amended again and so on. In this PR,
we have changed all cancelled doc patterns to name-CAN-X,
so that amended docs can use the original name instead of name-X.
2021-07-21 10:51:32 +05:30
Shariq Ansari
e3e26dd8d6
Merge branch 'develop' into icon-picker
2021-07-14 13:50:39 +05:30
shariquerik
b6c71251a3
feat: Icon Picker
2021-07-10 21:58:57 +05:30
leela
f31d01a2a6
Revert "Merge pull request #13244 from prssanna/amended-doc-naming"
...
This reverts commit 58b95662c2 , reversing
changes made to c553b7e23a .
2021-07-02 17:43:16 +05:30
Leela vadlamudi
4d2a686960
Merge pull request #13500 from sunnyakaxd/develop
...
fix: Remove meta from pickling overhead
2021-07-02 13:36:48 +05:30
leela
3552132789
fix: remove not needed six import
2021-07-02 11:25:20 +05:30
Leela vadlamudi
4800ee8725
Merge branch 'develop' into amended-doc-naming
2021-07-02 10:47:47 +05:30
Saqib Ansari
17b3c701ed
feat: standard form tours
2021-06-19 13:49:51 +05:30
Himanshu Mishra
1bf90d18ee
perf-fix: Remove meta from pickling overhead
2021-06-15 17:17:08 +05:30
Gavin D'souza
ffb2aceb43
fix: Logical bug in DatabaseQuery.extract_tables
...
Introduced via 888aa8ad84
2021-06-15 12:50:29 +05:30
Gavin D'souza
1b6c41cbfc
fix: Don't re-define pluck bug
...
Introduced via 974bf463df
2021-06-11 19:44:22 +05:30
Gavin D'souza
f92c5d9898
refactor: Unnecessary/illogical check
...
because cint(False) gives 0
2021-06-11 19:34:34 +05:30
Gavin D'souza
888aa8ad84
refactor(minor): DatabaseQuery.extract_tables
2021-06-11 19:34:24 +05:30
Gavin D'souza
ee75fb38cc
style: Restructured if blocks in db_query
2021-06-11 19:34:16 +05:30
Gavin D'souza
974bf463df
refactor: Simplify string representations
...
* Simplify existing %s, .format representations to f-string
* Simplify logic
* Remove redundant tokens
2021-06-11 19:34:00 +05:30
Gavin D'souza
c489846547
Merge branch 'develop' into unnecessary_comprehensions
2021-06-11 19:30:23 +05:30
Brian Pond
d8113698d1
bug: db_query.py
...
The object 'meta' does not always have the attribute 'is_submittable.'
This extra syntax checks for existence first.
2021-06-07 16:15:59 -07:00
Gavin D'souza
674c8cf77b
chore: Use get_absolute_url to doc.get_url
...
Avoid re-implementation to reduce interfaces for possible bugs/fixes
2021-06-07 12:09:22 +05:30
Gavin D'souza
6fb14120d9
fix: Remove trailing whitespace in translatable str
...
Simplify conditional block and str appending
2021-05-27 13:47:55 +05:30
Gavin D'souza
e2ee75e3cb
fix: Translate strings passed in frappe.throw
...
* Remove trailing whitespaces in translatable strings
* Sort imports appropriately
2021-05-27 13:47:21 +05:30
Gavin D'souza
eca30667d2
chore: Drop FileNotFoundError handling for PY2
2021-05-26 22:21:23 +05:30
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
...
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Akshay Kumar Tripathi
b0f1bbc378
fix: corrected the function get_url ( #13330 )
...
* Removed /Form from the function get_url
As per issue #12820 , I think /Form was causing a problem so I removed it. Now the get_url returns URL in the format: "app/doctype/name".
* fix: Change to f-strings
* Implement slug on get_url
* Removed slug for names
2021-05-26 05:07:50 +00:00