Commit graph

151 commits

Author SHA1 Message Date
Shariq Ansari
57614e9a6e
fix: Give select permission to 'All' for workflow state (#15044) 2021-11-22 18:49:56 +05:30
leela
73843b0ab3 fix: include doc details in workflow action email subject 2021-09-28 20:50:31 +05:30
Suraj Shetty
1553ebdc99 fix: Link workflow document 2021-09-20 10:34:59 +05:30
Suraj Shetty
20c9af556f fix(Workflow Action): Pass doc to attach_print to avoid "Not Found"
- Printview used to go empty for new document due to "Not Found" error in printview because that new document has not been saved in the database while processing workflow action email.
2021-09-19 21:23:03 +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
ebc220db39 refactor(tests): 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 tests written under the doctype specific
tests
2021-08-19 19:50:48 +05:30
Ankush Menat
a85744be27
test: Python syntax validation "integration" test 2021-08-06 15:04:18 +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
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
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
79ccaa95f3 refactor: Moved raw queries to frappe orm 2021-07-21 23:29:50 +05:30
Mohammad Hasnain Mohsin Rajan
d25252b1e1
perf: Index workflow action fields (#13622)
* feat: add number format parameter in doc.get_formatted

* fix: add test cases

* fix: test_document test

* fix: test_document test fix

* fix: readding test for test_formatter

* perf: add indexes in workflow action

* chore: commit auto created file

* Revert "feat: add number format parameter in doc.get_formatted"

This reverts commit 6bdcae1201.

* Revert "fix: add test cases"

This reverts commit 4bafae6e38.

* Revert "fix: test_document test"

This reverts commit 3336915dae.

* Revert "fix: readding test for test_formatter"

This reverts commit f5e40141af.

* chore: remove unwanted changes

* chore: remove unwanted changes

Co-authored-by: Kenneth Sequeira <seq.kenneth@gmail.com>
2021-07-07 15:52:19 +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
Frappe Bot
d30596b15e refactor: Delete Qunit test files
Since it is no longer used
2021-04-27 21:37:15 +05:30
Suraj Shetty
7eb3445f57
fix: Pass option as string 2021-04-13 12:03:31 +05:30
Rushabh Mehta
3d22019b98 fix(minor): dynamically changing grid properties 2021-04-13 11:52:57 +05:30
Suraj Shetty
8bb00f72e6 fix: Add header to workflow action 2021-01-13 10:49:24 +05:30
Rushabh Mehta
c93368b242 fix(minor): merge develop 2021-01-08 14:35:55 +05:30
Rushabh Mehta
54cee87826 fix(minor): tests + routing 2020-12-24 14:48:40 +05:30
Suraj Shetty
41a3b8c284
fix(workflow): Update modified timestamp (#12093)
To sync changes in https://github.com/frappe/frappe/pull/11787 after migrate
2020-12-17 20:44:23 +05:30
conncampbell
7a773d2461 feat: Workflow transition condition allows datetime functions 2020-12-14 20:07:39 -07:00
Rushabh Mehta
75fe8a615a feat(app): move /desk to /app 2020-11-11 16:31:47 +05:30
Suraj Shetty
b5d9c1e816 Merge branch 'develop' of https://github.com/frappe/frappe into rebrand-ui 2020-11-06 10:42:37 +05:30
UrvashiKishnani
fc180b72d4
fix: space missing in description 2020-10-27 07:48:52 +04:00
Rushabh Mehta
373403c97e fix(minor): test_workflow.py 2020-10-26 13:44:32 +05:30
Rushabh Mehta
7f1b35b0de fix(tests): test_workflow.py, full cleanup 2020-10-26 12:01:39 +05:30
Shivam Mishra
9e39a7464a Merge branch 'develop' of https://github.com/frappe/frappe into rebrand-ui 2020-10-21 11:55:13 +05:30
Suraj Shetty
198e255710
fix: Replace invalid translations
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
2020-10-12 16:04:27 +05:30
Suraj Shetty
89f97257dd fix: Replace incorrect translation syntax usages 2020-10-12 12:26:38 +05:30
Suraj Shetty
a147e45d0c fix: Replace incorrect translation syntax usages 2020-10-11 22:08:22 +05:30
Suraj Shetty
77b4880893 refactor: Remove darkgrey class
- Replace darkgray with gray
2020-08-27 18:54:24 +05:30
prssanna
b33471c35a fix: replace darkgrey with darkgray 2020-08-27 15:44:37 +05:30
Rushabh Mehta
6535751e1d debug(tests): test_workflow 2020-08-17 09:56:45 +05:30
Rushabh Mehta
7ee1fe3caf debug: test_workflow 2020-08-17 09:41:54 +05:30
Rushabh Mehta
2af7c7dc33 debug: test_workflow 2020-08-17 09:41:54 +05:30
Rushabh Mehta
f6bc6786ac debug: test_workflow 2020-08-17 09:41:54 +05:30
Rushabh Mehta
b09beb9147 fix(tests): cleanup 2020-08-17 09:41:54 +05:30
Rushabh Mehta
26a9230fdd fix(tests): more debugging 2020-08-17 09:41:54 +05:30
Rushabh Mehta
72e266f908 fix(tests): cleanup workflow test and commits 2020-08-17 09:41:54 +05:30
Suraj Shetty
e27c910f66 fix: Make users while setting up class 2020-08-12 00:02:39 +05:30
Suraj Shetty
4f37f9a452
test: Try committing after Role creation 2020-08-06 09:33:39 +05:30
Suraj Shetty
86a9ceb29b
test: Clear role cache 2020-08-04 11:16:18 +05:30
Suraj Shetty
744a9413fd fix: Use common function to get_roles 2020-08-04 10:36:16 +05:30
Suraj Shetty
6e9169a0aa test: Remove debug statements & clear-cache 2020-08-04 10:12:41 +05:30
Suraj Shetty
89dfd82134 chore: Add debug statement
- Uncomment innocent test
2020-08-04 00:36:42 +05:30
Suraj Shetty
88b68c6cf5 chore: Remove unwanted changes 2020-08-04 00:11:48 +05:30
Suraj Shetty
00a8edf910 test: Make User records before executing test 2020-08-03 23:53:01 +05:30
Suraj Shetty
f0729ff6a8 test: Reset workflow doc 2020-08-03 12:00:44 +05:30