[ADD] added employee group on the fields which were not important for user portal group

bzr revid: bde@tinyerp.com-20120424111005-fmwegq68ogkmetb6
This commit is contained in:
Bharat Devnani (OpenERP) 2012-04-24 16:40:05 +05:30
parent 60645fd605
commit 455343f4ee
5 changed files with 18 additions and 16 deletions

View File

@ -8,7 +8,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Accounting">
<page string="Accounting" groups="base.group_user">
<group name="properties" groups="base.group_extended">
<separator string="Sales Properties" colspan="2"/>
<separator string="Purchase Properties" colspan="2"/>

View File

@ -98,8 +98,8 @@
</field>
<field name="state" select="1" widget="statusbar" statusbar_visible="draft,confirm,done"/>
<group col="4" colspan="2">
<button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel"/>
<button string="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply"/>
<button string="Cancel Event" name="button_cancel" states="draft,confirm" type="object" icon="gtk-cancel" groups="base.group_user"/>
<button string="Confirm Event" name="button_confirm" states="draft" type="object" icon="gtk-apply" groups="base.group_user"/>
<button string="Event Done" name="button_done" states="confirm" type="object" icon="gtk-jump-to"/>
<button string="Set To Draft" name="button_draft" states="cancel,done" type="object" icon="gtk-convert"/>
</group>
@ -120,8 +120,8 @@
<field name="register_attended"/>
</group>
<group col="2" colspan="2">
<separator string="Emails" colspan="2"/>
<field name="reply_to"/>
<separator string="Emails" colspan="2" groups="base.group_user"/>
<field name="reply_to" groups="base.group_user"/>
<field name="email_registration_id" domain="[('model_id.model','=','event.registration')]" groups="base.group_extended"/>
<field name="email_confirmation_id" domain="[('model_id.model','=','event.registration')]" groups="base.group_extended"/>
</group>

View File

@ -283,7 +283,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<group name="misc" position="after">
<group col="2" colspan="2" attrs="{'invisible':[('type', '=', 'service')]}">
<group col="2" colspan="2" attrs="{'invisible':[('type', '=', 'service')]}" groups="base.group_user">
<separator string="Minimum Stock Rules" colspan="2"/>
<field name="orderpoint_ids" context="{'default_product_uom': uom_id}" nolabel="1">
<tree string="Minimum Stock Rule" editable="bottom">

View File

@ -80,7 +80,7 @@
<field name="default_code"/>
<field name="ean13" groups="base.group_extended"/>
</group>
<group colspan="1" col="2">
<group colspan="1" col="2" groups="base.group_user">
<separator string="Characteristics" colspan="2"/>
<field name="sale_ok"/>
<field name="purchase_ok"/>
@ -95,7 +95,7 @@
<separator string="Procurement" colspan="2"/>
<field name="type"/>
<field name="procure_method" groups="base.group_extended"/>
<field name="supply_method"/>
<field name="supply_method" groups="base.group_user"/>
</group>
<group colspan="2" col="2">
<separator string="Base Prices" colspan="2"/>
@ -143,7 +143,7 @@
<field name="produce_delay"/>
<field name="warranty"/>
</group>
<group colspan="2" col="2" name="store">
<group colspan="2" col="2" name="store" groups="base.group_user">
<separator string="Storage Localisation" colspan="2"/>
<field name="loc_rack" attrs="{'readonly':[('type','=','service')]}" />
<field name="loc_row" attrs="{'readonly':[('type','=','service')]}"/>
@ -157,16 +157,16 @@
</group>
</page>
<page string="Suppliers">
<page string="Suppliers" groups="base.group_user">
<field colspan="4" name="seller_ids" nolabel="1" context="{'uom_id': uom_id}"/>
</page>
<page string="Descriptions">
<separator string="Description"/>
<field colspan="4" name="description" nolabel="1"/>
<separator string="Description" groups="base.group_user"/>
<field colspan="4" name="description" nolabel="1" groups="base.group_user"/>
<separator string="Sale Description"/>
<field colspan="4" name="description_sale" nolabel="1"/>
<separator string="Purchase Description"/>
<field colspan="4" name="description_purchase" nolabel="1"/>
<separator string="Purchase Description" groups="base.group_user"/>
<field colspan="4" name="description_purchase" nolabel="1" groups="base.group_user"/>
</page>
<page groups="product.group_stock_packaging" string="Packaging">
<field colspan="4" name="packaging" nolabel="1">

View File

@ -61,8 +61,10 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="standard_price" position="replace">
<label string="Cost Price :" align="1.0"/>
<group col="2" colspan="1">
<group groups="base.group_user">
<label string="Cost Price :" align="1.0"/>
</group>
<group col="2" colspan="1" groups="base.group_user">
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
<button name="%(action_view_change_standard_price)d" string="Update"
type="action" icon="gtk-execute" attrs="{'invisible':[('cost_method','&lt;&gt;','average')]}"/>