[FIX] Stock : Product Packaging field was missing domain
[odoo/odoo.git] / addons / stock / report_stock_view.xml
index 0c28d69..61381af 100644 (file)
             src_model="product.product"/>
 
         <act_window
-            domain="[('prodlot_id', '=', active_id)]" 
-            id="act_stock_production_lot_2_stock_report_prodlots" 
+            domain="[('prodlot_id', '=', active_id)]"
+            id="act_stock_production_lot_2_stock_report_prodlots"
             name="Stock" res_model="stock.report.prodlots"
             src_model="stock.production.lot"/>
 
+
+               <!-- report , stock inventories date... start -->
+               <record model="ir.ui.view" id="report_stock_lines_date_tree">
+                       <field name="name">report.stock.lines.date.tree</field>
+                       <field name="model">report.stock.lines.date</field>
+                       <field name="type">tree</field>
+                       <field name="arch" type="xml">
+                               <tree string="Dates of Inventories">
+                                       <field name="product_id"/>
+                                       <field name="id"/>
+                                       <field name="create_date" />
+                               </tree>
+                       </field>
+               </record>
+
+               <record model="ir.ui.view" id="report_stock_lines_date_form">
+                       <field name="name">report.stock.lines.date.form</field>
+                       <field name="model">report.stock.lines.date</field>
+                       <field name="type">form</field>
+                       <field name="arch" type="xml">
+                               <form string="Dates of Inventories">
+                                       <field name="product_id" select="1"/>
+                                       <field name="id" select="2"/>
+                                       <field name="create_date" select="1" />
+                               </form>
+                       </field>
+               </record>
+
+               <record model="ir.actions.act_window" id="action_stock_line_date">
+                       <field name="name">Dates of Inventories</field>
+                       <field name="res_model">report.stock.lines.date</field>
+                       <field name="view_type">form</field>
+                       <field name="view_mode">tree,form</field>
+               </record>
+               
+               <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date"/>
+               
+               <record id="view_location_tree_3" model="ir.ui.view">
+            <field name="name">stock.location.tree</field>
+            <field name="model">stock.location</field>
+            <field name="type">tree</field>
+            <field name="arch" type="xml">
+                <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
+                    <field name="complete_name"/>
+                    <field name="usage"/>
+                    <field name="stock_real_value" />
+                    <field name="stock_virtual_value" />
+                </tree>
+            </field>
+        </record>
+        
+        <record id="action_location_tree_3" model="ir.actions.act_window">
+            <field name="name">Locations' Values</field>
+            <field name="res_model">stock.location</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">tree</field>
+            <field name="view_id" ref="view_location_tree_3"/>
+        </record>
+        <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" />
+
+       <!-- end...  -->
+
     </data>
 </openerp>