~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to procurement_cycle/procurement_view.xml

UF-73: [MERGE] Merge with unifield-wm branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
                    <group colspan="2" col="2">
12
12
                        <separator string="General Information" />
13
13
                        <field name="name" />
 
14
                        <field name="category_id" attrs="{'required': [('product_id', '=', False)]}"/>
 
15
                        <field name="product_id" attrs="{'required': [('category_id', '=', False)]}" domain="[('categ_id', '=', category_id)]"/>
14
16
                    </group>
15
17
                    <group colspan="2" col="2">
16
18
                        <separator string="Locations" />
18
20
                        <field name="location_id"/>
19
21
                        <field name="company_id" groups="base.group_multi_company" widget="selection"/>
20
22
                    </group>
21
 
                    <group colspan="2" col="4">
22
 
                        <separator string="Period / Frequence Rule" colspan="4 "/>
23
 
                        <field name="frequence_name" readonly="1" colspan="4" />
24
 
                        <field name="frequence_id" invisible="1" />
 
23
                    <group colspan="2" col="2">
 
24
                        <separator string="Period / Frequence Rule" />
 
25
                        <field name="frequence_id" readonly="1" />
25
26
                        <label />
26
 
                        <button name="choose_change_frequence" type="object" string="Change/Choose Frequency" icon="terp-go-today" colspan="3" />
27
 
                        <field name="next_date" colspan="4" />
 
27
                        <button name="choose_change_frequence" type="object" string="Change/Choose Frequency" icon="terp-go-today" />
 
28
                        <field name="next_date" />
28
29
                    </group>
29
30
                    <group colspan="2" col="2">
30
31
                        <separator string="Misc" />
33
34
                    <group colspan="4" col="6" >
34
35
                        <separator colspan="6" string="Parameter for quantity calculation" />
35
36
                        <field name="leadtime" />
36
 
                        <label string="If null, will take the supplier lead time from the product form" colspan="4" align="0.0"/>
 
37
                        <label string="If blank, will take the supplier lead time from the product form" colspan="4" align="0.0"/>
37
38
                        <field name="order_coverage" />
38
39
                        <label string="In months" colspan="4" align="0.0"/>
39
40
                        <field name="safety_stock_time" />
40
41
                        <label string="In months (will be converted into quantity regarding monthly consumption)" colspan="4" align="0.0"/>
 
42
                        <field name="safety_stock" />
 
43
                        <label string="(warning, UoM has to be coherent)" colspan="4" align="0.0"/>
 
44
                        <label />
41
45
                        <newline />
42
 
                        <group name="consumption calculation" colspan="6" col="6">
43
 
                                <field name="past_consumption" on_change="consumption_method_change(past_consumption, reviewed_consumption, manual_consumption, order_coverage, 'past')" />
44
 
                                <field name="reviewed_consumption" on_change="consumption_method_change(past_consumption, reviewed_consumption, manual_consumption, order_coverage, 'review')" />
45
 
                                <field name="manual_consumption" on_change="consumption_method_change(past_consumption, reviewed_consumption, manual_consumption, order_coverage, 'manual')" />
 
46
                        <group colspan="6" col="6">
 
47
                                <field name="past_consumption" />
 
48
                                <field name="reviewed_consumption" />
 
49
                                <field name="manual_consumption" />
46
50
                        </group>
47
 
                        <group colspan="2" col="5">
48
 
                                                <field name="consumption_period_from"
49
 
                                                                on_change="on_change_period(consumption_period_from, consumption_period_to)"
50
 
                                                                attrs="{'required': [('past_consumption', '=', True)], 
51
 
                                                                                'readonly': [('past_consumption', '=', False)]}" />
52
 
                                                <label string="-" />
53
 
                                                <field name="consumption_period_to" nolabel="1" colspan="2"
54
 
                                                                on_change="on_change_period(consumption_period_from, consumption_period_to)"
55
 
                                                                attrs="{'required': [('past_consumption', '=', True)], 
56
 
                                                                                'readonly': [('past_consumption', '=', False)]}" />
57
 
                                        </group>
58
 
                    </group>
59
 
                    <separator colspan="4" string="Product filters" />
60
 
                    <field name="sublist_id" attrs="{'readonly': [('nomen_manda_0', '!=', False)]}"/>
61
 
                    <group colspan="2" col="4" attrs="{'readonly': [('sublist_id', '!=', False)]}">
62
 
                        <field name="nomen_manda_0"
63
 
                            domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
64
 
                            widget="selection"
65
 
                            on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
66
 
                        />
67
 
                        <field name="nomen_manda_1"
68
 
                            domain="[('id','=', 0)]"
69
 
                            widget="selection"
70
 
                            get_selection="get_nomen"
71
 
                            on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
72
 
                        />
73
 
                        <field name="nomen_manda_2"
74
 
                            domain="[('id','=', 0)]"
75
 
                            widget="selection"
76
 
                            get_selection="get_nomen"
77
 
                            on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
78
 
                        />
79
 
                        <field name="nomen_manda_3"
80
 
                            domain="[('id','=', 0)]"
81
 
                            widget="selection"
82
 
                            get_selection="get_nomen"
83
 
                            on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
84
 
                        />
85
 
                    </group>
86
 
                    <button colspan="4" icon="gtk-go-down" string="Fill lines" type="object" name="fill_lines" />
87
 
 
88
 
                    <group colspan="4" col="4" >
89
 
                        <separator colspan="4" string="Products that will be included in the current policy" />
90
 
                        <field name="product_ids" nolabel="1" colspan="4" mode="tree">
91
 
                                <tree string="Products" editable="top">
92
 
                                        <field name="product_id" on_change="product_change(product_id)" domain="[('list_ids', '=', parent.sublist_id), ('type', 'not in', ['service', 'service_recep', 'consu'])]" />
93
 
                                        <field name="uom_id" domain="[('uom_by_product', '=', product_id)]" />
94
 
                                        <field name="safety_stock" />
95
 
                                </tree>
96
 
                        </field>
 
51
                    </group>
 
52
                    <group colspan="4" col="4" attrs="{'invisible': [('product_id', '!=', False)]}">
 
53
                        <separator colspan="4" string="Exception products (not to be included in current policy)" />
 
54
                        <field name="product_ids" nolabel="1" colspan="4" domain="[('categ_id', '=',' category_id)]"/>
97
55
                    </group>
98
56
                </form>
99
57
            </field>
104
62
            <field name="model">stock.warehouse.order.cycle</field>
105
63
            <field name="type">tree</field>
106
64
            <field name="arch" type="xml">
107
 
                <tree string="Order Cycle rules">
 
65
                <tree string="Order Cycle">
108
66
                    <field name="name" />
 
67
                    <field name="category_id" />
 
68
                    <field name="product_id" />
109
69
                    <field name="warehouse_id" />
110
70
                    <field name="location_id" />
111
71
                    <field name="frequence_id" />
112
 
                    <field name="sublist_id" invisible="1" />
113
 
                    <field name="nomen_manda_0" invisible="1" />
114
 
                    <field name="nomen_manda_1" invisible="1" />
115
 
                    <field name="nomen_manda_2" invisible="1" />
116
 
                    <field name="nomen_manda_3" invisible="1" />
117
72
                </tree>
118
73
            </field>
119
74
        </record>
120
75
        
121
 
        <record id="order_cycle_search_view" model="ir.ui.view">
122
 
                <field name="name">order.cycle.search.view</field>
123
 
                <field name="model">stock.warehouse.order.cycle</field>
124
 
                <field name="type">search</field>
125
 
                <field name="arch" type="xml">
126
 
                        <search string="Order Cycle">
127
 
                                <group expand="1" string="Filters...">
128
 
                                        <field name="name" default_focus="1" colspan="4" />
129
 
                                        <field name="location_id" eval="context.get('location_id', False)" colspan="4" />
130
 
                                        <field name="product_line_ids" widget="many2one" />
131
 
                        </group>
132
 
                        <newline/>
133
 
                        <group expand="1" string="Group By...">
134
 
                                <filter name="group_location" string="Location" icon="terp-go-home" context="{'group_by':'location_id'}"/>
135
 
                        <separator orientation="vertical"/>
136
 
                        <filter string="Sublist" icon="terp-go-week" domain="" context="{'group_by':'sublist_id'}"/>
137
 
                        <filter string="Main type" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_0'}"/>
138
 
                        <filter string="Group" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_1'}"/>
139
 
                        <filter string="Family" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_2'}"/>
140
 
                        <filter string="Root" icon="terp-tools" domain="" context="{'group_by':'nomen_manda_3'}"/>
141
 
                        </group>
142
 
                        </search>
143
 
                </field>
144
 
        </record>
145
 
        
146
76
        <record id="action_order_cycle_tree" model="ir.actions.act_window">
147
77
            <field name="name">Order Cycle</field>
148
78
            <field name="res_model">stock.warehouse.order.cycle</field>
149
79
            <field name="view_type">form</field>
150
80
            <field name="view_mode">tree,form</field>
151
 
            <field name="context">{'withnum': 1}</field>
152
81
        </record>
153
82
        
154
83
        <menuitem action="action_order_cycle_tree"
155
84
                  id="menu_order_cycle"
156
 
                  sequence="3"
157
 
                  parent="stock_schedule.stock_automatic_procurements_menu" />
 
85
                  parent="procurement.menu_stock_procurement" />
158
86
    
159
87
    </data>
160
 
</openerp>
 
88
</openerp>
 
 
b'\\ No newline at end of file'