Rohan Bansal
77062721ed
feat: allow mapper functions to be overriden
2020-05-30 19:15:04 +05:30
marination
e65486f0c7
fix: Removed annotations due to py>=3.7 compatibility.
2020-01-27 11:59:40 +05:30
marination
f61ae3fd1a
fix: Comment to docstring and minor changes
...
- added description for args with example
- 'yield' might not be the best idea, barely any improvement, so changed back to 'return'
2020-01-24 12:02:46 +05:30
marination
d110b744d9
fix: Modified map_docs to accomodate 'args' sent from client call
2020-01-21 15:13:30 +05:30
marination
56bdbaadc6
fix: (User Permissions) Allow user to fetch details into mapped doc
...
Check if apply strict user permissions is enabled
Accordingly restrict user permission
2019-09-27 15:57:08 +05:30
Suraj Shetty
757953851b
fix: Move permission check code in get_mapped_doc method
...
- Check target_doc creation permission only after
completely mapping target doc with source_doc
2019-09-17 15:47:49 +05:30
Faris Ansari
3b86f16b73
New Control: Table MultiSelect ( #6675 )
...
* feat(control): Add Table MultiSelect control
* fix: Use btn-group instead of span
* fix: Remove functionality
* fix: Add 'Table MultiSelect' to Field doctypes
* fix: Replace usage of string 'Table' with array `table_fields`
* fix: Use internal array to store values instead of building from HTML elements
* fix(style): Add semicolon
* fix: Read only mode and click to navigate to form
* style: indent
* fix: fallback to empty array
* fix: Add formatters in js and py
* style: missing semicolon
* fix: Add docfield validation
2018-12-28 15:36:59 +05:30
Rushabh Mehta
624703d1b9
minor: mapping now takes optional args
2018-08-30 18:23:06 +05:30
Nabin Hait
8d8c49f43b
fetch_from fixes in mapper
2018-05-25 09:55:58 +05:30
Zarrar
e76b3eef4e
[Enhance] New DocField - 'Fetch From' ( #5563 )
...
* add new docfield fetch_from - serves as add_fetch
* replace options.split with fetch_from.split
* copied data from options to fetch_from
* patch to update fetch_from for docfield, custom_field and property_setter
* update tests according to fetch_from change
2018-05-23 11:07:57 +05:30
rohitwaghchaure
553702d671
Read only fields not update if the field has already value ( #5126 )
2018-03-08 12:02:17 +05:30
Aditya Hase
769338f136
Replaced all instances of basestring with six.string_types
2017-08-11 00:10:11 +05:30
Prateeksha Singh
b23aa1446b
Multiselect dialog for getting items ( #3255 )
...
* First approach by making a control
* Implement multi select for child tables
* Basic UI and items fetch in place
* Multiselect with checkboxes
* Functional modal with filters and new_doc
* Map filter fields to target_doc
* pass json arrays instead of strings
* Get items from quotation (in SO) working
* [minor] fix link route in list
* [minor] cleanup
* Add date, select first by default
* map_docs test, default date field
* [minor][fix] make new button bug
* [minor] move map_docs to erpnext
* [minor] format dates
2017-05-15 11:29:41 +05:30
Rushabh Mehta
9ba8a4a23a
[fix] mapper.py
2016-12-15 15:41:52 +05:30
Rushabh Mehta
ac69247325
[feature] checkboxes in grid #2451
2016-12-15 14:48:43 +05:30
Kanchan Chauhan
e590e37f3d
ignore child table parameter added to mapper.py
2016-07-02 18:43:21 +05:30
Anand Doshi
1ff7dff91b
[fix] get linked doc only if add fetch option is found
2015-09-07 19:58:58 +05:30
Rushabh Mehta
dc7b13ceef
[hot] [fix] target doctype
2015-07-06 16:59:38 +05:30
James T. Nixon III
f46092198f
Map child table if not mentioned in table_map but have the same fieldname and same table and both hhave no_copy unchecked
2015-07-02 12:53:38 -07:00
Nabin Hait
589c402941
set onload properties
2015-05-13 11:16:04 +05:30
Rushabh Mehta
3be7d4b2c0
[fix] mapper
2015-03-27 10:58:53 +05:30
Anand Doshi
2995f02f3b
Web Notes to Frappe, better alerts, css fixes, fixed splash
2015-03-03 15:09:34 +05:30
Nabin Hait
84c2a3abc3
Minor fix in mapper
2014-08-21 17:33:02 +05:30
Nabin Hait
e7b3c2fa4a
Fixes for mapping fetch fields
2014-08-21 12:20:51 +05:30
Anand Doshi
d109389a51
[mapper] Apply add fetch
2014-08-18 14:50:13 +05:30
Anand Doshi
36a9a4f3ce
[mapper] Auto-map Link fields in target doc, having options as source doctype or source parent's doctype
2014-08-18 13:21:36 +05:30
Anand Doshi
87459483e6
Mapper Function: map_child_doc
2014-07-07 12:25:20 +05:30
Anand Doshi
2ead90fc6e
Misc fixes
2014-06-27 20:59:00 +05:30
Rushabh Mehta
4facc14ef7
bugfix for add_if_empty in mapper.py fixes frappe/erpnext#1683
2014-05-26 16:11:26 +05:30
Anand Doshi
f1ff388563
Fix in open mapped doc. Fixes frappe/erpnext#1575
2014-05-04 18:36:10 +05:30
Anand Doshi
e16c8235d9
Fixed No permissiont to, Linked with doctype loading
2014-04-30 18:53:06 +05:30
Anand Doshi
1b0c74a93c
Do not map table fields in mapper
2014-04-28 16:04:59 +05:30
Rushabh Mehta
246a2a84fb
fixed strings for translation
2014-04-15 14:40:00 +05:30
Nabin Hait
044ff32a94
frappe/frappe#478 fixes
2014-04-07 12:03:00 +05:30
Nabin Hait
647266ecf5
frappe/frappe#478 fixes
2014-04-03 17:38:55 +05:30
Rushabh Mehta
63eb09f3a3
frappe/frappe#478 removed more instances of doclist
2014-04-03 12:38:46 +05:30
Rushabh Mehta
4f304cfc6a
frappe/frappe#478 , frappe tests pass, .txt renamed to .json
2014-03-31 17:27:12 +05:30
Anand Doshi
2680459e2f
frappe/frappe#478
2014-03-28 15:23:25 +05:30
Anand Doshi
f1eb0dd005
Replaced doc, doc.fields frappe/frappe#478
2014-03-28 13:54:53 +05:30
Rushabh Mehta
1e364ba1c7
#478
2014-03-28 11:34:59 +05:30
Rushabh Mehta
024ddfcc5b
-webnotes +frappe 💥
2014-02-14 14:55:11 +05:30