[ADD] Added 'groups_id' field into 'ir_ui_view' model.

bzr revid: mdi@tinyerp.com-20120829055333-6iw12tthxeidkkus
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-08-29 11:23:33 +05:30
parent fc01690a94
commit 004a1a64ee
2 changed files with 12 additions and 2 deletions
+9 -2
View File
@@ -599,8 +599,15 @@
<field name="xml_id"/>
</group>
</group>
<field name="arch"/>
</sheet>
<notebook>
<page string="Architecture">
<field name="arch"/>
</page>
<page string="Groups">
<field name="groups_id"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
+3
View File
@@ -63,6 +63,9 @@ class view(osv.osv):
'name': fields.char('View Name',size=64, required=True),
'model': fields.char('Object', size=64, required=True, select=True),
'priority': fields.integer('Sequence', required=True),
'groups_id': fields.many2many('res.groups', 'ir_ui_view_group_rel',
'view_id', 'group_id', 'Groups', help="If you have groups, the visibility of this view will be based on these groups. "\
"If this field is empty, OpenERP will compute visibility based on the related object's read access."),
'type': fields.function(_type_field, type='selection', selection=[
('tree','Tree'),
('form','Form'),