Gavin D'souza
ab7dee13cf
chore: Added return type for DatabaseQuery.execute
2021-09-06 19:44:25 +05:30
Rushabh Mehta
20dea90670
feat(minor): Packages! also cleanup of DocField and other minor fixes
2021-09-05 22:01:55 +05:30
Gavin D'souza
3446026555
chore: Update header: license.txt => LICENSE
...
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
7e2e8c87ff
Merge branch 'develop' into get-single-value-oof
2021-08-30 13:49:35 +05:30
Gavin D'souza
b8c51b13e2
fix: Revert to using cast_fieldtype in BaseDocument.cast
...
* reference: revert Breaking Change -
https://github.com/frappe/frappe/pull/13989#discussion_r695624003
* Show deprecation warning unless `show_warning` is unset
2021-08-30 13:45:30 +05:30
Suraj Shetty
30a09490b5
Merge branch 'develop' into get-frmt
2021-08-27 11:12:27 +05:30
Suraj Shetty
743e361449
Merge branch 'develop' into core-test-coverage-1
2021-08-23 11:02:50 +05:30
Gavin D'souza
ed6533f737
fix: Use cast in favour of cast_fieldtype
...
Use newly introduced casting util for Python-Frappe types mapping
2021-08-20 12:37:15 +05:30
Gavin D'souza
32c6cf1c44
refactor(misc): frappe.db.delete > frappe.db.sql
...
Use frappe.db.delete wherever possible. Get rid of all the frappe.db.sql ;)
This commit focuses on the pending modules that had relatively easier
DELETE statements.
2021-08-19 19:53:16 +05:30
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
Suraj Shetty
81cada8b6e
Merge branch 'develop' into get-frmt
2021-08-04 14:20:21 +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