[imp] config view
bzr revid: rlo@openerp.com-20120305145001-uut48z736imzbwtn
This commit is contained in:
@@ -124,7 +124,7 @@ class google_docs_config(osv.osv):
|
||||
res = super(users, self).create(cr, uid, vals, context=context)
|
||||
model_obj=self.pool.get('ir.model')
|
||||
if vals.get('context_gdocs_resource_id') and vals.get('context_model_id'):
|
||||
self.write(cr, uid, #[vals['model_id']], {'member_ids':[(4, res)]},
|
||||
self.write(cr, uid,
|
||||
{
|
||||
'model_id': model_obj.get(cr, uid, vals.get('context_model_id'))[0],
|
||||
'gdocs_resource_id': vals.get('context_gdocs_resource_id'),
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<!-- add google docs config field in user form -->
|
||||
<record id="view_google_docs_users_config_inherited_form" model="ir.ui.view">
|
||||
<field name="name">res.gdocs.users.form</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="default_filters" position="inside">
|
||||
<field name="context_model_id" string='Model ID' completion='1' readonly='0'/>
|
||||
<field name="context_context_gdocs_resource_id" string='Google Docs resource ID' completion='1' readonly='0'/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user