[ADD] Added needed files. Still not working as it should

bzr revid: vta@openerp.com-20120816153606-qx5fm6j8tx7d3a0c
This commit is contained in:
vta vta@openerp.com 2012-08-16 17:36:06 +02:00
parent 761204d6b6
commit 47b8d4ee97
7 changed files with 65 additions and 7 deletions

View File

@ -1,3 +1,4 @@
import controllers
import auth_oauth
import res_users
import res_config

View File

@ -28,12 +28,13 @@
'author': 'Victor Tabuenca',
'maintainer': 'OpenERP s.a.',
'website': 'http://www.openerp.com',
'depends': ['base', 'web'],
'depends': ['base', 'web', 'base_setup'],
'data': [
'auth_oauth_data.xml'
'auth_oauth_data.xml',
],
'update_xml': [
'auth_oauth_view.xml'
'auth_oauth_view.xml',
'res_config_view.xml',
],
'js': [
'static/src/js/auth_oauth.js',

View File

@ -23,6 +23,7 @@
</form>
</field>
</record>
<record model="ir.ui.view" id="view_oauth_provider_list">
<field name="name">auth.oauth.provider.list</field>
<field name="model">auth.oauth.provider</field>

View File

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012-Today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
##############################################################################
from openerp.osv import osv, fields
class project_configuration(osv.TransientModel):
_inherit = 'base.config.settings'
_columns = {
'explanation' : fields.text('Deployment Explanation',),
'client_id' : fields.char('Client ID'),
}
# def get_default_alias_domain(self, cr, uid, ids, context=None):
# return {'alias_domain': self.pool.get("ir.config_parameter").get_param(cr, uid, "mail.catchall.domain", context=context)}
# def set_alias_domain(self, cr, uid, ids, context=None):
# config_parameters = self.pool.get("ir.config_parameter")
# for record in self.browse(cr, uid, ids, context=context):
# config_parameters.set_param(cr, uid, "mail.catchall.domain", record.alias_domain or '', context=context)

View File

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_general_configuration_auth_oauth">
<field name="name">base.config.auth.oauth</field>
<field name="model">model</field>
<field name="type">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='module_auth_signup']" position="after">
<label for="explanation" class="oe_inline"/>
<field name="explanation" placeholder="Here goes the explanation" class="oe_inline"/>
</xpath>
</field>
</record>
</data>
</openerp>

View File

@ -27,7 +27,7 @@
</div>
</div>
</group>
<group name="email">
<group>
<label for="id" string="Email"/>
<div name="email">
<div>
@ -57,7 +57,6 @@
<field name="module_auth_signup" class="oe_inline"/>
<label for="module_auth_signup"/>
</div>
->
<div>
<field name="module_auth_oauth" class="oe_inline"/>
<label for="module_auth_oauth"/>

View File

@ -6,9 +6,10 @@
<field name="model">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='email']" position='inside' version="7.0">
<xpath expr="//div[@name='email']" position='inside'>
<div>
<label for="alias_domain" class="oe_inline"/><field name="alias_domain" placeholder="mycompany.my.openerp.com" class="oe_inline"/>
<label for="alias_domain" class="oe_inline"/>
<field name="alias_domain" placeholder="mycompany.my.openerp.com" class="oe_inline"/>
</div>
</xpath>
</field>