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

127.1.1 by Quentin THEURET
UF-205 [ADD] Added procurement_report module
1
<?xml version="1.0" encoding="utf-8" ?>
2
<openerp>
3
    <data>
4
    
714 by jf
[FIX] object report.procurement.policies deleted
5
        <!-- report.procurement.policies deleted -->
634.4.9 by Quentin THEURET
UF-851 [IMP] Rename 'run schedulers' buttons
6
        <!-- Rename menus and buttons of procurement module -->
7
        <act_window name="POs Creation"
8
		    res_model="procurement.order.compute.all"
9
		    src_model="procurement.order"
10
		    view_mode="form"
11
		    target="new"
12
            key2="client_action_multi"
13
		    id="procurement.action_compute_schedulers"/>
14
		    
15
		<menuitem action="procurement.action_compute_schedulers" 
16
				  id="procurement.menu_stock_proc_schedulers" 
17
				  parent="procurement.menu_stock_sched"
18
				  string="POs Creation" 
19
				  sequence="20" 
20
				  groups="stock.group_stock_manager"/>
21
				  
22
		
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
23
    	<record id="procurement_rules_report_tree_view" model="ir.ui.view">
24
    		<field name="name">procurement.rules.report.tree.view</field>
25
    		<field name="model">procurement.rules.report</field>
26
    		<field name="type">tree</field>
27
    		<field name="arch" type="xml">
892.5.15 by Quentin THEURET
UF-1152 [IMP] Rename Procurement Rules Analysis menu to Replenishment Rules Analysis
28
    			<tree string="Replenishment Rules Analysis" editable="top" noteditable="1"
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
29
    				hide_new_button="1" hide_delete_button="1"
30
    				colors="red: auto_supply_ok=='no' and order_cycle_ok=='no' and min_max_ok=='no' and threshold_ok=='no'">
31
    				<field name="product_id" />
32
    				<field name="location_id" />
33
    				<field name="auto_supply_ok" />
34
    				<field name="order_cycle_ok" />
35
    				<field name="min_max_ok" />
36
    				<field name="threshold_ok" />
37
    			</tree>
38
    		</field>
39
    	</record>
40
    	
41
    	<record id="procurement_rules_report_search_view" model="ir.ui.view">
42
    		<field name="name">procurement.rules.report.search.view</field>
43
    		<field name="model">procurement.rules.report</field>
44
    		<field name="type">search</field>
45
    		<field name="arch" type="xml">
46
    			<search string="Replenishment Rules Analysis" >
47
    				<field name="product_id" />
48
    				<field name="location_id" />
49
    				<field name="auto_supply_ok" />
50
    				<field name="order_cycle_ok" />
51
    				<field name="min_max_ok" />
52
    				<field name="threshold_ok" />
53
    				<newline />
54
    				<group expand="1" string="Nomenclature Filters...">
55
						<field name="nomen_manda_0_s"
56
							domain="[('parent_id', '=', False)]"
57
							 widget="selection"
58
							on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
59
						<field name="nomen_manda_1_s"
60
							domain="[('parent_id', '=', -1)]"
61
							 widget="selection"
62
							on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
63
						<field name="nomen_manda_2_s"
64
							domain="[('parent_id', '=', -1)]"
65
							 widget="selection"
66
							on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
67
						<field name="nomen_manda_3_s"
68
							domain="[('parent_id', '=', -1)]"
69
							 widget="selection"
70
							on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
71
					</group>
72
    				<newline />
73
    				<group expand="0" string="Group By...">
1016.2.22 by Quentin THEURET
[FIX] Procurement rules analysis : Remove Group by product because is too long to display when we have a big list of products
74
                                        <!-- Remove Group by product because is too long to display when we have a big list of products
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
75
    					<filter string="Product" context="{'group_by': 'product_id'}" />
1016.2.22 by Quentin THEURET
[FIX] Procurement rules analysis : Remove Group by product because is too long to display when we have a big list of products
76
    					<separator orientation="vertical" />-->
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
77
    					<filter string="Location" context="{'group_by': 'location_id'}" />
78
    				</group>
79
    			</search>
80
    		</field>
81
    	</record>
82
    	
83
    	<record id="action_procurement_rules_report" model="ir.actions.act_window">
892.3.7 by Quentin THEURET
UF-1151 Update
84
    		<field name="name">Replenishment Rules Analysis</field>
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
85
    		<field name="res_model">procurement.rules.report</field>
86
    		<field name="view_type">form</field>
658.1.6 by Quentin THEURET
UF-857 [ADD] Add minimum stock rules report
87
    		<field name="view_mode">tree,form</field>
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
88
    	</record>
89
    	
90
    	<menuitem action="action_procurement_rules_report"
91
    			  id="menu_procurement_rules_report"
1016.2.23 by Quentin THEURET
[FIX] Move procurement rules report to the end of Procurement rules menu entry
92
                          sequence="99"
658.1.4 by Quentin THEURET
UF-857 [IMP] Procurement rules report
93
    			  parent="stock_schedule.stock_automatic_procurements_menu" />
127.1.1 by Quentin THEURET
UF-205 [ADD] Added procurement_report module
94
    
95
    </data>
712 by jf
UF-857 [DEV] Replenishment report
96
</openerp>