File: product.xml

package info (click to toggle)
tryton-modules-stock 2.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,044 kB
  • sloc: python: 4,468; xml: 2,520; makefile: 7
file content (85 lines) | stat: -rw-r--r-- 3,616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.ui.view" id="product_view_tree_qty">
            <field name="model">product.product</field>
            <field name="type">tree</field>
            <field name="priority">20</field>
            <field name="arch" type="xml">
                <![CDATA[
                    <tree string="Products">
                        <field name="name"/>
                        <field name="code"/>
                        <field name="quantity"/>
                        <field name="forecast_quantity"/>
                        <field name="default_uom"/>
                        <field name="type"/>
                        <field name="active"/>
                    </tree>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="location_quantity_view_tree">
            <field name="model">stock.location</field>
            <field name="type">tree</field>
            <field name="field_childs">childs</field>
            <field name="priority" eval="20"/>
            <field name="arch" type="xml">
                <![CDATA[
                    <tree string="Product Stock">
                        <field name="name"/>
                        <field name="quantity"/>
                        <field name="forecast_quantity"/>
                        <field name="parent" tree_invisible="1"/>
                        <field name="childs" tree_invisible="1"/>
                    </tree>
                ]]>
            </field>
        </record>

        <record model="ir.action.act_window" id="act_location_quantity_tree">
            <field name="name">Product Stock</field>
            <field name="res_model">stock.location</field>
            <field name="domain">[('parent', '=', False)]</field>
            <field name="window_name" eval="False"/>
        </record>
        <record model="ir.action.act_window.view" id="act_location_quantity_tree_view">
            <field name="sequence" eval="10"/>
            <field name="view" ref="location_quantity_view_tree"/>
            <field name="act_window" ref="act_location_quantity_tree"/>
        </record>
        <record model="ir.action.wizard" id="wizard_location_open">
            <field name="name">Product by Location</field>
            <field name="wiz_name">stock.location.open</field>
            <field name="model">product.product</field>
        </record>
        <record model="ir.action.keyword"
                id="act_location_quantity_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">product.product,-1</field>
            <field name="action" ref="wizard_location_open"/>
        </record>
        <record model="ir.action-res.group"
            id="wizard_location_open-group_stock">
            <field name="action" ref="wizard_location_open"/>
            <field name="group" ref="group_stock"/>
        </record>

        <record model="ir.ui.view" id="product_stock_date_init_view_form">
            <field name="model">stock.product_stock_date.init</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Product Quantity.">
                    <label name="forecast_date"/>
                    <field name="forecast_date"/>
                </form>
                ]]>
            </field>
        </record>

    </data>
</tryton>