first cut for lazy loading framework

This commit is contained in:
Rushabh Mehta
2011-09-05 18:43:09 +05:30
parent 09938bda69
commit 66ac2b018a
1512 changed files with 832 additions and 0 deletions

View File

@@ -1,145 +0,0 @@
# DocType Mapper, Delivery Note-Installation Note
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:34',
'docstatus': 0,
'modified': '2011-05-17 11:42:57',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'name': '__common__',
'parent': 'Delivery Note-Installation Note',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'map': 'Yes',
'name': '__common__',
'parent': 'Delivery Note-Installation Note',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Delivery Note',
'module': 'Selling',
'name': '__common__',
'ref_doc_submitted': 1,
'to_doctype': 'Installation Note'
},
# DocType Mapper, Delivery Note-Installation Note
{
'doctype': 'DocType Mapper',
'name': 'Delivery Note-Installation Note'
},
# Field Mapper Detail
{
'checking_operator': '=',
'doctype': 'Field Mapper Detail',
'from_field': 'company',
'match_id': 0,
'to_field': 'company'
},
# Field Mapper Detail
{
'checking_operator': '=',
'doctype': 'Field Mapper Detail',
'from_field': 'customer',
'match_id': 0,
'to_field': 'customer'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'match_id': 0,
'to_field': 'delivery_note_no'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'match_id': 1,
'to_field': 'prevdoc_detail_docname'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'parent',
'match_id': 1,
'to_field': 'prevdoc_docname'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'parenttype',
'match_id': 1,
'to_field': 'prevdoc_doctype'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'eval: flt(obj.qty) - flt(obj.installed_qty)',
'match_id': 1,
'to_field': 'qty'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'posting_date',
'match_id': 2,
'to_field': 'prevdoc_date'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_field': 'delivery_note_details',
'from_table': 'Delivery Note Detail',
'match_id': 1,
'to_field': 'installed_item_details',
'to_table': 'Installed Item Details',
'validation_logic': 'qty > ifnull(installed_qty,0) and docstatus = 1'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Delivery Note',
'match_id': 0,
'to_table': 'Installation Note',
'validation_logic': 'docstatus = 1'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Delivery Note',
'match_id': 2,
'reference_doctype_key': 'prevdoc_doctype',
'reference_key': 'prevdoc_docname',
'to_field': 'installed_item_details',
'to_table': 'Installed Item Details',
'validation_logic': 'docstatus = 1'
}
]

View File

@@ -1,114 +0,0 @@
# DocType Mapper, Enquiry-Quotation
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:34',
'docstatus': 0,
'modified': '2011-05-10 16:04:40',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'name': '__common__',
'parent': 'Enquiry-Quotation',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper',
'validation_logic': 'docstatus=1'
},
# These values are common for all Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'map': 'Yes',
'name': '__common__',
'parent': 'Enquiry-Quotation',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Enquiry',
'module': 'Selling',
'name': '__common__',
'ref_doc_submitted': 1,
'to_doctype': 'Quotation'
},
# DocType Mapper, Enquiry-Quotation
{
'doctype': 'DocType Mapper',
'name': 'Enquiry-Quotation'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'uom',
'match_id': 1,
'to_field': 'stock_uom'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'match_id': 0,
'to_field': 'enq_no'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'parent',
'match_id': 1,
'to_field': 'prevdoc_docname'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'parenttype',
'match_id': 1,
'to_field': 'prevdoc_doctype'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'enquiry_from',
'match_id': 0,
'to_field': 'quotation_to'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'enquiry_type',
'match_id': 0,
'to_field': 'order_type'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Enquiry',
'match_id': 0,
'to_table': 'Quotation'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_field': 'enq_details',
'from_table': 'Enquiry Detail',
'match_id': 1,
'to_field': 'quotation_details',
'to_table': 'Quotation Detail'
}
]

View File

@@ -1,84 +0,0 @@
# DocType Mapper, Lead-Customer
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:34',
'docstatus': 0,
'modified': '2010-10-14 13:39:44',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Lead',
'match_id': 0,
'name': '__common__',
'parent': 'Lead-Customer',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper',
'to_table': 'Customer',
'validation_logic': 'name is not null'
},
# These values are common for all Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'map': 'Yes',
'match_id': 0,
'name': '__common__',
'parent': 'Lead-Customer',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Lead',
'module': 'Selling',
'name': '__common__',
'to_doctype': 'Customer'
},
# DocType Mapper, Lead-Customer
{
'doctype': 'DocType Mapper',
'name': 'Lead-Customer'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'to_field': 'lead_name'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'company_name',
'to_field': 'customer_name'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'contact_no',
'to_field': 'phone_1'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'fax',
'to_field': 'fax_1'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail'
}
]

View File

@@ -1,77 +0,0 @@
# DocType Mapper, Lead-Enquiry
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:34',
'docstatus': 0,
'modified': '2010-08-05 20:21:54',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Lead',
'match_id': 0,
'name': '__common__',
'parent': 'Lead-Enquiry',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper',
'to_table': 'Enquiry',
'validation_logic': 'name is not null'
},
# These values are common for all Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'map': 'Yes',
'match_id': 0,
'name': '__common__',
'parent': 'Lead-Enquiry',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Lead',
'module': 'Selling',
'name': '__common__',
'to_doctype': 'Enquiry'
},
# DocType Mapper, Lead-Enquiry
{
'doctype': 'DocType Mapper',
'name': 'Lead-Enquiry'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'campaign_name',
'to_field': 'campaign'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'doctype',
'to_field': 'enquiry_from'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'to_field': 'lead'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail'
}
]

View File

@@ -1,64 +0,0 @@
# DocType Mapper, Project-Sales Order
[
# These values are common in all dictionaries
{
'creation': '2010-09-01 15:48:10',
'docstatus': 0,
'modified': '2010-09-01 14:23:28',
'modified_by': 'Administrator',
'owner': 'ashwini@webnotestech.com'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Project',
'match_id': 0,
'name': '__common__',
'parent': 'Project-Sales Order',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper',
'to_table': 'Sales Order',
'validation_logic': 'name is not null'
},
# These values are common for all Field Mapper Detail
{
'checking_operator': '=',
'doctype': 'Field Mapper Detail',
'from_field': 'customer',
'map': 'Yes',
'match_id': 0,
'name': '__common__',
'parent': 'Project-Sales Order',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper',
'to_field': 'customer'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Project',
'module': 'Selling',
'name': '__common__',
'to_doctype': 'Sales Order'
},
# DocType Mapper, Project-Sales Order
{
'doctype': 'DocType Mapper',
'name': 'Project-Sales Order'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail'
}
]

View File

@@ -1,156 +0,0 @@
# DocType Mapper, Quotation-Sales Order
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:35',
'docstatus': 0,
'modified': '2011-08-25 18:25:02',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'name': '__common__',
'parent': 'Quotation-Sales Order',
'parentfield': 'table_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'name': '__common__',
'parent': 'Quotation-Sales Order',
'parentfield': 'field_mapper_details',
'parenttype': 'DocType Mapper'
},
# These values are common for all DocType Mapper
{
'doctype': 'DocType Mapper',
'from_doctype': 'Quotation',
'module': 'Selling',
'name': '__common__',
'ref_doc_submitted': 1,
'to_doctype': 'Sales Order'
},
# DocType Mapper, Quotation-Sales Order
{
'doctype': 'DocType Mapper',
'name': 'Quotation-Sales Order'
},
# Field Mapper Detail
{
'checking_operator': '>=',
'doctype': 'Field Mapper Detail',
'from_field': 'transaction_date',
'map': 'No',
'match_id': 0,
'to_field': 'transaction_date'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'transaction_date',
'map': 'Yes',
'match_id': 0,
'to_field': 'quotation_date'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'name',
'map': 'Yes',
'match_id': 0,
'to_field': 'quotation_no'
},
# Field Mapper Detail
{
'checking_operator': '=',
'doctype': 'Field Mapper Detail',
'from_field': 'company',
'map': 'Yes',
'match_id': 0,
'to_field': 'company'
},
# Field Mapper Detail
{
'checking_operator': '=',
'doctype': 'Field Mapper Detail',
'from_field': 'fiscal_year',
'map': 'Yes',
'match_id': 0,
'to_field': 'fiscal_year'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'parent',
'map': 'Yes',
'match_id': 1,
'to_field': 'prevdoc_docname'
},
# Field Mapper Detail
{
'doctype': 'Field Mapper Detail',
'from_field': 'naming_series',
'map': 'No',
'match_id': 0,
'to_field': 'naming_series'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_field': 'sales_team',
'from_table': 'Sales Team',
'match_id': 3,
'to_field': 'sales_team',
'to_table': 'Sales Team',
'validation_logic': 'name is not null'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_field': 'other_charges',
'from_table': 'RV Tax Detail',
'match_id': 2,
'to_field': 'other_charges',
'to_table': 'RV Tax Detail',
'validation_logic': 'name is not null'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_field': 'quotation_details',
'from_table': 'Quotation Detail',
'match_id': 1,
'reference_doctype_key': 'prevdoc_doctype',
'to_field': 'sales_order_details',
'to_table': 'Sales Order Detail',
'validation_logic': 'name is not null'
},
# Table Mapper Detail
{
'doctype': 'Table Mapper Detail',
'from_table': 'Quotation',
'match_id': 0,
'reference_key': 'prevdoc_docname',
'to_table': 'Sales Order',
'validation_logic': 'docstatus = 1'
}
]