1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="stock_report_prodlots_tree" model="ir.ui.view">
6 <field name="name">stock.report.prodlots.view</field>
7 <field name="model">stock.report.prodlots</field>
8 <field name="type">tree</field>
9 <field name="arch" type="xml">
10 <tree string="Stock by Lots">
11 <field name="location_id"/>
12 <field name="product_id"/>
13 <field name="prodlot_id"/>
18 <record id="action_stock_report_prodlots_form" model="ir.actions.act_window">
19 <field name="name">Stock by Lots</field>
20 <field name="type">ir.actions.act_window</field>
21 <field name="res_model">stock.report.prodlots</field>
22 <field name="view_type">form</field>
23 <field name="view_mode">form,tree</field>
29 parent="stock.menu_stock_root"/>
37 action="action_stock_report_prodlots_form"
38 id="menu_stock_report_prodlots"
42 context="{'product_id': active_id}"
43 id="act_stock_product_location_open"
44 name="Stock by Location"
45 res_model="stock.location"
46 src_model="product.product"/>
49 domain="[('location_id', '=', active_id)]"
50 id="act_stock_location_2_stock_report_prodlots"
52 res_model="stock.report.prodlots"
53 src_model="stock.location"/>
56 domain="[('product_id','=',active_id)]"
57 id="act_product_product_2_stock_report_prodlots"
59 res_model="stock.report.prodlots"
60 src_model="product.product"/>
63 domain="[('prodlot_id', '=', active_id)]"
64 id="act_stock_production_lot_2_stock_report_prodlots"
65 name="Stock" res_model="stock.report.prodlots"
66 src_model="stock.production.lot"/>
69 <!-- report , stock inventories date... start -->
70 <record model="ir.ui.view" id="report_stock_lines_date_tree">
71 <field name="name">report.stock.lines.date.tree</field>
72 <field name="model">report.stock.lines.date</field>
73 <field name="type">tree</field>
74 <field name="arch" type="xml">
75 <tree string="Dates of Inventories">
76 <field name="product_id"/>
78 <field name="create_date" />
83 <record model="ir.ui.view" id="report_stock_lines_date_form">
84 <field name="name">report.stock.lines.date.form</field>
85 <field name="model">report.stock.lines.date</field>
86 <field name="type">form</field>
87 <field name="arch" type="xml">
88 <form string="Dates of Inventories">
89 <field name="product_id" select="1"/>
90 <field name="id" select="2"/>
91 <field name="create_date" select="1" />
96 <record model="ir.actions.act_window" id="action_stock_line_date">
97 <field name="name">Dates of Inventories</field>
98 <field name="res_model">report.stock.lines.date</field>
99 <field name="view_type">form</field>
100 <field name="view_mode">tree,form</field>
103 <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date"/>
105 <record id="view_location_tree_3" model="ir.ui.view">
106 <field name="name">stock.location.tree</field>
107 <field name="model">stock.location</field>
108 <field name="type">tree</field>
109 <field name="arch" type="xml">
110 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
111 <field name="complete_name"/>
112 <field name="usage"/>
113 <field name="stock_real_value" />
114 <field name="stock_virtual_value" />
119 <record id="action_location_tree_3" model="ir.actions.act_window">
120 <field name="name">Locations' Values</field>
121 <field name="res_model">stock.location</field>
122 <field name="view_type">form</field>
123 <field name="view_mode">tree</field>
124 <field name="view_id" ref="view_location_tree_3"/>
126 <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" />