move opportunity item to CRM

This commit is contained in:
Rushabh Mehta 2015-04-02 22:06:36 +05:30
parent 3c626faf8f
commit 7c32770a69
8 changed files with 13 additions and 13 deletions

View File

@ -407,8 +407,8 @@
"icon": "icon-info-sign",
"idx": 1,
"is_submittable": 1,
"modified": "2015-04-02 21:33:55.090127",
"modified_by": "rmehta@gmail.com",
"modified": "2015-04-02 22:03:52.841173",
"modified_by": "Administrator",
"module": "CRM",
"name": "Opportunity",
"owner": "Administrator",

View File

@ -133,9 +133,9 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-02-23 02:09:55.105233",
"modified": "2015-04-02 22:04:26.867653",
"modified_by": "Administrator",
"module": "Selling",
"module": "CRM",
"name": "Opportunity Item",
"owner": "Administrator",
"permissions": []

View File

@ -1,10 +1,10 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class OpportunityItem(Document):
pass
pass

View File

@ -5,8 +5,10 @@ from __future__ import unicode_literals
import frappe
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
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 `tabEmail Account` set append_to='Opportunity' where append_to='Lead'")

View File

@ -1 +0,0 @@
Items considered in the parent Opportunity.

View File

@ -1 +0,0 @@
from __future__ import unicode_literals

View File

@ -218,8 +218,8 @@
],
"icon": "icon-ticket",
"idx": 1,
"modified": "2015-04-02 21:27:09.303683",
"modified_by": "rmehta@gmail.com",
"modified": "2015-04-02 22:06:02.684820",
"modified_by": "Administrator",
"module": "Support",
"name": "Issue",
"owner": "Administrator",