Commit graph

15868 commits

Author SHA1 Message Date
tarokobear
e85e52a591 Account for documents with integer names so they can be deleted. (#5567) 2018-05-22 11:23:59 +05:30
Prateeksha Singh
e3115bfbc7 [docs-portal] Search the Docs (#5558)
* [docs-portal] search documentation

* [doc-search] remove search-result template

* [portal-search][minor] add search result section title

* [portal-search] make search result section macro

* [portal-search] two-col layout for more sections
2018-05-22 10:23:13 +05:30
Faris Ansari
8689bbd855 Reportview fixes (#5582)
* Reportview- Dynamic row height disabled by default, enable using checkbox

* Always show filter row in Query Report
2018-05-22 10:17:15 +05:30
Faris Ansari
2f1f174bfd Listview fixes (#5581)
* Remove annoying message when kanban is changed

* [fix] view_user_settings getter

* Set last_view on kanban view change
2018-05-21 16:16:54 +05:30
Zarrar
dba5b789f4 update patch - fix order_by for older settings (#5580) 2018-05-21 16:16:25 +05:30
Faris Ansari
fb3560a555
[fix][patch] Create contact for user (#5578) 2018-05-21 15:09:54 +05:30
Faris Ansari
0f7e231160 Listview fixes (#5577)
- update sort_by and sort_order on sort_selector change
2018-05-21 14:38:50 +05:30
Zarrar
27ad949156 [Fix] Sort data when added from quick entry in the list (#5575)
* sort data in list
use sort_by and sort_order individually instead of combining them into one order_by

* patch to update user_settings
- remove order_by and insert sort_by and sort_order in user_settings
2018-05-21 12:53:06 +05:30
Valmik
467604ba93 Function to remove a slide from the list of slides (#5570) 2018-05-21 12:28:57 +05:30
Charles-Henri Decultot
f0ed11061d Calendar connector improvements (#5571)
* Calendar connector improvements

* Development cleanup
2018-05-21 12:21:15 +05:30
Faris Ansari
a682745488
Datatable fixes (#5569)
- duplicate Add column dropdown item
- Add column dialog should show Label instead of fieldname
2018-05-18 13:33:48 +05:30
rohitwaghchaure
ae0ec7c8f1
Merge pull request #5566 from Zlash65/fix-patch
[Minor] Patch fix for migration
2018-05-18 12:47:50 +05:30
Zlash65
76045cb7f1 refresh meta filter for DocType and DocField after column drop 2018-05-17 19:37:18 +05:30
Suraj Shetty
8f386d709f Allow everything for Admin (#5561)
- Return every available roles if the user is admin
This will allow admin to access doctype even if doctype
has docperm with only disabled roles
- No more need to add roles for admin on every new role creation
2018-05-17 12:33:38 +05:30
Rushabh Mehta
a2e1af2a55
Revert "Replace frappe.db.sql to frappe.get_list to apply permissions" (#5559)
* Revert "[minor] remove in_dialog old property"

This reverts commit b4650f42a1.

* Revert "JWT response does not contain email attribute for Office 365, reading upn instead (#5525)"

This reverts commit 51f5988a76.

* Revert "Fix "frappe.is_user_logged_in" js function (#5548)"

This reverts commit affe5b8659.

* Revert "[Translation] Updated Translations (#5552)"

This reverts commit f3930a7026.

* Revert "Fix a bug with whitelisted method (#5551)"

This reverts commit 92e4db1dd9.

* Revert "Python 3 fixes for PR bot (#5554)"

This reverts commit 7b003a71bc.

* Revert "Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)"

This reverts commit 2e52177f51.
2018-05-16 12:57:43 +05:30
Rushabh Mehta
b4650f42a1 [minor] remove in_dialog old property 2018-05-16 12:51:01 +05:30
yogeshak
51f5988a76 JWT response does not contain email attribute for Office 365, reading upn instead (#5525) 2018-05-16 11:13:17 +05:30
Erick Jimenez
affe5b8659 Fix "frappe.is_user_logged_in" js function (#5548)
* Fix is_user_logged_in js function

* Add missing semicolon
2018-05-16 11:12:31 +05:30
Frappe PR Bot
f3930a7026 [Translation] Updated Translations (#5552) 2018-05-16 11:12:06 +05:30
Suraj Shetty
92e4db1dd9 Fix a bug with whitelisted method (#5551)
- Add additional check to avoid wrong user set
2018-05-16 11:11:37 +05:30
Ameya Shenoy
7b003a71bc Python 3 fixes for PR bot (#5554)
In python 2 writing to file can be done by reading the file as 'w' or
'wb', however, in python 3 if we're writing 'utf-8' encoded stuff to a
file, it needs to be opened using the 'wb' argument. 'b' here stands for
binary.
2018-05-16 11:11:04 +05:30
Suraj Shetty
2e52177f51 Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)
* Replace frappe.db.sql with frappe.get_list
- Permission check for treeviews

* Optimize get_role_permissions
- Avoid setting of roles each time when is_perm_appicable is called

* Fix codacy
- Remove trailing whitespace
2018-05-16 11:10:45 +05:30
Saurabh
f1b35c82f4 [fix] resolved merge conflicts 2018-05-15 12:56:21 +05:30
Saurabh
757f37aa7a Merge branch 'hotfix' 2018-05-15 12:51:03 +05:30
Saurabh
b42eb308a7 bumped to version 10.1.31 2018-05-15 13:21:03 +06:00
Saurabh
c3b97bc456
Merge pull request #5544 from codingCoffee/opti_addr_contact
optimized addr_and_contact report by @nabinhait
2018-05-15 12:08:27 +05:30
Saurabh
c1a338f8c0
Merge pull request #5491 from codingCoffee/decimal_fix
added handler for decimal object in response
2018-05-15 11:54:31 +05:30
Saurabh
488e4a5426
Merge pull request #5550 from netchampfaris/hotfix
Quick Kanban Board
2018-05-15 11:53:49 +05:30
Faris Ansari
3d5c09d41a
fix codacy 2018-05-15 11:30:52 +05:30
Zarrar
b2873be5fb [Fix] Email and Contact fixes (#5519)
* use multiselect for email dialog, improv email fetch query

* patch to create contact for all user

* append number if same name found for company

* update tests
2018-05-14 19:21:35 +05:30
Faris Ansari
4015238512 Quick Kanban Board
- dont create project implicitly, results in Deadlock most of the time
- add explicit field to set the project
2018-05-14 12:43:28 +05:30
Prateeksha Singh
da2e00e570
Merge pull request #5547 from pratu16x7/jsBarcode-import
[purge] remove jsbarcode lib, import
2018-05-11 15:57:48 +05:30
Prateeksha Singh
d54980b665 [purge] remove jsbarcode lib, import 2018-05-11 15:52:56 +05:30
Rushabh Mehta
cca360e8ef [minor] dont render .min.js files as jinja templates 2018-05-10 22:28:42 +05:30
Ameya Shenoy
9c4f47b461 optimized addr_and_contact report by @nabinhait
Old implemetation involved 2 sql queries for every party_type, one for
address and one for contact. This was timing out if the party_type size
was too large. New implementation involves 3 queries only.

Stats:
	no_of_records | party_type | old_time | new_time
	--------------+------------+----------+---------
	27000         | Customer   | 209 secs | 1.5 sec
2018-05-09 17:50:43 +05:30
Sushant Nadkar
a122de51b2 Show fieldname as tooltip for all users if developer_mode=1 (#5543) 2018-05-09 12:45:32 +05:30
Ameya Shenoy
fc99d691d1 Fix python3 issue reading pdf (#5541)
File types other than plain text files weren't sent properly in email. The initial implementation of try except used to destroy the file object in the try statement, and hence we were getting a blank string in the except block. The fix involves reading the file object separately before trying to decode it.
2018-05-08 15:41:12 +05:30
Nabin Hait
6737f1912c Fixed merge conflict 2018-05-08 15:27:37 +05:30
Nabin Hait
f717296a87 Merge branch 'hotfix' 2018-05-08 15:26:51 +05:30
Nabin Hait
db5682e688 bumped to version 10.1.30 2018-05-08 15:56:51 +06:00
Saurabh
2147bca5d4 [fix] set no_copy property for workflow state field (#5531)
* [fix] set no_copy property for workflow state field

* [fix] check if custom field exists before loading doc
2018-05-08 15:16:08 +05:30
Ameya Shenoy
09e71d0d77 added floor and ceil to frappe.utils (#5536)
Added frappe wrappers to math.ceil and math.floor, since they are widely
used functions. Also added their docstrings for documentation and wote
test cases. And some minor typo fixes
2018-05-08 15:13:50 +05:30
Nabin Hait
09cbf49ff1
Increase the length of Singles table columns (#5540) 2018-05-08 15:12:00 +05:30
Shreya Shah
c51a2b884e Rename occurrences for Production Order to Work Order (#5534) 2018-05-08 11:21:48 +05:30
mnatalia
18ecf1f3e7 Update new_message.html (#5535)
Added possibility to translate.
2018-05-08 11:16:55 +05:30
Suraj Shetty
9356e4272d Fix auto dropdown for tag on page load (#5532)
* Fix auto dropdown for tag on page load

* Fix tag related bugs

- reset doc user_tags on change
- move "label conversion toTitle" from onTagAdd listener
to addTag function
- remove unnecessary refresh call
2018-05-08 11:10:55 +05:30
Saurabh
6ccd3386bb
Merge pull request #5533 from saurabh6790/boilerplate_fix
escape new line char while creating boilerplate for app
2018-05-07 15:34:48 +05:30
Saurabh
c899c94c96 escape new line char while creating boilerplate for app 2018-05-07 12:50:19 +05:30
Ameya Shenoy
439effed7d Rebuild help for docs which have been renamed (#5521)
After execution of a bulk rename, the help cache for the particular
doctype didn't used to change. Added this fix to ensure the help is
rebuilt for the particular doctype whose docs have been renamed
2018-05-06 11:59:00 +05:30
Nabin Hait
e3682cec22 Fixed merge conflict 2018-05-05 12:12:28 +05:30