Commit graph

164 commits

Author SHA1 Message Date
Rushabh Mehta
800b9c559a [minor] added create_custom_fields as a utility function 2017-09-04 14:40:40 +05:30
mbauskar
3913bc542f Merge branch 'master' into staging 2017-08-21 08:54:38 +05:30
mbauskar
2631edd4f3 [hotfix] doctype field in custom script should be mandatory 2017-08-18 11:31:51 +05:30
mbauskar
a5d3c90e97 resolved merge conflicts 2017-08-08 12:52:50 +05:30
Makarand Bauskar
bb750d5739 [test] test_customize_form.js (#3875) 2017-08-08 12:23:32 +05:30
Rushabh Mehta
805633860f [test] test_customize_form.js 2017-08-03 22:22:03 +05:30
Rushabh Mehta
7f4bdc45bc [test] test_customize_form.js 2017-08-03 18:37:35 +05:30
Rushabh Mehta
8fdc823e7e [test] test_customize_form.js 2017-08-03 18:24:27 +05:30
Rushabh Mehta
6dde90571d [test] test_customize_form.js 2017-08-03 17:01:41 +05:30
Rushabh Mehta
44a0cc0940 [test] test_customize_form.js 2017-08-03 12:19:36 +05:30
Makarand Bauskar
09a3a77ec2 [revert] Print traceback on ImportError in get_app_commands (#3846)
* [revert] Print traceback on ImportError in get_app_commands

* [tests] fixed the customize form test cases
2017-08-03 11:30:06 +05:30
Rushabh Mehta
eb2c725dba [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200 (#3842)
* [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200

* [fix] stop action if trigger fails for validate and before_, fixes frappe/erpnext#10200

* [fix] codacy

* [fix] add test to tests.txt
2017-08-02 17:53:28 +05:30
Manas Solanki
96297e1ff4 restrict user for changing the option property except few fieldtype (#3666)
* restrict user for changing the option property

* test case modification
2017-07-13 13:59:56 +05:30
Faris Ansari
13a7b60f14 Color picker (#3649)
* Added new Color picker pallet for calendar

* Review changes for Color Picker.

* Refactor code as per reviews.

* Refactor code for blur event.

* Add Color to db_schema

* set_value on click, minor cleanup

* Remove test field from Event

* styling

* revert event.json
2017-07-12 14:02:18 +05:30
Saurabh
19ee84a58e Validate column length (#3556)
* [fix] validate column length while creating doctype or custom field

* [fix] not allow user to add custom fields in [Custom Field, Customize Form Field, Customize Form, Custom Script, Property Setter]

* [fix] check if fieldname is conflicting with method names

* [fix] don't allow Custom Script and Property Setter to be updated via customize form
2017-07-05 15:03:01 +05:30
Makarand Bauskar
de2ce50d7a Merge pull request #3534 from rohitwaghchaure/field_type_change_issue
[Fix] Don't allow user to change the select fieldtype to data from the customize form
2017-06-27 19:29:54 +05:30
Rohit Waghchaure
2c5e6c7d0f [Fix] Don't allow user to change the select fieldtype to data from the customize form 2017-06-24 18:18:46 +05:30
Rushabh Mehta
6a725d6c95 [cleanups] 2017-06-22 18:21:48 +05:30
Rushabh Mehta
0879ecf326 [minor] in create_custom_field, if you set "append" to insert_after, it till append to the last field 2017-06-20 18:29:42 +05:30
Sagar Vora
67ac93201a Added columns field (#3469) 2017-06-13 14:50:15 +05:30
Makarand Bauskar
17a09e4b70 [feature] domainification for frappe (#3227)
* [feature] domainify doctype, pages and roles

* [minor] added get active domain method to __init__

* [fixes] minor fixes in domainification and added test cases

* [minor] added checkbox-editor class to render the domains

* [minor] added checkbox_selector option

* [minor] added or_filters to filter restrict to domain doctype and roles

* [minor] fixed codacy errors
2017-06-13 14:36:01 +05:30
Faris Ansari
e1b243996a Added files in .eslintignore, updated globals 2017-06-02 15:00:15 +05:30
Faris Ansari
e243d76244 Rename validated to frappe.validated 2017-06-02 15:00:15 +05:30
Faris Ansari
b99fd5a4d3 Fixed tab spacing 2017-06-02 15:00:14 +05:30
Faris Ansari
2a3b34822b Remove all implicit global variables 2017-06-02 15:00:14 +05:30
Faris Ansari
bec6b5c827 Update Custom Field background color in Customize Form (frappe/erpnext#6432) (#3334) 2017-05-19 10:37:43 +05:30
Makarand Bauskar
b8f1fdc92e [minor] fixed the set_query for the doctype field in Custom Field (#3275) 2017-05-12 11:14:30 +05:30
tundebabzy
6fbe20caaa Except and raise statement python 3 compatible style (#3216)
* changes exception and raise statements to python 3 style

* changes except statement to python 3 style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* changes except and raise statement to python 3 compatible style

* adds six.reraise to fix python 3 style raise statements with traceback

* fixes indentation
2017-05-11 10:51:59 +05:30
mbauskar
a3a821d865 [enhancement] added bulk edit option for child table in DocType and Customize Form 2017-04-21 18:02:03 +05:30
Prateeksha Singh
ea9d777238 Still more search fixes (#3054)
* [fix] awesome bar translation frappe/erpnext#8279 frappe/erpnext#8306

* [fix] frappe/erpnext#8348

* unescape and remove html entities

* ellipsify long field values

* [fix] test

* Add global search in custom field, Email Inbox searchable

* remove beautiful soup, make_field test case

* [fix] test

* Patch to update existing record in global search

* restore update_published patch

* more specific test cases

* Code descriptions for complex result ellipsifying
2017-04-19 15:47:21 +05:30
Makarand Bauskar
5452887ca1 [minor] added track changes in customize form (#3049) 2017-04-10 12:49:18 +05:30
Rushabh Mehta
eb0d098144 [test] fix test_customize_form 2017-04-07 18:35:16 +05:30
Rushabh Mehta
54df9298f8 [enhance] Signature Control (#3024)
* - Add controller for signature field, including buttons for save and reset
- Add library and style

* Add DB mapping for Signature field -> fix bug not saving
Add empty image, and auto load image when loading form
Add option for Signature field type on Doctype form

* Make field uneditable after submitting

* Remove console log and revert adding empty lines

* Update layout, remove edit mode/button, make save button compact. Refactor and use change event to trigger save.

* [cleanup] Signature Control
2017-04-07 13:52:42 +05:30
Faris Ansari
70859ba621 Remove conflict 2017-04-03 21:11:51 +05:30
Faris Ansari
18dc60cb2e Hide script field from List View 2017-04-03 18:11:08 +05:30
Sagar Vora
0a7d07c81d Changed custom_script.json to remove script from list view
Removed Script text from list view since it leads to a visual error.
2017-04-03 17:09:51 +05:30
mnatalia
54e0412dc8 Added bold option to the customize form and underscore for the translating possibility labels. 2017-03-29 18:43:49 +05:30
mbauskar
e9ba98660e [minor] hide custom buttons in customize form if form type is not selected 2017-03-11 16:28:47 +05:30
Rohit Waghchaure
4c357643db Fixed patch, travis 2017-03-06 18:26:22 +05:30
Rohit Waghchaure
e996fd0c55 Changed tabUserRoel to tabHas Role 2017-03-06 14:42:14 +05:30
Rohit Waghchaure
cc37c5fda8 rename page role to has role, added doctype custom role to set the roles, added screen to set roles to the page and report 2017-03-06 14:38:54 +05:30
pratu16x7
38d97e1347 Remove communication from search, change modified by of custformfield 2017-03-01 11:01:58 +05:30
pratu16x7
2c407a3d63 Placeholder graphics, nav results preference, json fields update 2017-02-24 10:37:04 +05:30
Nabin Hait
20668995ec Fixed merge conflict 2017-02-16 14:34:27 +05:30
Makarand Bauskar
4834bfa946 [minor] added flags, docstatus in restricted fieldname (#2709)
* [minor] added flags, docstatus in restricted fieldname

* [minor] excluded Attach Image from In List View
2017-02-15 14:48:38 +05:30
Rushabh Mehta
86ceb21005 [feature] Global Search (again) (#2710)
* [start] global search frappe/erpnext#6674

* [fix] setup before running test

* [start] global search frappe/erpnext#6674

* Display result as rudimentary list, rebuild old doctypes

* Media view, child tables, delete document updates, searchable fields

* More results UI

* Code clean up

* remove msgprint from document.py to resolve merge conflict

* Modularization stage 1, get show more to work with it

* Dedicated modal Search bar works, some clean up needed

* Can't data-dismiss on links, Bootstrap issue, use hashchange

* Accomodate missing field content syndrome

* Search in boolean mode, make GS default in awesome bar, fix double modal bug and cleanup

* Add in Meta

* Add in customize form

* Modularise Global Search

* Search object

* Commonify Search UI: Stage I

* II: save list state, UI, default condensed view, refactor

* Fix SQL bug, Refactor awesome bar, Fix unicode bug, add nav results

* Refactor using separate search objects, some async issues

* Fix async flow

* Fix preceding more list bug

* UI additions

* another async fix, back link

* Help: Stage I

* Help: Stage II

* Background jobs, fix route options bug

* Fix GS syncing on install

* Add GS options in awesome bar: test

* Input now remembers search type state

* More UI updates

* Add description for GS results in awesome bar

* Fix help modal bug

* Fix: not commit during install

* Test cases, some fixes

* Update in_test flag in enqueue

* Disable GS sync when not install_db

* Add flag check

* Disable field in child tables

* Cleanups

* Create table fix

* Fix redis exception, remove commit enqueue, add gs in migrate

* Fix tests

* Single enqueue

* cleanups

* Fix tests

* Fix event test

* Fix duplication, search as first option

* Add show name in global search

* fix event tests and desk.less

* Fix communication.json

* [fixes] wip

* [fix] tests

* [minor] for tests

* [minor] for tests

* [minor] for tests

* [minor] for tests
2017-02-13 14:50:54 +05:30
Rushabh Mehta
5bc3473184 [minor] cleanups, allow comma in email validation 2017-02-07 14:01:18 +05:30
Rushabh Mehta
e329962756 [minor] remove in_fitler, fixes #7381 (#2649) 2017-01-30 15:30:44 +05:30
Faris Ansari
9ddecfb14b Kanban enhancements (#2609)
* quick kb, some styling

* card ordering fixed

* AssignTo code cleanup

* card ordering fixed

* Empty column_name validation

* filter autosave

* column ordering

* column indicator color

* KB based on custom field

* added add_custom_field method
2017-01-20 11:57:40 +05:30
Rushabh Mehta
636c662048 [patch] added patch for migration 2017-01-12 15:48:49 +05:30