[IMP] error messages during database creation failure, with thanks to Serpent Consulting
[odoo/odoo.git] / addons / product_margin / product_margin_view.xml
index 7195392..87022bd 100644 (file)
@@ -1,15 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
 <data>
-
-    <wizard id="action_open_margin" menu="False" model="product.product" name="product.margins" string="Product Margins"/>
-
-    <menuitem id="menu_product_reporting"
-        name="Reporting" parent ="product.menu_main_product"
-        groups="product.group_product_manager"/>
-
-    <menuitem icon="STOCK_JUSTIFY_FILL" action="action_open_margin" id="menu_action_product_margin" type="wizard" sequence="5" parent="menu_product_reporting" />
-
     <record model="ir.ui.view" id="view_product_margin_graph">
             <field name="name">product.margin.graph</field>
             <field name="model">product.product</field>
@@ -64,7 +55,6 @@
                         <field name="expected_margin"/>
                         <field name="total_margin_rate" widget="progressbar"/>
                         <field name="expected_margin_rate" widget="progressbar"/>
-
                     </page>
                     </notebook>
                 </form>
                     <field name="expected_margin"/>
                     <field name="total_margin_rate"  widget="progressbar"/>
                     <field name="expected_margin_rate" widget="progressbar"/>
+                    <field name="categ_id" invisible="1"/>
+                    <field name="uom_id" invisible="1"/>
+                    <field name="type" invisible="1"/>
             </tree>
             </field>
         </record>
 
+  <menuitem icon="STOCK_JUSTIFY_FILL" action="product_margin_act_window" id="menu_action_product_margin" name="Product Margins" sequence="5" parent="base.menu_product"/>
+
 </data>
 </openerp>