[IMP] security groups for HR + 'group by' in extended views in some views (stock moves, mrp, documents)

bzr revid: fde@openerp.com-20101227104651-23h1xm7hh2qnr7m7
This commit is contained in:
François Degrave
2010-12-27 11:46:51 +01:00
parent e94cc8444c
commit 53ea5a328b
10 changed files with 25 additions and 16 deletions
+5 -4
View File
@@ -311,13 +311,14 @@
<field name="type">search</field>
<field name="inherit_id" ref="base.view_attachment_search"/>
<field name="arch" type="xml">
<xpath expr="/search/group[@string='Group By...']" position="attributes">
<attribute name="groups">base.group_extended</attribute>
</xpath>
<filter string="Owner" position="replace">
<filter string="Owner" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
<filter string="Partner" icon="terp-partner" domain="[]"
context="{'group_by':'partner_id'}" groups="base.group_extended"/>
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
<filter string="Directory" icon="terp-folder-green" domain="[]" context="{'group_by':'parent_id'}"/>
</filter>
</filter>
</field>
</record>