Commit graph

903 commits

Author SHA1 Message Date
Achilles Rasquinha
fc94489220 added safe encode 2018-03-08 15:10:01 +05:30
Nabin Hait
7b0a7e029d Fixed merge conflict 2018-03-05 14:46:18 +05:30
Faris Ansari
2fc96e1419 Remember columns state for each user (#5102)
* Remember columns state for each user

* Chart

* python 3 fix

* Toggle message refactor, Tree structure DataTable update
2018-03-05 11:02:23 +05:30
Nabin Hait
aa442e33b0 update linked docs if not single 2018-02-27 15:54:07 +05:30
Nabin Hait
b5ecdf22fd Update territory and customer_group patch optimization (#5073) 2018-02-27 15:51:26 +05:30
Zarrar
22534536ce optimize update_linked_doctype util and get_fetch (#5071) 2018-02-27 15:50:00 +05:30
Rushabh Mehta
1aad5d072a [optimize] get_link_fields 2018-02-27 15:49:52 +05:30
Achilles Rasquinha
c2fb0c3bde conditional check for single docs (#5060) 2018-02-27 15:49:39 +05:30
Zarrar
a56fe9a8fb added function to update link-link based dependent values (#5048) 2018-02-27 15:49:28 +05:30
Nabin Hait
cb4d3f1adf
Update territory and customer_group patch optimization (#5073) 2018-02-25 10:41:11 +05:30
Zarrar
c78c564eac optimize update_linked_doctype util and get_fetch (#5071) 2018-02-23 17:40:00 +05:30
Rushabh Mehta
f987f27943 [optimize] get_link_fields 2018-02-23 11:55:52 +05:30
Achilles Rasquinha
7e6153c4d2 conditional check for single docs (#5060) 2018-02-22 18:05:38 +05:30
Zarrar
21bc53e351 added function to update link-link based dependent values (#5048) 2018-02-22 10:56:44 +05:30
Rushabh Mehta
ac93a5d4bd python 3 fixes 2018-02-21 17:55:51 +05:30
Achilles Rasquinha
ec3aedf358
Merge pull request #5009 from achillesrasquinha/restore-progress
Show Progress of Database Restore
2018-02-20 11:33:11 +05:30
Achilles Rasquinha
b5393fd1ee [FIX] empty if pipe not found 2018-02-20 11:19:33 +05:30
Faris Ansari
e581be9fa8 Add translation support for DocFields (#5002)
* Initial changes for Translation

* Merged translate app into frappe core

* Minor typo fix

* Fixes while syncing translations

* Set defaults

* Fixes on setup

* Improve Code Quality

* Could Code Quality be Improved?

* Small code tweaks

* Minor typo fix

* Addition of Translatable Property

* Small fixes for Codacy Comments

* Simplify code

* Show translations in grid

* Remove enabled from Language

* Revert render_template logic

* typo

* Cleanup unused methods

* move patch to erpnext

* fix codacy

* Update patches.txt

* Update patches.txt
2018-02-16 15:12:12 +05:30
Shreya Shah
5d9d64423d Print progress bar on new line (#5018) 2018-02-15 17:53:56 +05:30
Prateeksha Singh
3e181bae51
Merge pull request #5011 from pratu16x7/treeview-fixes
[minor] more treeview decoupling
2018-02-15 11:07:04 +05:30
Prateeksha Singh
041496474d more treeview decoupling 2018-02-15 11:06:10 +05:30
Achilles Rasquinha
86aa97bdc2 show progress of database restore 2018-02-14 20:14:36 +05:30
Saurabh
676fdc0098 Merge branch 'master' into develop 2018-02-14 11:43:00 +05:30
Faris Ansari
3e15c148bd [hotfix] Deadlock fix rename doc (#5001)
* [deadlock fix] rename_version before delete_doc

* Move delete_doc to end of rename_doc
2018-02-13 16:01:58 +05:30
Saurabh
40d818af90 [hotfix] sanitize fields to avoid mysql injection (#4994)
* [fix] sanitize fields to avoid mysql injection

* sanitize sql statements to avoid subqueries

* Added test cases

* Raise exception if mysql injection found in fields and related test-cases

* [fix] riase exception if blacklistes function or keyworkds found in fields
2018-02-13 14:45:51 +05:30
Achilles Rasquinha
4433250cda Python 3 fixes 2018-02-13 12:27:02 +05:30
Achilles Rasquinha
473d3eb6be Fixes for Python 3 (#4940)
* Fixed dict_keys and lists

* [FIX] config.get keys must be list

* [FIX] pickle all objects

* [FIX] get versions in unicode

* [FIX] get log versions

* debugging

* Fixed commit ID reference

* Fixed branch reference

* Fixed doc keys to list

* [LOG] test log

* [LOG] test log

* Convert iterators to list

* removed logs

* [FIX] Trial to load templates

* Fixed codacy
2018-01-31 10:51:13 +05:30
Nabin Hait
0a8664c3b7 Merge branch 'master' into develop 2018-01-30 19:02:36 +05:30
Nabin Hait
63fbff77ae Escape value for using in mysql regexp 2018-01-30 19:01:34 +05:30
Martino Migliavacca
1fbde5c85d Fiscal Year in naming series (#4727) 2018-01-23 14:53:37 +05:30
Rohit Waghchaure
87a0b6213b Merge branch 'master' into develop 2018-01-19 13:06:50 +05:30
rohitwaghchaure
97e18c809e [Fix] Date between filter not working properly on report and listview (#4810) 2018-01-18 15:39:12 +05:30
Nabin Hait
268e9b2a58 Merge branch 'master' into develop 2018-01-17 18:48:53 +05:30
Faris Ansari
aa7d93cfdb Generic Append number in naming (#4845)
* Generic append_number_if_name_exists

* Add test
2018-01-17 18:45:37 +05:30
Saurabh
c62ddaabaa Merge branch 'master' into develop 2018-01-12 16:50:19 +05:30
Faris Ansari
9dc43f85ce minor 2018-01-11 15:02:19 +05:30
Faris Ansari
ad412de054 Escape name in sql query 2018-01-11 15:00:35 +05:30
Faris Ansari
35811df7ef Remove get_count method, use the same db_query method for count (#4736)
* Remove get_count method, use the same db_query method for count

* Revert changes, db_query supported `count(name)` already
2018-01-02 17:55:51 +05:30
Saurabh
8873935b36 Merge branch 'master' into develop 2018-01-02 12:11:29 +05:30
Faris Ansari
909234ab9d Listview get_count fix (#4740) 2018-01-02 11:55:49 +05:30
Faris Ansari
7595fb75ba
New ListView 💥 + DataTable (#4577)
* first cut

* Code refactoring, styling

* Added Sorting

* Revert query_report to use slickgrid

* cleanup

* Edit cell working

* Add regrid, remove datatable

* Add clusterize

* Update lib, fix get_checked_items

* New ReportView

* wip

* Enable editing, fix styles

* update lib

* wip

* fix refresh rows and editable cells

* Refresh list_view every 3s, decouple refreshing logic

* Report editing fixes

* Cleanup loading fields, add column then refresh list

* [wip] New List View

* [working] Render results

* ListView is now BaseList, add new ListView and GanttView

* Create new page for each ListView

* GanttView working

* CalendarView working

* KanbanView working

* Cache list_view based on page_name

* Gantt view buttons on mobile

* Add ReportView

* Refresh datatable on render

* Setup like

* [start][filters] clean up FilterList

* [filters] refactor FilterList

* [filters] minor fix

* [filters] fix remove filter

* filter utils

* more utils, remove apply

* rewrite as class, remove 'me' references

* [filter] implement on_change to decouple parent functions

* Integrate new filters with new BaseList

* Setup freeze area for ListView

* Set breadcrumbs on setup_page

* Trigger list update from events

* Setup footnote area

* Fix Kanban Board filters

* Add filters to standard filters, then filter_list

* Remove old files

* Fix ImageView

* Some more fixes for BaseList.init

* Fix order_by on load

* Report View: remember columns

* Fix for hidden filters

* Fix for delete items

* InboxView

* Shift select checkboxes

* Fix ESLint errors

* More refactoring

- Move ListMenu to Listview
- New FileView
- Ability to add custom breadcrumbs

* FileManager working

* Tags, set filters from route options

* Custom Reports Working

* List Sidebar reports

* Report Name as title

* Fix ESLint errors

* Fix UI tests

* Fix Kanban test

* Format ID column

* [fix] Kanban cards title

* Checkbox fix

* Fix Activity Page

* Update rows in Report in place

* Child Table columns in Report View
2017-12-27 11:24:25 +05:30
Saurabh
cd8da87907 Merge branch 'master' into develop 2017-11-30 16:40:45 +05:30
Faris Ansari
74883d4f36 Set owner in Deleted Document (#4556) 2017-11-30 14:28:12 +05:30
Saurabh
20fff6e874 Merge branch 'master' into develop 2017-11-22 18:02:53 +05:30
Saurabh
2045e4f1f9 [fix] while deleting a record also check links in single (#4447)
* [fix] while deleting a record also check links in single

* [fix] no HTML in translatable text

* [fix] commonified message for link validation on document delelte
2017-11-21 15:47:30 +05:30
Shreya Shah
acdbb97ba5 Moved feed from Communication to Activity Log (#4435)
* Removed comment_type 'updated'

* New doctype activity log

* Moved feed.py to activity_log

* Updated feed gets stored in activity_log

* Activity page fetches feed from activity_log

* feed match condition change

* modified

* modified hooks.py

* modified sessions.py

* patch added

* naming in patch

* moved login, logout feed to activity_log

* changes in auth.py, hooks.py

* deleted doctype authentication_log and added test cases

* added utils.py in core

* moved some methods from communication.py to utils.py
2017-11-21 15:46:51 +05:30
Nabin Hait
3e7a19e3bb
Update db_query.py 2017-11-15 14:05:01 +05:30
Manas Solanki
7031473915 fixed between filters (#4497) 2017-11-15 13:57:53 +05:30
Rushabh Mehta
3dd5e399fa [minor] base_document.py return empty list if not filters 2017-11-14 16:48:43 +05:30
Nabin Hait
4b5893509a Fixed Merge Conflict 2017-11-14 13:56:42 +05:30