[FIX]base_setup,google_drive: res_config view correction for module google drive
bzr revid: dle@openerp.com-20130626095005-wx9x79pmqg8o2de7
This commit is contained in:
parent
c74517990f
commit
2da193d242
|
@ -84,7 +84,7 @@
|
|||
<group>
|
||||
<label for="id" string="Google Drive"/>
|
||||
<div name="google_drive">
|
||||
<div name="google_docs">
|
||||
<div name="module_google_drive">
|
||||
<field name="module_google_drive" class="oe_inline"/>
|
||||
<label for="module_google_drive"/>
|
||||
</div>
|
||||
|
|
|
@ -214,7 +214,7 @@ class base_config_settings(osv.osv):
|
|||
_inherit = "base.config.settings"
|
||||
|
||||
_columns = {
|
||||
'google_drive_authorization_code': fields.char('Paste Generated "Authorization Code" from google to here', size=124),
|
||||
'google_drive_authorization_code': fields.char('Authorization Code', size=124),
|
||||
'google_drive_uri': fields.char('URI', readonly=True, help="The URL to generate the authorization code from Google"),
|
||||
}
|
||||
_defaults = {
|
||||
|
|
|
@ -73,17 +73,14 @@
|
|||
<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='google_drive']" position="after">
|
||||
<xpath expr="//div[@name='module_google_drive']" position="after">
|
||||
<div attrs="{'invisible': [('module_google_drive','=',False)]}">
|
||||
<p class="oe_gray" >
|
||||
<div class="oe_inline">
|
||||
Click here to <field name="google_drive_uri" widget="url" text="Generate Google Authorization Code" class="oe_inline oe_bold"/>
|
||||
</div>
|
||||
<group>
|
||||
<field name="google_drive_authorization_code" on_change="onchange_google_authorization_code('drive', google_drive_authorization_code)"/>''
|
||||
</group>
|
||||
Configure your templates and link your google document to OpenERP records <button type="action" name="%(google_drive.action_google_drive_users_config)d" string="Configure Template" class="oe_link" />
|
||||
</p>
|
||||
<div class="oe_inline">
|
||||
<field name="google_drive_uri" widget="url" text="Generate Google Authorization Code" class="oe_inline oe_bold"/>
|
||||
and paste it here
|
||||
<field name="google_drive_authorization_code" on_change="onchange_google_authorization_code('drive', google_drive_authorization_code)" class="oe_inline" />
|
||||
</div>
|
||||
<button type="action" name="%(google_drive.action_google_drive_users_config)d" string="Configure your templates" class="oe_link" />
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue