summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-07-25 18:23:06 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-07-25 18:23:06 +0200
commit8ea8f1da5b1da4d137bc0f25b49d6caa4ee2f25c (patch)
tree2c3122f1869067cf768a2d3edf449d20bdb4246d /addons
parente7f3b6f14c7f0e2c4c06d57cb962d893bc6176fc (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/product/product_view.xml6
-rw-r--r--addons/stock/product_view.xml24
2 files changed, 9 insertions, 21 deletions
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index 4fe51dc67f6..48c9327b903 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -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"/>
diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml
index 04a0959739a..d5a3545a1b3 100644
--- a/addons/stock/product_view.xml
+++ b/addons/stock/product_view.xml
@@ -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>