diff --git a/addons/google_base_account/__init__.py b/addons/google_base_account/__init__.py new file mode 100644 index 00000000000..44a5aabe277 --- /dev/null +++ b/addons/google_base_account/__init__.py @@ -0,0 +1,25 @@ +# -*- 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 google_base_account + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/addons/google_base_account/__openerp__.py b/addons/google_base_account/__openerp__.py new file mode 100644 index 00000000000..4844d9961c4 --- /dev/null +++ b/addons/google_base_account/__openerp__.py @@ -0,0 +1,40 @@ +# -*- 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 . +# +############################################################################## + + +{ + 'name': 'Google user', + 'version': '1.0', + 'category': 'Generic Modules/Others', + 'description': """The module adds google user in res user""", + 'author': 'OpenERP SA', + 'website': 'http://www.openerp.com', + 'depends': ['base'], + 'init_xml': [], + 'update_xml': [ + 'google_base_account_view.xml', + ], + 'demo_xml': [], + 'installable': True, + 'active': False, + 'certificate': '', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/google_base_account/google_base_account.py b/addons/google_base_account/google_base_account.py new file mode 100644 index 00000000000..1fdb07b7242 --- /dev/null +++ b/addons/google_base_account/google_base_account.py @@ -0,0 +1,36 @@ +# -*- 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,orm + + +class res_users(osv.osv): + _inherit = "res.users" + _columns = { + 'gmail_user': fields.char('User Name', size=64,), + 'gmail_password': fields.char('Password', size=64), + } + def check_login(self, cr, uid, ids, context=None): + # we can check login detail is correct or not + return {'type': 'ir.actions.act_window_close'} +res_users() +# vim:expandtab:smartindent:toabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/addons/google_base_account/google_base_account_view.xml b/addons/google_base_account/google_base_account_view.xml new file mode 100644 index 00000000000..abb77173bde --- /dev/null +++ b/addons/google_base_account/google_base_account_view.xml @@ -0,0 +1,61 @@ + + + + + res.users.google.form + res.users + form + +
+ + + + + + +