* [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
* 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
- 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
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.
* 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
* 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
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
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.
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
* 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
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