From 2e830931bb9e0c24f3bab9416880ab74674c9bcb Mon Sep 17 00:00:00 2001 From: "Atul Patel (OpenERP)" Date: Thu, 17 Feb 2011 14:06:34 +0530 Subject: [PATCH] [ADD]: Add Message wizard bzr revid: atp@tinyerp.com-20110217083634-8aw5rz8q3pfz0rdo --- addons/import_sugarcrm/import_sugarcrm.py | 2 +- addons/import_sugarcrm/wizard/__init__.py | 23 ++++++++ addons/import_sugarcrm/wizard/import_message.py | 29 ++++++++++ .../import_sugarcrm/wizard/import_message_view.xml | 21 ++++++++ addons/import_sugarcrm/wizard/sugarcrm_login.py | 56 ++++++++++++++++++++ .../import_sugarcrm/wizard/sugarcrm_login_view.xml | 45 ++++++++++++++++ 6 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 addons/import_sugarcrm/wizard/__init__.py create mode 100644 addons/import_sugarcrm/wizard/import_message.py create mode 100644 addons/import_sugarcrm/wizard/import_message_view.xml create mode 100644 addons/import_sugarcrm/wizard/sugarcrm_login.py create mode 100644 addons/import_sugarcrm/wizard/sugarcrm_login_view.xml diff --git a/addons/import_sugarcrm/import_sugarcrm.py b/addons/import_sugarcrm/import_sugarcrm.py index d99f0d9..9fd3977 100644 --- a/addons/import_sugarcrm/import_sugarcrm.py +++ b/addons/import_sugarcrm/import_sugarcrm.py @@ -206,7 +206,7 @@ class import_sugarcrm(osv.osv): 'views': [(resource_id,'form')], 'type': 'ir.actions.act_window', 'target': 'new', - } + } import_sugarcrm() diff --git a/addons/import_sugarcrm/wizard/__init__.py b/addons/import_sugarcrm/wizard/__init__.py new file mode 100644 index 0000000..09c13c3 --- /dev/null +++ b/addons/import_sugarcrm/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +import sugarcrm_login +import import_message diff --git a/addons/import_sugarcrm/wizard/import_message.py b/addons/import_sugarcrm/wizard/import_message.py new file mode 100644 index 0000000..7c9f170 --- /dev/null +++ b/addons/import_sugarcrm/wizard/import_message.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from osv import fields, osv + +class import_message(osv.osv): + """Import Message""" + + _name = "import.message" + _description = __doc__ + +import_message() diff --git a/addons/import_sugarcrm/wizard/import_message_view.xml b/addons/import_sugarcrm/wizard/import_message_view.xml new file mode 100644 index 0000000..ac619ef --- /dev/null +++ b/addons/import_sugarcrm/wizard/import_message_view.xml @@ -0,0 +1,21 @@ + + + + + + + import.message.form + import.message + form + +
+