[IMP] put groups attributes in the product's form view in order to hide qty incoming, qty outgoing, qty available, procurement method and costing method from portal users

also remove some code commented out since 2010 (written by qdp, commented by sbh)

bzr revid: abo@openerp.com-20120725162306-n4ypzds4ltsrhy6j
This commit is contained in:
Antonin Bourguignon
2012-07-25 18:23:06 +02:00
parent e7f3b6f14c
commit 8ea8f1da5b
2 changed files with 9 additions and 21 deletions
+3 -3
View File
@@ -73,7 +73,7 @@
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" string="Product Name"/>
<label for="name" string="Product Name"/>
</div>
<h1>
<field name="name"/>
@@ -95,12 +95,12 @@
</group>
<group string="Procurement">
<field name="type"/>
<field name="procure_method"/>
<field name="procure_method" groups="base.group_user"/>
<field name="supply_method" groups="base.group_user"/>
</group>
<group string="Prices">
<field name="list_price"/>
<field name="cost_method"/>
<field name="cost_method" groups="base.group_user"/>
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"/>
<field name="price_margin" groups="product.group_product_variant"/>
<field name="price_extra" groups="product.group_product_variant"/>
+6 -18
View File
@@ -105,15 +105,15 @@
<group name="status" position="before" version="7.0">
<group string="Stock and Expected Variations">
<field name="qty_available"/>
<field name="incoming_qty"/>
<label for="virtual_available"/>
<div>
<field name="incoming_qty" groups="base.group_user"/>
<label for="virtual_available" groups="base.group_user"/>
<div groups="base.group_user">
<field name="virtual_available" class="oe_inline"/>
<button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
type="action" icon="gtk-execute" groups="stock.group_stock_manager,stock.group_stock_user" class="oe_inline"/>
</div>
<field name="outgoing_qty"/>
<field name="outgoing_qty" groups="base.group_user"/>
</group>
<group name="lot" groups="stock.group_tracking_lot,stock.group_production_lot" string="Lots">
<field name="track_production" groups="stock.group_production_lot"/>
@@ -123,7 +123,7 @@
</group>
</field>
</record>
<record id="action_receive_move" model="ir.actions.act_window">
<field name="name">Receive Products</field>
<field name="res_model">stock.move</field>
@@ -136,7 +136,7 @@
<field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
<field name="help">Here you can receive individual products, no matter what purchase order or picking order they come from. You will find the list of all products you are waiting for. Once you receive an order, you can filter based on the name of the supplier or the purchase order reference. Then you can confirm all products received using the buttons on the right of each line.</field>
</record>
<record id="action_deliver_move" model="ir.actions.act_window">
<field name="name">Receive Products</field>
<field name="res_model">stock.move</field>
@@ -215,17 +215,5 @@
</field>
</record>
<!-- <record id="view_product_valuation_form" model="ir.ui.view">
<field name="name">product.valuation.stock.form.inherit</field>
<field name="model">product.product</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="cost_method" position="after">
<field name="valuation"/>
</field>
</field>
</record>-->
</data>
</openerp>