~eugene-babiy/openerp-ukraine/6.0

« back to all changes in this revision

Viewing changes to l10n_ua_authorization/stock/report/report_stock_view.xml

  • Committer: Eugene Babiy
  • Date: 2013-11-05 06:22:15 UTC
  • Revision ID: eugene.babiy@gmail.com-20131105062215-deujgywm0j0rb368
Initial setup

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
        <act_window
 
6
            context="{'product_id': active_id}"
 
7
            id="act_stock_product_location_open"
 
8
            name="Stock by Location"
 
9
            res_model="stock.location"
 
10
            src_model="product.product"
 
11
            groups="base.group_extended"/>
 
12
 
 
13
        <act_window
 
14
            domain="[('tracking_id', '=', active_id)]"
 
15
            id="act_stock_tracking_lot_2_stock_report_tracklots"
 
16
            name="Stock" res_model="stock.report.tracklots"
 
17
            src_model="stock.tracking"/>
 
18
 
 
19
           <!-- report , stock inventories date... start -->
 
20
        <record model="ir.ui.view" id="report_stock_lines_date_tree">
 
21
            <field name="name">report.stock.lines.date.tree</field>
 
22
            <field name="model">report.stock.lines.date</field>
 
23
            <field name="type">tree</field>
 
24
            <field name="arch" type="xml">
 
25
                <tree string="Dates of Inventories">
 
26
                    <field name="product_id"/>
 
27
                    <field name="date" />
 
28
                </tree>
 
29
            </field>
 
30
        </record>
 
31
 
 
32
        <record model="ir.ui.view" id="report_stock_lines_date_search">
 
33
            <field name="name">report.stock.lines.date.search</field>
 
34
            <field name="model">report.stock.lines.date</field>
 
35
            <field name="type">search</field>
 
36
            <field name="arch" type="xml">
 
37
                <search string="Dates of Inventories">
 
38
                    <filter icon="terp-accessories-archiver" name="stockable" string="Stockable"
 
39
                        domain="[('product_id.type','=', 'product')]"/>
 
40
                    <filter icon="terp-accessories-archiver" string="Consumable"
 
41
                        domain="[('product_id.type','=', 'consumable')]"/>
 
42
                    <separator orientation="vertical"/>
 
43
                    <filter icon="terp-accessories-archiver-minus" string="Non Inv"
 
44
                        domain="[('date','=', False)]"/>
 
45
                    <separator orientation="vertical"/>
 
46
                    <field name="product_id"/>
 
47
                    <field name="date"/>
 
48
                </search>
 
49
            </field>
 
50
        </record>
 
51
 
 
52
        <record model="ir.ui.view" id="report_stock_lines_date_form">
 
53
            <field name="name">report.stock.lines.date.form</field>
 
54
            <field name="model">report.stock.lines.date</field>
 
55
            <field name="type">form</field>
 
56
            <field name="arch" type="xml">
 
57
                <form string="Dates of Inventories">
 
58
                    <field name="product_id"/>
 
59
                    <field name="date"/>
 
60
                </form>
 
61
            </field>
 
62
        </record>
 
63
 
 
64
        <record model="ir.actions.act_window" id="action_stock_line_date">
 
65
            <field name="name">Last Product Inventories</field>
 
66
            <field name="res_model">report.stock.lines.date</field>
 
67
            <field name="view_type">form</field>
 
68
             <field name="context">{'search_default_stockable':1}</field>
 
69
            <field name="view_mode">tree,form</field>
 
70
            <field name="help">Display the last inventories done on your products and easily sort them with specific filtering criteria. If you do frequent and partial inventories, you need this report in order to ensure that the stock of each product is controlled at least once a year.</field>
 
71
        </record>
 
72
 
 
73
        <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date" sequence="2"/>
 
74
 
 
75
        <record id="view_location_graph" model="ir.ui.view">
 
76
            <field name="name">stock.location.graph</field>
 
77
            <field name="model">stock.location</field>
 
78
            <field name="type">graph</field>
 
79
            <field name="arch" type="xml">
 
80
                <graph string="Stock Location">
 
81
                    <field name="complete_name"/>
 
82
                    <field name="stock_real_value" operator="+"/>
 
83
                    <field name="stock_virtual_value" operator="+"/>
 
84
                </graph>
 
85
            </field>
 
86
        </record>
 
87
 
 
88
    </data>
 
89
</openerp>