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

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
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
    <data>
    
        <!-- report.procurement.policies deleted -->
        <!-- Rename menus and buttons of procurement module -->
        <act_window name="POs Creation"
		    res_model="procurement.order.compute.all"
		    src_model="procurement.order"
		    view_mode="form"
		    target="new"
            key2="client_action_multi"
		    id="procurement.action_compute_schedulers"/>
		    
		<menuitem action="procurement.action_compute_schedulers" 
				  id="procurement.menu_stock_proc_schedulers" 
				  parent="procurement.menu_stock_sched"
				  string="POs Creation" 
				  sequence="20" 
				  groups="stock.group_stock_manager"/>
				  
		
    	<record id="procurement_rules_report_tree_view" model="ir.ui.view">
    		<field name="name">procurement.rules.report.tree.view</field>
    		<field name="model">procurement.rules.report</field>
    		<field name="type">tree</field>
    		<field name="arch" type="xml">
    			<tree string="Replenishment Rules Analysis" editable="top" noteditable="1"
    				hide_new_button="1" hide_delete_button="1"
    				colors="red: auto_supply_ok=='no' and order_cycle_ok=='no' and min_max_ok=='no' and threshold_ok=='no'">
    				<field name="product_id" />
    				<field name="location_id" />
    				<field name="auto_supply_ok" />
    				<field name="order_cycle_ok" />
    				<field name="min_max_ok" />
    				<field name="threshold_ok" />
    			</tree>
    		</field>
    	</record>
    	
    	<record id="procurement_rules_report_search_view" model="ir.ui.view">
    		<field name="name">procurement.rules.report.search.view</field>
    		<field name="model">procurement.rules.report</field>
    		<field name="type">search</field>
    		<field name="arch" type="xml">
    			<search string="Replenishment Rules Analysis" >
    				<field name="product_id" />
    				<field name="location_id" />
    				<field name="auto_supply_ok" />
    				<field name="order_cycle_ok" />
    				<field name="min_max_ok" />
    				<field name="threshold_ok" />
    				<newline />
    				<group expand="1" string="Nomenclature Filters...">
						<field name="nomen_manda_0_s"
							domain="[('parent_id', '=', False)]"
							 widget="selection"
							on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
						<field name="nomen_manda_1_s"
							domain="[('parent_id', '=', -1)]"
							 widget="selection"
							on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
						<field name="nomen_manda_2_s"
							domain="[('parent_id', '=', -1)]"
							 widget="selection"
							on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
						<field name="nomen_manda_3_s"
							domain="[('parent_id', '=', -1)]"
							 widget="selection"
							on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0_s, nomen_manda_1_s, nomen_manda_2_s, nomen_manda_3_s, context)" />
					</group>
    				<newline />
    				<group expand="0" string="Group By...">
                                        <!-- Remove Group by product because is too long to display when we have a big list of products
    					<filter string="Product" context="{'group_by': 'product_id'}" />
    					<separator orientation="vertical" />-->
    					<filter string="Location" context="{'group_by': 'location_id'}" />
    				</group>
    			</search>
    		</field>
    	</record>
    	
    	<record id="action_procurement_rules_report" model="ir.actions.act_window">
    		<field name="name">Replenishment Rules Analysis</field>
    		<field name="res_model">procurement.rules.report</field>
    		<field name="view_type">form</field>
    		<field name="view_mode">tree,form</field>
    	</record>
    	
    	<menuitem action="action_procurement_rules_report"
    			  id="menu_procurement_rules_report"
                          sequence="99"
    			  parent="stock_schedule.stock_automatic_procurements_menu" />
    
    </data>
</openerp>