Commit graph

80 commits

Author SHA1 Message Date
Revant Nandgaonkar
ebf3554754 Geolocation control (#4327)
* added static map field

* leaflet draw plugin added to map control

* Editable layer working no icons

* Save and load data in form field

* images and icons working

* Locate plugin added, and loads on geolocation

* organized map control code

* loads layer as per form

* new form clears editableLayers

* update: leaflet 1.2.0 and leaflet-draw 0.4.2

* changed to ERPNext colors

* Multiple map fields and fixes

* fixes codacy suggestions

* loaded geojson data editable

* Map layers editable

* add only one layer on draw:create

* code organized with helper functions

* Replaced Leaflet Draw with Leaflet Editable

* read values from database

* layers saved in db

* Using Patched Leaflet Draw (mobile-friendly)

* Working Map field with multiple forms open

* Leaflet Draw css image path fix

* Leaflet Draw

Fixes Leaflet draw css image paths
Fixes Circle marker and Circle

* locate to geolocation or set featurecollection as center

* [fix] leaflet fitBounds padding 50,50

* [Fix] Leaflet (auto) locate

* Map field basic test

* added refresh button on map

* Mute map geojson in print format

* renamed Map field to Geolocation

* Suggested changes and fixes

* eslint disable

* csslint allow important
2017-10-25 18:30:25 +05:30
Prateeksha Singh
1e253b9d13 [controls] Barcode Control (#4335)
* [start] display barcode based on input

* [wip]

* [barcode] use set_value

* parse and set

* remove quagga

* [barcode] set in db

* [fix] set height

* cleanup

* remove from build.json, require instead

* [fix] declare JsBarcode global in .eslintrc
2017-10-18 12:24:58 +05:30
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