move opportunity item to CRM
This commit is contained in:
parent
3c626faf8f
commit
7c32770a69
@ -407,8 +407,8 @@
|
|||||||
"icon": "icon-info-sign",
|
"icon": "icon-info-sign",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"modified": "2015-04-02 21:33:55.090127",
|
"modified": "2015-04-02 22:03:52.841173",
|
||||||
"modified_by": "rmehta@gmail.com",
|
"modified_by": "Administrator",
|
||||||
"module": "CRM",
|
"module": "CRM",
|
||||||
"name": "Opportunity",
|
"name": "Opportunity",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
|
|||||||
0
erpnext/crm/doctype/opportunity_item/__init__.py
Normal file
0
erpnext/crm/doctype/opportunity_item/__init__.py
Normal file
@ -133,9 +133,9 @@
|
|||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"modified": "2015-02-23 02:09:55.105233",
|
"modified": "2015-04-02 22:04:26.867653",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "CRM",
|
||||||
"name": "Opportunity Item",
|
"name": "Opportunity Item",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": []
|
"permissions": []
|
||||||
@ -1,9 +1,9 @@
|
|||||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
# -*- coding: utf-8 -*-
|
||||||
# License: GNU General Public License v3. See license.txt
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and contributors
|
||||||
|
# For license information, please see license.txt
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
|
||||||
class OpportunityItem(Document):
|
class OpportunityItem(Document):
|
||||||
@ -5,8 +5,10 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doctype("Opportunity")
|
frappe.reload_doc('crm', 'doctype', 'opportunity')
|
||||||
|
frappe.reload_doc('crm', 'doctype', 'opportunity_item')
|
||||||
|
|
||||||
# all existing opportunities were with items
|
# all existing opportunities were with items
|
||||||
|
frappe.db.sql("update `tabDocType` set module = 'CRM' where name='Opportunity Item'")
|
||||||
frappe.db.sql("update tabOpportunity set with_items=1, title=customer_name")
|
frappe.db.sql("update tabOpportunity set with_items=1, title=customer_name")
|
||||||
frappe.db.sql("update `tabEmail Account` set append_to='Opportunity' where append_to='Lead'")
|
frappe.db.sql("update `tabEmail Account` set append_to='Opportunity' where append_to='Lead'")
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
Items considered in the parent Opportunity.
|
|
||||||
@ -1 +0,0 @@
|
|||||||
from __future__ import unicode_literals
|
|
||||||
@ -218,8 +218,8 @@
|
|||||||
],
|
],
|
||||||
"icon": "icon-ticket",
|
"icon": "icon-ticket",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"modified": "2015-04-02 21:27:09.303683",
|
"modified": "2015-04-02 22:06:02.684820",
|
||||||
"modified_by": "rmehta@gmail.com",
|
"modified_by": "Administrator",
|
||||||
"module": "Support",
|
"module": "Support",
|
||||||
"name": "Issue",
|
"name": "Issue",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user