Commit graph

78 commits

Author SHA1 Message Date
Aditya Hase
5cc6903cd5 Make sure that max_length[0][0] is comparable with new_length 2017-08-11 00:38:01 +05:30
Aditya Hase
774c5fd2c6 Replaced mixed usage of tabs and spaces for indents with tabs only (#3828) 2017-08-01 11:53:58 +05:30
tundebabzy
993692ba32 Issue changing 'Unique' field option in v8 (#3760)
* fix wrong query

* test unique constraint removal
2017-07-24 11:27:59 +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
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
Nabin Hait
ae088d2211 Drop unwanted indexes from Communication and fixes for restoring v7 backup on v8 bench (#3112) 2017-04-19 15:49:55 +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
Mohammed Alokshiya
4b4ec8e01e Avoid exception when changing fieldname from upper to lowercase (#2517) 2016-12-29 10:51:50 +05:30
Viet Pham
2016841924 Fix 'engine' attribute error 2016-10-31 20:36:32 +07:00
RobertSchouten
5f93a78477 allow varchar longer than 250 now is supported (#2137) 2016-10-08 11:09:15 +05:30
Rushabh Mehta
9d7ee83c5e [refactor] scheduler log is now error log and as MyISAM (commit not required) (#2152)
* [refactor] scheduler log is now error log

* [minor] new naming series

* [fix] engine

* [fix] saved by tests
2016-10-06 17:17:55 +05:30
Rushabh Mehta
2a3eb0b9cd [enhance] receive payments in web form and other fixes (#2097) 2016-09-24 14:55:35 +05:30
Nabin Hait
5383882754 Update db_schema.py 2016-09-20 11:20:57 +05:30
Nabin Hait
d070f880e2 Validate length of fieldname 2016-09-14 15:36:33 +05:30
Rushabh Mehta
8a32adcaf8 [command] bench setup-help will make the help db 2016-08-23 17:53:38 +05:30
Rushabh Mehta
754e23e745 [feature] added a new database _frappe_help containing all help files 2016-08-03 18:00:45 +05:30
Nick
e1bded65a2 fix bug for "duplicate key name" when db init
During the first init process for creating tables, if one field marked True for both "unique" and "search_index" , table creation will be failed. 

for example :

create table `tabItem Barcode` (
            name varchar(140) not null primary key,
            creation datetime(6),
            modified datetime(6),
            modified_by varchar(140),
            owner varchar(140),
            docstatus int(1) not null default '0',
            parent varchar(140),
            parentfield varchar(140),
            parenttype varchar(140),
            idx int(8) not null default '0',
            `item_barcode` varchar(140) unique,
`sku_id` varchar(140),
`unit_qty` varchar(140),
`_comments` text,
`_assign` text,
`_liked_by` text,
`store` varchar(140),
`retail_price` varchar(140),
`_user_tags` text,
`uom` varchar(140),
index `item_barcode`(`item_barcode`),
index parent(parent))
            ENGINE=InnoDB
            ROW_FORMAT=COMPRESSED
            CHARACTER SET=utf8mb4
            COLLATE=utf8mb4_unicode_ci
2016-06-03 16:34:28 +08:00
Anand Doshi
4f93c976a7 [fix] If precision > 6, use Decimal(21,9) to allow for 12 digits before the decimal dot like in (18,6) 2016-04-21 16:38:36 +05:30
Rushabh Mehta
399bf0f8e0 [fix] track_seen is optional 2016-03-25 17:29:28 +05:30
Rushabh Mehta
d029eae1f7 [enhancement] added feature to track user seen, fixes #1648 2016-03-25 16:27:31 +05:30
Anand Doshi
5faecb2bc1 [fix] add _comments column after request 2016-02-11 23:06:56 +05:30
Anand Doshi
5b45450252 [fix] create optional columns during sync, use email account name if no sender full name 2016-02-08 13:14:00 +05:30
Anand Doshi
163c822ccd [fix] varchar length validation 2015-12-17 16:46:43 +05:30
Anand Doshi
5621ba30c0 [enhancement] Int, Currency, Float, Percent as not null and default to 0 2015-11-19 13:09:44 +05:30
Anand Doshi
70c58ccb81 [hotfix] patches and varchar length check 2015-10-19 17:25:05 +05:30
Anand Doshi
7fe35e0275 [fix] Remove thumbnail on deletion and change Attach to small text 2015-10-19 12:55:02 +05:30
Anand Doshi
3c4f31a23c Limit varchar length to 140 instead of 255 to mitigate Row Size Too Large error 2015-10-14 16:00:14 +05:30
Anand Doshi
f21f8cd34c [fix] in schema sync, sync custom fields if installing any app other than frappe 2015-09-09 14:42:00 +05:30
Anand Doshi
5e445476f3 [fix] show doctype, fieldname in unique validation 2015-09-03 11:42:19 +05:30
Anand Doshi
f525520788 [fix] Add/Drop unique based on property setter 2015-08-12 14:48:50 +05:30
Anand Doshi
c119a6396a Merge pull request #1222 from anandpdoshi/check-not-null
Change Check fields to have default as 0 (if not specified) and not null
2015-07-30 12:04:02 +05:30
Anand Doshi
baec4f855f Change Check fields to have default as 0 (if not specified) and not null 2015-07-30 11:54:27 +05:30
Nabin Hait
cfef3183ca [fix] Adding Unique Constraint 2015-07-29 19:10:38 +05:30
Rushabh Mehta
b05a6ef9b0 [fixes] [minor] email and doctype message 2015-07-01 16:48:42 +05:30
Anand Doshi
4a214ed22b [fix] db_schema check for change in decimal's default value. Fixes frappe/erpnext#3379. 2015-05-28 15:39:14 -04:00
Rushabh Mehta
22a4106b71 [sync] [fix] alter table default boo-boo 2015-05-07 18:16:04 +05:30
Rushabh Mehta
a0b27ae2d7 [fix] don't unique text fields 2015-05-07 17:48:54 +05:30
Rushabh Mehta
45ae2998be [fix] don't unique text fields 2015-05-07 17:27:02 +05:30
Rushabh Mehta
2b10264166 [fix] don't unique text fields 2015-05-07 17:23:34 +05:30
Rushabh Mehta
777774ced4 [fix] don't unique text fields 2015-05-07 17:12:35 +05:30
Anand Doshi
986c96d01a Fixed Email Pulling 2015-03-30 20:35:52 +05:30
Anand Doshi
a24393f12d Convert to barracuda and utf8mb4, trim tables 2015-03-25 19:05:06 +05:30
Rushabh Mehta
9e6eaf5a0b [test] fixes 2015-03-24 17:57:46 +05:30
Anand Doshi
f7f2372929 fixed boilerplate, freeze, attach, frappeclient 2015-03-17 19:44:53 +05:30
Anand Doshi
5214bb286a Fixes in test cases and recents 2015-03-05 16:29:26 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Anand Doshi
2e53a15bda Fieldname validation, fixes frappe/erpnext#2608 2015-02-25 15:06:18 +05:30
Anand Doshi
f6cdd4a655 Merge remote-tracking branch 'frappe/develop' into v5.0
Conflicts:
	frappe/__version__.py
	frappe/core/doctype/communication/communication.py
	frappe/core/page/desktop/desktop.js
	frappe/hooks.py
	frappe/translations/ar.csv
	frappe/translations/es.csv
	frappe/translations/fr.csv
	frappe/translations/hr.csv
	frappe/translations/id.csv
	frappe/translations/ja.csv
	frappe/translations/nl.csv
	frappe/translations/pl.csv
	frappe/translations/pt-BR.csv
	frappe/translations/ru.csv
	frappe/translations/tr.csv
	frappe/translations/zh-cn.csv
	frappe/translations/zh-tw.csv
	frappe/utils/email_lib/html2text.py
	setup.py
2015-02-24 18:06:16 +05:30
Anand Doshi
d234939cee [fix] changed Text Editor's mysql type to longtext 2015-02-24 12:48:49 +05:30